Computer Science - Object Oriented Programming Using C++

36. 

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

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.