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

  • question_answer
    To read 4 characters from a file object "myfile", which statement you should use:

    A) myfile.read(4) 

    B) myfile.read()

    C) myfile.readline()  

    D) myfile.readlines()

    Correct Answer: A

    Solution :

    [a] myfile.read(4) function should be used to read 4 characters from a file.


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