More Mcqs Object Oriented Programming (Set 2)
More Mcqs Object Oriented Programming (Set 2)
2 of 4 sets
51. When arguments are passed by value, the function works with the original
arguments in the calling program.
A. true
B. false
Answer:B
54. When a function returns a value, the entire function call can appear on the
right side of the equal sign and be assigned to another variable.
A. true
B. false
Answer:A
60. The compiler will complain if you try to access array element 14 in a 10-
element array.
A. true
B. false
Answer:B
61. The extraction operator (>>) stops reading a string when it encounters a space.
A. true
62. You can read input that consists of multiple lines of text using
A. the normal cout <<combination.
B. the cin.get() function with one argument.
C. the cin.get() function with two arguments.
D. the cin.get() function with three arguments.
Answer:D
63. You should prefer C-strings to the Standard C++ string class in new programs.
A. true
B. false
Answer:B