Object Oriented Programming Using C++ – Section 1


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

6. To expose a data member to the program, you must declare the data member in the _____ section of the class

A. common
B. exposed
C. public
D. unrestricted
E. user

Correct Answer:  C. public
Advertisement

7. Evaluate the following expression: 3 >6&&7>4

A. True
B. False

Correct Answer:  B. False
Advertisement

8. Which of the following are valid characters for a numeric literal constant?

A. a comma
B. a dollar sign ($)
C. a percent sign (%)
D. a space
E. None of the above

Correct Answer:  E. None of the above
Advertisement

9. A function that changes the state of the cout object is called a(n) _____

A. member
B. adjuster
C. manipulator
D. operator

Correct Answer:  C. manipulator
Advertisement

10. A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

A. char function(double d, char c)
B. int function(int d, char c)
C. both (a) and (b)
D. neither (a) nor (b)

Correct Answer:  B. int function(int d, char c)
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?