Solved

Which of the Following Statements Opens the File Info

Question 1

Multiple Choice

Which of the following statements opens the file 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) ;

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents