MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers in Technical MCQs
→
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
<pre class="result notranslate"> 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; } </pre>10.ios::trunc is used for ?
<pre class="result notranslate"> 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; } </pre>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