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) Erase existing data and write new line.

    B) Write new line with existing data.

    C) Generates an error

    D) None of the above

    Correct Answer: A

    Solution :

    [a] You will open existing file in write mode, so, it will erase existing data and write new line.


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