Computer Science - Object Oriented Programming Using C++

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;

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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)

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

34. 

The printer can be accessed using the predefined filename _____

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.