Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The most common operation used in constructors is _____
A:
addition
B:
overloading
C:
assignment
D:
polymorphism
Answer: C
No answer description is available. Let's discuss.
The store of memory available to programs is the _____
A:
store
B:
stack
C:
pile
D:
heap
Answer: D
No answer description is available. Let's discuss.
Private data can be accessed by
A:
class member functions
B:
functions in derived classes
C:
both (a) and (b)
D:
neither (a) nor (b)
Answer: A
No answer description is available. Let's discuss.
The statement int num[2][3]={ {3,8,6}, {9,4,7}};
A:
assigns a value 4 to num[1][2]
B:
assigns a value 7 to num[1][2]
C:
assigns a value 8 to num[1][2]
D:
assigns a value 9 to num[1][2]
Answer: B
No answer description is available. Let's discuss.
Function templates _____________
A:
must have exactly one parameter
B:
may have more than one parameter as long as they are of the same type
C:
may have more than one parameter of any type
D:
may not have parameters
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz