Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

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: B
No answer description is available. Let's discuss.
The printer can be accessed using the predefined filename _____
A:
printer file
B:
print
C:
cout
D:
PRN, LPT1, etc
Answer: D
No answer description is available. Let's discuss.
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: D
No answer description is available. Let's discuss.
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: B
No answer description is available. Let's discuss.
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: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz