C++ File Handling Questions Answers
-
15. What is use of eof() ?
- Returns true if a file open for reading has reached the next character.
- Returns true if a file open for reading has reached the next word.
- Returns true if a file open for reading has reached the end.
- Returns true if a file open for reading has reached the middle.
Answer :
Option C
-
16. Which among is used for positioning relative to the beginning of a stream ?
- ios::start
- ios::beg
- ios::begin
- ios::beginning
Answer :
Option B
-
17. offset counted from the current position using ?
- ios::curr
- ios::cr
- ios::cur
- ios::current
Answer :
Option C