Object Oriented Programming Using C++ – Section 10

36. A(n) _____ is a numeric variable used for counting something

A. accumulator
B. adder
C. constant
D. counter
E. integer

Correct Answer:  D. counter

37. The element of an array is

A. the name of the array
B. a member of an array
C. a value assigned to an array
D. All of the above

Correct Answer:  B. a member of an array

38. When the function void someFunction(int x) throw(char) is executed,_____

A. it will throw nothing
B. it may throw an integer
C. it may throw a character
D. it may not throw anything

Correct Answer:  C. it may throw a character

39. Which of the following is NOT included in the header of a function?

A. the type of variable returned by the function to the function that calls it
B. the name of the program or function that calls the function
C. the name of the function
D. the types and names of any variables that will be passed to the function

Correct Answer:  B. the name of the program or function that calls the function

40. If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as________

A. dynamic
B. unary
C. static
D. volatile

Correct Answer:  C. static

Leave A Comment?

two × five =