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
control
repetition
selection
sequence
switching
Answer: Option
Explanation:
No answer description is available. Let's discuss.

42.
Which of the following statements will assign the address of the age variable to the agePtr pointer?
agePtr = &age;
agePtr = *age;
&agePtr = age;
*agePtr = age;
agePtr -> *age;
Answer: Option
Explanation:
No answer description is available. Let's discuss.

43.
The >> (extraction) operator stops reading characters from the keyboard as soon as the user _____
presses the Enter key
types a character that is inappropriate for the variable's data type
both (a) and (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

44.
In the statement template<class T>,
T is a class
T is a scalar variable
either (a) or (b)
neither (a) nor (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

45.
The null character is represented by
\n
\0
\o
\r
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.