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

  • question_answer
    When you open a file in write mode, the given file must exist in the folder, otherwise Python will raise    FileNotFound error

    A) True                 

    B) False

    C) None of these

    D) All of the above

    Correct Answer: B

    Solution :

    [b] No, When you open a file in write mode, if the given file does not exist in the folder then it will create a file for you and write the data in it.


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