Object Oriented Programming Using C++ – Section 4

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

Correct Answer: D. a, b, c above are all true

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]

Correct Answer: A. assigns 36.96 to values[2]

28. A constructor initialization list is preceded by _____

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

Correct Answer: B. a colon

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

Correct Answer: C. inline

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

Correct Answer: D. record

Leave A Comment?

fourteen + 1 =