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

  • question_answer
    The ..................... statement automatically closes the file after the processing on the file gets over.

    A) try                   

    B) except

    C) catch                

    D) with

    Correct Answer: D

    Solution :

    [d] The with statement automatically closes the file after the processing on the file gets over So, If you will open your file with "with" statement then you don't require close() method to close the file.


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