Object Oriented Programming Using C++ – Section 3

46. When using the standard files that come with the C++ compiler, you should surround the header file name with _____

A. square brackets
B. angle brackets
C. parentheses
D. quotes

Correct Answer: B. angle brackets

47. The loop condition in a flowchart is represented by a(n) _____

A. diamond
B. oval
C. parallelogram
D. rectangle

Correct Answer: A. diamond

48. Which of the following, if any, are invalid names for a variable?

A. bankAccountNumber
B. first_Name
C. doubleNumber
D. operator
E. All of the above are valid names for variables

Correct Answer: D. operator

49. Inheritance is the principle that

A. classes with the same name must be derived from one another
B. knowledge of a general category can be applied to more specific objects
C. C++ functions may be used only if they have logical predecessors
D. one function name may invoke different methods

Correct Answer: B. knowledge of a general category can be applied to more specific objects

Leave A Comment?

3 × 2 =