Vidyalelo
Computer Science · Q438

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 438

Q438

Which of the following statements opens a file named temp.dat for output?

A.
outFile.open("temp .dat");
Answer
B.
fileOut.output("temp .dat");
C.
openFile.out("temp .dat");
D.
fileOpen.out("temp .dat");
E.
out.fileOpen("temp .dat");

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board