Computer Science - Object Oriented Programming Using C++

41. 

The instruction "If it's raining outside, then take an umbrella to work" is an example of the _____ structure

A. control
B. repetition
C. selection
D. sequence
E. switching

Answer: Option C

Explanation:

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

42. 

Which of the following statements will assign the address of the age variable to the agePtr pointer?

A. agePtr = &age;
B. agePtr = *age;
C. &agePtr = age;
D. *agePtr = age;
E. agePtr -> *age;

Answer: Option A

Explanation:

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

43. 

The >> (extraction) operator stops reading characters from the keyboard as soon as the user _____

A. presses the Enter key
B. types a character that is inappropriate for the variable's data type
C. both (a) and (b)

Answer: Option C

Explanation:

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

44. 

In the statement template<class T>,

A. T is a class
B. T is a scalar variable
C. either (a) or (b)
D. neither (a) nor (b)

Answer: Option C

Explanation:

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

45. 

The null character is represented by

A. \n
B. \0
C. \o
D. \r
E. None of the above

Answer: Option B

Explanation:

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