Computer Science - Object Oriented Programming Using C++

26. 

A function can

A. return a value
B. perform a task
C. change value of actual arguments in call by reference
D. a, b, c above are all true
E. None of the above

Answer: Option D

Explanation:

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

27. 

The statement float values[]={3.14, -7.86, 36.96, 4.87};

A. assigns 36.96 to values[2]
B. assigns -7.86 to values[2]
C. gives an error message
D. assign 14 to values[2]

Answer: Option A

Explanation:

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

28. 

A constructor initialization list is preceded by _____

A. a semicolon
B. a colon
C. two colons
D. a space

Answer: Option B

Explanation:

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

29. 

When the compiler places a copy of a small function's statements directly into a program, the function is said to be _____

A. overloaded
B. mangled
C. inline
D. redundant

Answer: Option C

Explanation:

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

30. 

A group of related fields that contain all of the data about a specific person, place, or thing is called a

A. data file
B. field file
C. program file
D. record

Answer: Option D

Explanation:

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