Object Oriented Programming Using C++ – Section 6

11. An address is a _____ , while a pointer is a _____

A. array, variable
B. constant, variable
C. variable, position
D. variable, location

Correct Answer:  D. variable, location

12. Procedural cohesion is similar to sequential cohesion, except that with procedural cohesion _____

A. the tasks are not done in order
B. the tasks are simpler
C. the tasks share data
D. the tasks do not share data

Correct Answer:  D. the tasks do not share data

13. Which of the following creates an animal object named dog?

A. animal “dog”;
B. animal dog;
C. dog “animal”;
D. dog animal;

Correct Answer:  B. animal dog;

14. The getline() function reads a line of text until _____

A. the length used as the second argument is reached
B. the character used as the third argument is reached
C. either (a) or (b)
D. neither (a) nor (b)

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

15. The extraction operator >> is a(n)

A. overloaded function
B. C++ class
C. C++ object
D. static reference variable

Correct Answer:  A. overloaded function

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?