Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The null character is represented by
A:
\n
B:
\0
C:
\o
D:
\r
Answer: B
No answer description is available. Let's discuss.
In the statement template,
A:
T is a class
B:
T is a scalar variable
C:
either (a) or (b)
D:
neither (a) nor (b)
Answer: C
No answer description is available. Let's discuss.
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)
D:
Answer: C
No answer description is available. Let's discuss.
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;
Answer: A
No answer description is available. Let's discuss.
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
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz