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