Object Oriented Programming Using C++ – Section 7

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

Correct Answer:  C. selection

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;

Correct Answer:  A. agePtr = &age;

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)

Correct Answer:  C. both (a) and (b)

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

Correct Answer:  C. either (a) or (b)

45. The null character is represented by

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

Correct Answer:  B. \0

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?