Computer Science - Object Oriented Programming Using C++

46.
Which of the following statements opens a file named temp.dat for output?
outFile.open("temp .dat");
fileOut.output("temp .dat");
openFile.out("temp .dat");
fileOpen.out("temp .dat");
out.fileOpen("temp .dat");
Answer: Option
Explanation:
No answer description is available. Let's discuss.

47.
Which of the following will store the letter H in a Character variable named initial?
initial = 'H'
initial = 'H';
initial = "H"
initial = "H";
Answer: Option
Explanation:
No answer description is available. Let's discuss.

48.
Compared with the classes from which they are derived, inherited classes may have _____
additional data members
additional member functions
both (a) and (b)
neither (a) nor (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

49.
A class named Student must have a constructor whose name is
Student
~Student
constructor
any legal C++ name
Answer: Option
Explanation:
No answer description is available. Let's discuss.

50.
To write data that contains variables of type float, to an object of type ofstream, you should use
the insertion operator
seekg()
writeQ
put()
Answer: Option
Explanation:
No answer description is available. Let's discuss.