Object Oriented Programming Using C++ – Section 2


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

41. Evaluate the following expression: 7 >=3 + 4 || 6<4 && 2<5

A. True
B. False

Correct Answer:  A. True
Advertisement

42. The base class for most stream classes is the _____ class

A. ios
B. out
C. in
D. app

Correct Answer:  A. ios
Advertisement

43. Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?

A. while age < 0
B. while (age < 0)
C. while age >= 0;
D. while (age >= 0);
E. while (age >= 0)

Correct Answer:  E. while (age >= 0)
Advertisement

44. The most efficient data type for a variable that stores the number 4.6e20 is the _____ data type

A. Character
B. Double
C. Float
D. Long Integer
E. Short Integer

Correct Answer:  C. Float
Advertisement

45. Which of the following is a C++ object?

A. cin
B. >>
C. iostream
D. read()

Correct Answer:  A. cin
Advertisement

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

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

Leave A Comment?