Computer Science - Object Oriented Programming Using C++
Exercise :: Object Oriented Programming Using C++ - Section 9
36. |
One of the valid escape sequences used in the C language is |
Answer: Option C
Explanation:
|
37. |
A default constructor |
A. |
takes no arguments | B. |
has default values for all its arguments | C. |
either (a) or (b) | D. |
neither (a) nor (b) |
Answer: Option C
Explanation:
|
38. |
Which of the following will increase the value stored in the first element of the fee array by 2? |
A. |
amount[0] = amount[0] + 2; | B. |
amount, fee[0] = amount, fee [0] + 2; | C. |
feelnfo.amount[0] = feelnfo.amount[0] + 2; | D. |
fee[0].amount = fee[0].amount + 2; | E. |
fee.amount[0] = fee.amount[0] + 2; |
Answer: Option D
Explanation:
|
39. |
Which loop always processes its instructions at least once? |
Answer: Option A
Explanation:
|
40. |
When a new class is derived from an existing class, the derived class member functions _____ have names that differ from base class function names |
A. |
may | B. |
may if the two classes have the same name | C. |
must | D. |
must not |
Answer: Option A
Explanation:
|