Object Oriented Programming With C Plus Plus - Multiple Choice Questions -008

71. In a two dimensional array called list with dimensions 4X9 the element 2,3 can be accessed by using the expression
_____.
A. list[3][2].
B. list[2,3].
C. list[2][3].
D. list[3,2].
ANSWER: C
72. Which of the following accesses the seventh element stored in array?
A. array[6];
B. array[7];
C. array(7);
D. array;
ANSWER: A
73. Which of the following gives the value stored at the address pointed to by the pointer a?
A. a.
B. val(a).
C. *a.
D. &a.
ANSWER: C
74. The value 132.54 can represented using which data type?
A. double
B. void
C. int
D. bool
ANSWER: A
75. Which key word is used to check exception in the block of code?
A. catch
B. throw
C. try
D. none of the above
ANSWER: C
76. Which of the following is the proper keyword to deallocate memory?
A. free.
B. delete.
C. clear.
D. remove.
ANSWER: A
77. Pick out the compound assignment statement.
A. a = a - 5
B. a = a / b
C. a -= 5
D. a=a+1
ANSWER: C
78. When a class A inhereits its properties from class B and class C, then the inheritance is said to be ___________
inheritance
A. multiple
B. multilevel
C. single
D. hybrid
ANSWER: A
79. Polymorphism is not implemented through ____________.
A. function overloading
B. operator overloading
C. virtual functions
D. contructors and destructors
ANSWER: D
80. Definition of the function is not necessary in ________.
A. virtual functions.
B. function overloading
C. pure virtual functions.

D. operator overloading

No comments:

Post a Comment