Question Detail Which stream class is to only read from files ? ofstreamifstreamfstreamiostream Answer: Option B Similar Questions : 1. Which is correct syntax for, position n bytes back from end of fileObject ? fileObject.seekg(ios::end, n);fileObject.seekg(n, ios:end );fileObject.seekg(n, ios::end );fileObject.seekg(ios:end, n); Answer: Option C 2. How to find the position at end of fileObject ? fileObject.seekg( 0, ios::end );fileObject.seekg( 0, ios::end );fileObject.seekg( 0, ios::end );fileObject.seekg( 0, ios::end ); Answer: Option A 3. Which among is used for positioning relative to the beginning of a stream ? ios::startios::begios::beginios::beginning Answer: Option B 4. Which stream class is used to both read and write on files ? ofstreamifstreamfstreamiostream Answer: Option C 5. Which stream class is to only write on files ? ofstreamifstreamfstreamiostream Answer: Option A Read more from - C++ File Handling Questions Answers