- Home
- Quantitative
- English
- Reasoning
- IT Officer
- Programming
-
Computer
- Computer Awareness Questions Answers - Set 1
- Computer Awareness Questions Answers - Set 2
- Important Abbreviations Computer Awareness Questions Answers
- Important File Extensions Questions Answers
- Computer System Architecture Questions Answers
- MS Office Questions Answers
- MS Excel Questions Answers
- MS PowerPoint Questions Answers
-
GK
- Geography Questions Answers
- Indian History Questions Answers
- World History Questions Answers
- Indian Economy Questions Answers
- Indian Polity and Constitution
- Physics Questions Answers
- Chemistry Questions Answers
- Biology Questions Answers
- First In India
- First In World
- Longest and Largest
- Books and Authors
- Important Days of year
- Countries and Capitals
- Inventions and Inventors
-
Current Affairs
- Current Affairs
- Current Affairs 2018
- Current Affairs 2018 - 2019 PDF
- Current Affairs August 2019
- Current Affairs July 2019
- Current Affairs June 2019
- Current Affairs May 2019
- Current Affairs April 2019
- Current Affairs March 2019
- Current Affairs February 2019
- Current Affairs January 2019
- Current Affairs December 2018
- Current Affairs November 2018
- Current Affairs October 2018
- Current Affairs September 2018
- Govt Jobs
- Exams
- Online Quiz
- You are here
- Home
- Programming Aptitude
- C++ Programming Questions Answers
- C++ File Handling Questions Answers
- Aptitude Question
- Current Affairs 2019
- Current Affairs 2018
- Current Affairs December 2018
- Current Affairs November 2018
- Current Affairs October 2018
- Current Affairs September 2018
- Current Affairs August 2018
- Current Affairs July 2018
- Current Affairs June 2018
- Current Affairs May 2018
- Current Affairs April 2018
- Current Affairs March 2018
- Current Affairs February 2018
- Current Affairs January 2018
- Current Affairs 2018
- Current Affairs PDF
- Current Affairs PDF Download
- Current Affairs July 2019 PDF
- Current Affairs June 2019 PDF
- Current Affairs May 2019 PDF
- Current Affairs April 2019 PDF
- Current Affairs March 2019 PDF
- Current Affairs February 2019 PDF
- Current Affairs January 2019 PDF
- Current Affairs December 2018 PDF
- Current Affairs November 2018 PDF
- Current Affairs October 2018 PDF
- Current Affairs September 2018 PDF
- Current Affairs August 2018 PDF
- Current Affairs July 2018 PDF
- Current Affairs June 2018 PDF
- Current Affairs May 2018 PDF
- Current Affairs April 2018 PDF
- Current Affairs March 2018 PDF
- Current Affairs February 2018 PDF
- Current Affairs January 2018 PDF
Question Detail
Calling the stream's member function sync() causes an immediate synchronization.
- True
- False
Answer: Option A
1. Which stream class is to only read from files ?
- ofstream
- ifstream
- fstream
- iostream
Answer: Option B
2. Which among following is used to open a file in binary mode ?
- ios:app
- ios::out
- ios::in
- ios::binary
Answer: Option D
Explanation:
ios:app -> All output operations are performed at the end of the file, appending the content to the current content of the file.
ios::out -> Open for output operations.
ios::in -> Open for input operations.
3. How to get position to the nth byte of fileObject ?
- fileObject.seekg( 'filename',n );
- fileObject.seekg( n, 'filename' );
- fileObject.seekg( n );
- fileObject.seekg( n, ios::app );
Answer: Option C
4. How to get position n bytes forward in fileObject ?
- fileObject.seekg( ios::cur, n );
- fileObject.seekg( n, ios:cur );
- fileObject.seekg( n, ios::cur );
- fileObject.seekg( ios:cur, n );
Answer: Option C
5. Which is among following is used to Open a file for output and move the read/write control to the end of the file ?
- ios::ate
- ios::at
- ios::ann
- ios::end
Answer: Option A
Thanks ! Your comment will be approved shortly !
- Copyright 2014 - All rights reserved
- Terms Of Use & Privacy Policy
- Contact Us
- Copyright