Object Oriented Programming Using C++ – Section 9

31. You have declared an integer pointer called point You have also declared an integer called number. Which statement is the correct format?

A. point = number;
B. point = *number;
C. point = &number;
D. point = +number;

Correct Answer:   C. point = &number;

32. If you wanted to sort many large objects or structures, it would be most efficient to

A. place them in an array and sort the array
B. place pointers to them in an array and sort the array
C. place them in a linked list and sort the linked list
D. place references to them in an array and sort the array

Correct Answer:   B. place pointers to them in an array and sort the array

33. A function that is prototyped as double calculate(int num); may ______

A. receive a double constant such as 3.9
B. receive a double variable
C. either (a) or (b)
D. neither (a) nor (b)

Correct Answer:   D. neither (a) nor (b)

34. The printer can be accessed using the predefined filename _____

A. printer file
B. print
C. cout
D. PRN, LPT1, etc

Correct Answer:   D. PRN, LPT1, etc

35. The best functions have _____

A. high cohesion and tight coupling
B. high cohesion and loose coupling
C. low cohesion and tight coupling
D. low cohesion and loose coupling

Correct Answer:   B. high cohesion and loose coupling

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?