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

  • question_answer
    When you open a file in this mode, the file pointer is placed at the beginning of the file and if the file is not existing, it will generate FileNotFoundError.

    A) r+       

    B) rb     

    C) w         

    D) r

    Correct Answer: D

    Solution :

    [d] When you open a file in read (r) mode, the file pointer is placed at the beginning of the file and if the file is not existing, it will generate FileNotFoundError.


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