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

  • question_answer
    Answer the following questions (21 to 24) on the basis of ABOUT.txt file having the below content:
    What is the output of the statement

    A) Read whole data as a list       

    B) Read whole data as a string

    C) Generates an error

    D) None of the above

    Correct Answer: C

    Solution :

    [c] You will try to open "about 1 .txt" which is not present, so, it will generate an error.


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