C++ File Handling Questions Answers

  • 15. What is use of eof() ?

    1. Returns true if a file open for reading has reached the next character.
    2. Returns true if a file open for reading has reached the next word.
    3. Returns true if a file open for reading has reached the end.
    4. 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 ?

    1. ios::start
    2. ios::beg
    3. ios::begin
    4. ios::beginning
    Answer :

    Option B

  • 17. offset counted from the current position using ?

    1. ios::curr
    2. ios::cr
    3. ios::cur
    4. ios::current
    Answer :

    Option C

Please Like Us

disawar satta king