Computer Science - Object Oriented Programming Using C++

36. 

One of the valid escape sequences used in the C language is

A. \z
B. \N
C. \t
D. \s
E. None of the above

Answer: Option C

Explanation:

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

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:

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

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:

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

39. 

Which loop always processes its instructions at least once?

A. do-while
B. for
C. while

Answer: Option A

Explanation:

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

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:

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