Solved

Which of the Following Statements Opens a File Named Info

Question 5

Multiple Choice

Which of the following statements opens a file named info.txt for both input and output?


A) dataFile.open("info.txt", ios::in && ios::out) ;
B) dataFile.open("info.txt", ios::in, ios::out) ;
C) dataFile.open("info.txt", input || output) ;
D) dataFile.open("info.txt", ios::in | ios::out) ;
E) None of these

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions