Programming Languages MCQs

Programming Languages MCQs

The following Programming Languages MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of Programming Languages. We encourage you to answer these multiple-choice questions to assess your proficiency.
Please continue by scrolling down.

1: When a function is called by its name, then it is _____.

A.   Executed

B.   Processing

C.   Hierarchy

D.   Global

2: Object attributes are often called ____ to help distinguish them from other variables you might use

A.   Constructors

B.   Instances

C.   Fields

D.   Records

3: After programs are put into production, making necessary changes is called ____.

A.   Debugging

B.   Maintenance.

C.   Conversion

D.   Testing

4: ____ resemble verbs that describe what and how an object does something.

A.   Methods

B.   Messages

C.   Commands

D.   Attributes

5: A program written in assembly language is called the ____ program.

A.   Fifth

B.   Social networks

C.   Source

D.   Carrier

6: A(n) ____ is a specific member of a class.

A.   Key

B.   Lifeline

C.   Index

D.   Instance

7: A(n) ____ represents a real person, place, event, or transaction.

A.   Object

B.   Command

C.   Instance

D.   Method

8: Function is another name for ________.

A.   Module

B.   Variable

C.   Reference

D.   Sub class

9: ________ are applications that incorporate data from multiple providers into a new application.

A.   Plug and Play apps

B.   Firmware

C.   Mashups

D.   DDR2s

10: A variable listed in a header is known as a(n) ____ parameter.

A.   Actual

B.   Local

C.   Formal

D.   Function

11: According to aristotle, democracy is the _____ form of government by _____.

A.   Corrupt; one

B.   Corrupt; a few

C.   Corrupt; many

D.   Legitimate; many

12: The number of elements an array will hold is known as the ____ of the array.

A.   Upper bound

B.   Lower bound

C.   Size

D.   Variable

13: Today, people working in cyberspace must deal with new and constantly evolving ________.

A.   Policy

B.   Risks

C.   Applications

D.   Threats

14: Two researchers suggested in the 1960s that ____ may have been the first informational molecule.

A.   RNA

B.   DNA

C.   Both of these

D.   None of these

15: Virtualization is the process by which ________.

A.   A single server is used to host the operations of a workstation

B.   Many computers are used to control a server

C.   One computer hosts the appearance of many computers

D.   A single operating system is licensed for multiple computers

16: In a class method, the ____ reference can be used only with identifiers that are field names.

A.   My

B.   That

C.   This

D.   Me

17: ____ enables an object to derive one or more of its attributes from another object.

A.   Inhertitance

B.   Composition

C.   Polymorphism

D.   Encapsulation

18: The length of the string ""computer science"" is ____.

A.   14

B.   15

C.   16

D.   17

19: Pointers are variables that contain __________ as their values.

A.   Strings

B.   Flowlines

C.   Memory addresses

D.   Directions

20: If you do not provide an access specifier for a class field, its access is ____ by default.

A.   Private

B.   Public

C.   Protected

D.   None of the above

21: Inheritance enables a ____ to derive one or more of its attributes from a parent.

A.   Child

B.   User

C.   Package

D.   Class

22: The capability to inherit from more than one class is called ____.

A.   Multiple inheritance

B.   Collision

C.   Polyinheritance

D.   Dynamic method binding

23: The main method header is written as ________.

A.   Public static void main(String[] args)

B.   Void main()

C.   Int main()

D.   None of the above

24: The process of ____ is used to create an object from a class.

A.   Instantiation

B.   Constructors

C.   Accessors

D.   Mutators

25: The sql command that lets you insert rows into a table is ____.

A.   INSERT

B.   SELECT

C.   COMMIT

D.   UPDATE

26: The sql command that lets you select attributes from rows in one or more tables is ____.

A.   INSERT

B.   SELECT

C.   COMMIT

D.   UPDATE

27: ____ is a valid char value.

A.   -129

B.   128

C.   'A'

D.   129

28: The ____ event fires when a form is submitted.

A.   Clear

B.   Blur

C.   Input

D.   Submit

29: The ____ object allows you to change to a new web page from within javascript code.

A.   Navigator

B.   Browser

C.   History

D.   Location

30: The code int *p; declares p to be a(n) ____ variable.

A.   New

B.   Num

C.   Pointer

D.   Address

31: The declare statement allocates __________ storage locations to the array named photos[23].

A.   23

B.   24

C.   36

D.   21

32: The expression "java" + 1 + 2 + 3 evaluates to ________.

A.   Java123

B.   Java6

C.   Java 123

D.   Java 123

33: The header file is also known as the ____________________.

A.   Library file

B.   Include files

C.   Implementation file

D.   Interface file

34: The length of the string "hello there. " is ____.

A.   11

B.   12

C.   13

D.   14

35: The public constructors and methods of a class form the public _____ of the class

A.   Initialization.

B.   Encapsulation.

C.   Implementation

D.   Interface

36: The static method ________ of class string returns a formatted string.

A.   Printf.

B.   Format.

C.   FormatString.

D.   ToFormatString

37: The ________ of recursion is the number of times a recursive function calls itself.

A.   Level

B.   Breadth

C.   Type

D.   Depth

38: The ____ operator can be used to return the address of a private data member of a class.

A.   Dereferencing

B.   Address of

C.   Destructor

D.   Member access

39: Class dClass: bClass{//class members list}; The class dclass is derived from the class bclass using the ____ type of inheritance.

A.   Static

B.   Private

C.   Public

D.   Protected

40: A(n) ____ is a programmer-defined type, such as a class.

A.   Abstract data type

B.   Primitive

C.   Static

D.   Class definition

41: In many languages the case structure is called a ________ statement.

A.   Branch

B.   Jump

C.   Selective

D.   Switch

E.   All of these

42: Sql is an example of a ________ style of programming language.

A.   XML

B.   Programming

C.   Visual Basic

D.   4GL

43: The _____ of a local variable is the function in which the variable is created

A.   Class scope

B.   Local scope

C.   Function scope

D.   File scope

44: The ________ function does the same thing as using the mathematical ∧ operator.

A.   Cos

B.   Pow

C.   Round

D.   Abs

E.   Sqrt

45: A(n) ____ constructor is one that requires no arguments.

A.   Class

B.   Explicit

C.   Default

D.   Write

46: The ________ operator performs division and returns the remainder.

A.   Modulus

B.   Multiplication

C.   Exponent

D.   Operand

47: A ____ defines the name and data type of program variables.

A.   Data operation

B.   Data declaration

C.   System requirements model

D.   Symbol table

48: ____ are the characteristics that define an object as part of a class.

A.   Indices

B.   Attributes

C.   Keys

D.   Abstract Data Type

49: ____ are most often used to create web pages and web applications.

A.   Markup languages

B.   Problem analysis

C.   XML

D.   Java

50: A function includes its ____, which are values used by the function.

A.   Terms

B.   Parameters

C.   Ids

D.   Names

51: A(n) ____ is a predefined procedure that you can call (or invoke) when needed.

A.   Object

B.   Instance

C.   Class

D.   Method

52: An object’s ____ are the tasks or functions the object performs

A.   Messages

B.   Commands

C.   Instances

D.   Methods

53: Arrays, unlike simple built-in types, are passed by ____.

A.   Type

B.   Class

C.   Reference

54: Division by zero is a ________ error that is caught when the program executes

A.   Compiler

B.   Runtime

C.   Syntax

D.   Logical

55: Fractional numeric variables that contain a decimal point are known as ____ variables.

A.   Named constance

B.   Floating-point

C.   Numeric constant

D.   Declaring

56: The purpose of ____ is to set the values of data fields within the class.

A.   Get methods

B.   Put methods

C.   Make methods

D.   Set methods

57: When a data field within a class is ____, no outside class can use it—including a child class.

A.   Buttom

B.   Private

C.   File

D.   None of these

58: When a piece of data is written to a file, it is copied from a variable in ________ to the file.

A.   RAM

B.   NOT

C.   Three

D.   None of these

59: When you write a program that stores a value in a variable, you are using ____ storage.

A.   Temporary

B.   Real-time

C.   Backup file

D.   Merging

60: A variable's ________ is the part of a program in which the variable may be accessed.

A.   Scope

B.   Global

C.   Argument

D.   Local

61: A(n) ____ shows the relationship between screens in an interactive gui program.

A.   Relationship plan

B.   Interactivity diagram

C.   Interaction plan

D.   Relationship diagram

62: You are least likely to have a lab test in a __________ course.

A.   Foreign language.

B.   Math.

C.   Science.

D.   Literature

63: A(n) ________ is the most fundamental set of programs on a computer.

A.   Compiler

B.   Operating system

C.   Application

D.   Utility program

E.   None of these

64: In a problem statement, you can limit complexity by making ____________.

A.   ​objects

B.   ​variables

C.   ​constants

D.   Assumptions

65: In subquery terminology, the first query in the sql statement is known as the ____ query.

A.   Outer

B.   Left

C.   Inner

D.   Base

66: Polymorphism means ________.

A.   That data fields should be declared private

B.   That a class can contain another class

C.   That a class can extend another class

D.   That a variable of supertype can refer to a subtype object

67: Sql is an example of a ________ category programming language.

A.   2GL

B.   3GL

C.   4GL

D.   5GL

68: The ________ of a local variable is the function in which that variable is created.

A.   Global

B.   Defined

C.   Local

D.   Scope

69: When an object is passed as an argument, ________ is passed into the parameter variable.

A.   Second section

B.   A reference to the object

C.   Identify the classes needed

D.   Worker_joey = Worker

70: You use the ____ function to find the total number of elements in an array.

A.   Array.

B.   Sum()

C.   Counta()

D.   Count()

71: In some programming languages, ___________ are implemented as arrays whose elements are characters.

A.   Strings

B.   Arrays

C.   Subscript

D.   Matrix

72: A program that tests a function is called a _____ program.

A.   Signature

B.   Reference

C.   Floor(x)

D.   Driver

73: A function ____________________ is a function that is not fully coded.

A.   Static

B.   Value

C.   Stub

D.   None of these

74: Many programming languages include a string operation called __________.

A.   Concatenation

B.   Initialized

C.   Boolean

D.   None of these

75: All objects in an object-oriented program are instantiated (created) from a ____.

A.   Source

B.   Method

C.   Class

D.   Object

76: The class ________ starts with the word class followed by the name of the class.

A.   Methods

B.   Definition

C.   Procedural

D.   Object-oriented

77: The earliest programming languages are referred to as ____.

A.   Low- Level Languages

B.   Do until structure

C.   Markup languages

D.   Object-oriented programming

78: All of the following are examples of application software except ____.

A.   Object

B.   Interface

C.   Programming Languages

D.   Integrated circuits are connected to the CPU

79: Programming style is important, because ________.

A.   A program may not compile if it has a bad style

B.   Good programming style can make a program run faster

C.   Good programming style makes a program more readable

D.   Good programming style helps reduce programming errors

80: The procedures that the object performs are known as ________.

A.   Records

B.   Methods

C.   Addresses

D.   Fields

E.   None of the above

81: Writing a program in a language such as c++ or java is known as _______ the program.

A.   Translating

B.   Interpreting

C.   Coding

D.   Compiling

82: A description of the program, its purpose and how to use it, is known as ________.

A.   Query language

B.   Algorithm

C.   Documentation

D.   Debugging

83: A program must __________ without any errors before it can be run.

A.   Compile

B.   Compiler

C.   Run Compiler

D.   None of these

84: In a(n) ________ system, each step is dependent on the previous step being completed.

A.   Top-down

B.   Rapid development

C.   Bottom-up

D.   Waterfall

85: By default, parameters are defined as ______________ parameters.

A.   Output

B.   SIGNAL

C.   Input

D.   Scalar

86: Class templates are called ____ types.

A.   Structured

B.   Parameterized

C.   Member

D.   Polymorphic

87: A personal experience timeline is used to help the writer _____.

A.   Proofread a draft

B.   Complete an outline

C.   Revise a first draft

D.   Generate a topic

88: A derived class always ____ case or instance of the more general base class.

A.   Has a

B.   Makes a

C.   Redefines a

D.   Is a

89: A sorting algorithm can be used to arrange a set of ________ in ________ order.

A.   Strings, ascending

B.   Numeric values, descending

C.   Numeric values, ascending

D.   Strings, descending

E.   All of the above

90: The ____ class access modifier means that access to the class is not limited.

A.   Protected

B.   Implicit

C.   Private

D.   Public

91: A function ________ includes the statements that make up the function.

A.   Definition

B.   Prototype

C.   Call

D.   Expression

E.   Parameter list

92: A function ________ contains the statements that make up the function.

A.   Definition

B.   Prototype

C.   Call

D.   Expression

E.   Parameter list. definition

93: Data that a computer accepts and processes is called ______.

A.   Input

B.   Information

C.   Bytes

D.   Digital facts

94: A ____ represents a picture or sketch of a screen the user will see when running a program.

A.   Framework

B.   Wireframe

C.   Sketch-up

D.   Page frame

95: A(n) ____ is a group of similar objects.

A.   Aggregate

B.   Concatenation

C.   Class

D.   Packet

96: A(n) ____ is one instance of a class.

A.   Method

B.   Object

C.   Instantiation

D.   Attribute

97: Functions that do not have a return type are called ____ functions.

A.   Zero

B.   Null

C.   Void

D.   Empty

98: The c++ function ____ calculates the largest whole number that is less than or equal to x.

A.   Floor(x)

B.   Ceiling(x)

C.   Max(x)

D.   Min(x

99: A ________ is a personal journal posted on the web

A.   Blog

B.   Podcast

C.   Wiki

D.   Webcast

100: A(n) ____ is any numeric variable you use to count the number of times an event has occurred.

A.   Counter

B.   Loop control variable

C.   Incrementing