download Mastguru Android App

Question Detail

Calling the stream's member function sync() causes an immediate synchronization.

  • True
  • False
Similar Questions :

1. Which stream class is to only read from files ?

  • ofstream
  • ifstream
  • fstream
  • iostream

2. Which among following is used to open a file in binary mode ?

  • ios:app
  • ios::out
  • ios::in
  • ios::binary

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 );

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 );

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
Read more from - C++ File Handling Questions Answers
Post a comment