Object Oriented Programming Using C++ – Section 7

31. Library header files usually contain

A. complete functions
B. parts of functions
C. function prototypes for functions stored in other files
D. function bodies, but not function headers

Correct Answer:  C. function prototypes for functions stored in other files

32. A C++ term meaning “generic” is

A. argument
B. parameterized
C. universal
D. global

Correct Answer:  B. parameterized

33. Before object-oriented exception handling was practiced, _____

A. no run-time errors occurred
B. programmers could not deal with run-time errors
C. the most popular error-handling method was to terminate the program
D. the most popular error-handling method was to throw an exception

Correct Answer:  C. the most popular error-handling method was to terminate the program

34. The preprocessor directive always ends with

A. a comma
B. a semicolon
C. neither a semicolon nor a comma
D. “/”
E. None of the above

Correct Answer:  C. neither a semicolon nor a comma

35. A constructor initialization list produces similar results to

A. overriding
B. assignment
C. redeclaring
D. output

Correct Answer:  B. assignment

Leave A Comment?

one × 1 =