12th Class Computers Science Sample Paper File Handling - Sample Paper-2

  • question_answer
    'n' characters from the file can be read by .................. method.

    A) readline(n)       

    B) reads(n)

    C) read(n)    

    D) readlines(n)

    Correct Answer: C

    Solution :

    [c] By passing n (no of bytes) as a parameter in read(). function, then you can read 'n' characters from the file.  


You need to login to perform this action.
You will be redirected in 3 sec spinner