Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Compared with the classes from which they are derived, inherited classes may have _____
A:
additional data members
B:
additional member functions
C:
both (a) and (b)
D:
neither (a) nor (b)
Answer: C
No answer description is available. Let's discuss.
Which of the following will store the letter H in a Character variable named initial?
A:
initial = 'H'
B:
initial = 'H';
C:
initial = "H"
D:
initial = "H";
Answer: B
No answer description is available. Let's discuss.
Which of the following statements opens a file named temp.dat for output?
A:
outFile.open("temp .dat");
B:
fileOut.output("temp .dat");
C:
openFile.out("temp .dat");
D:
fileOpen.out("temp .dat");
Answer: A
No answer description is available. Let's discuss.
Element doubleArray[7] is which element of the array?
A:
the sixth
B:
the seventh
C:
the eighth
D:
impossible to tell
Answer: C
No answer description is available. Let's discuss.
You can pass _____ to functions
A:
copies of individual structure members
B:
copies of entire structures
C:
pointers to structures
D:
All of the above
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz