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)

    B)   ['STUDY TRIGGER ?\n']

    C) Whole content of the file.   

    D) None of the above

    Correct Answer: A

    Solution :

    [a] readline() reads the first line of the file so, the output is STUDY TRIGGER ?\n


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