MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers
→
Which stream class is to only write on files ?
1.
Which stream class is to only write on files ?
A.
ofstream
B.
ifstream
C.
fstream
D.
iostream
Answer» B. ifstream
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Note:Includes all required header filesusing namespace std; int main () { char fine, course; cout << "Enter a word: "; fine = cin.get(); cin.sync(); course = cin.get(); cout << fine << endl; cout << course << endl; return 0; } 10.ios::trunc is used for ?
Note:Includes all required header filesusing namespace std; int main () { int l; char * b; ifstream i; i.open ("find.txt", ios :: binary ); i.seekg (0, ios :: end); l = i.tellg(); i.seekg (0, ios :: beg); b = new char [l]; i.read (b, l); i.close(); cout.write (b, l); delete[] b; return 0; } 9.What is the output of this program?
Which is correct syntax ?
Which of the following methods can be used to open a file in file handling?
Which of these is the correct statement about eof() ?
Which stream class is to only write on files ?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies