Object Oriented Programming Using C++ – Section 4

36. The outline or the definition of a function is called its

A. beta test
B. forerunner
C. outline
D. prototype

Correct Answer: D. prototype
Advertisement

37. Which of the following is false?

A. Data stored in an array can be accessed faster than data stored in a disk file
B. Data stored in an array needs to be entered only once, typically at the beginning of the program
C. Arrays allow the programmer to store information in the computer’s internal memory
D. When using arrays, you will have fewer variable names to remember
E. None of the preceding statements are false

Correct Answer: E. None of the preceding statements are false
Advertisement

38. A function stub typically contains

A. the function header
B. the function braces
C. the return statement, if it’s value- returning function
D. a display message
E. All of the above

Correct Answer: E. All of the above
Advertisement

39. A variable’s _____ indicates which portions of the program can use the variable

A. area
B. extent
C. lifetime
D. reach
E. scope

Correct Answer: E. scope
Advertisement

40. If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is _____

A. const int &
B. int &
C. either (a) or (b)
D. neither (a) nor (b)

Correct Answer: C. either (a) or (b)
Advertisement

Leave A Comment?