Q. How many file objects would you need to manage the following situations:

(a) To process four files sequentially.

(b) To merge two sorted files into third file.


Answer =

(a) Four objects are needed.
(b) Three objects are needed.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Why 4 in the first part?

    ReplyDelete
    Replies
    1. To process four files sequentially, you would typically need four file objects, one for each file. This allows you to open each file individually and perform sequential processing on them.

      Delete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post