Programming Fundamental and Principle MCQs

Programming Fundamental and Principle MCQs

These Programming Fundamental and Principle multiple-choice questions and their answers will help you strengthen your grip on the subject of Programming Fundamental and Principle. You can prepare for an upcoming exam or job interview with these Programming Fundamental and Principle MCQs.
So scroll down and start answering.

1: A called method accepts the value of an argument passed to it as its ____.

A.   Parameter

B.   Reference

C.   Baseline

D.   Argument

2: A case structure is a ____ decision structure

A.   Single

B.   Multiple

C.   Dual

D.   Single or dual.

E.   All of the above

3: Every array has a(n) ____ size

A.   Infinite

B.   Finite

C.   Variable

D.   Constant

4: The number of elements in an array is called the ____ of the array.

A.   Width

B.   Size

C.   Height

D.   Depth

5: Parallel arrays are most useful when value pairs have a(n) ____ relationship.

A.   Direct

B.   Indirect

C.   Linked

D.   Tiered

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

A.   Computer file

B.   Overloading

C.   Temporary

D.   Permanent

7: A calling method sends a(n) ____ to a called method.

A.   Parameter

B.   Interface

C.   Object

D.   Argument

8: In many languages the case structure is called a ____________ statement.

A.   Branch

B.   Jump

C.   Selective

D.   Switch

E.   All of the above

9: A ____ relates parallel arrays.

A.   Superscript

B.   Key

C.   Subscript

D.   Postscript

10: _____ can process many pieces of data at the same time and learn to recognize patterns.

A.   Neural Networks

B.   Semantic Networks

C.   Both

D.   None

11: The throw of the dice or the drawing of a card is known as ____ behavior.

A.   Predictable

B.   Deterministic

C.   Random

D.   Conventional

12: String constants and _____ refer to the same concept.

A.   String literals

B.   Predictable

C.   Deterministic

D.   Random

13: In all languages, subscript values must be sequential ____.

A.   Characters

B.   Fractions

C.   Real numbers

D.   Integers

14: When you store data records, they exist in ____.

A.   Nonvolatile

B.   In some type of order.

C.   Algorithm

D.   Control break

15: Besides making your code easier to modify, using a ____ makes the code easier to understand.

A.   Standard constant

B.   Named constant

C.   Literal constant

D.   None of these

16: ____ occurs when methods excessively depend on each other and makes programs more prone to errors.

A.   Lose coupling

B.   Tight coupling

C.   Both of these

D.   None of these

17: In most programming languages, before an application can use a data file, it must ____.

A.   Prepare the file

B.   Open the file

C.   Read the file

D.   Close the file

18: All modern programming languages support ____ types of relational comparison operators.

A.   Five

B.   Four

C.   Six

D.   One

19: One advantage to using a named constant is that the statement becomes ____.

A.   Self-perpetuating

B.   Self-documenting

C.   Self-referencing

D.   Self-mitigating.