Object Oriented Programming Using C++ – Section 4


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

21. The most common operation used in constructors is _____

A. addition
B. overloading
C. assignment
D. polymorphism

Correct Answer: C. assignment
Advertisement

22. When a function performs tasks based on a decision, it has _____

A. functional cohesion
B. coincidental cohesion
C. logical cohesion
D. no cohesion

Correct Answer: C. logical cohesion
Advertisement

23. To create a template class, you begin with _________

A. the template definition
B. the keyword class
C. the function definitions
D. the keyword definition

Correct Answer: A. the template definition
Advertisement

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

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

Correct Answer: C. cin
Advertisement

25. A variable is _____

A. an item of data
B. a memory location whose value can change while the program is running
C. a memory location whose value cannot change while the program is running

Correct Answer: B. a memory location whose value can change while the program is running
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?