Q. Explain how many file objects would you need to create to manage the following situations:
(a) To process three files sequentially
(b) To merge two sorted files into a third file.
Answer =
(a) One object are needed.
(b) Three object are needed.
(a) To process three files sequentially
(b) To merge two sorted files into a third file.
Answer =
(a) One object are needed.
(b) Three object are needed.
I think the answer for part (a) should be one. Since we are processing the files sequentially the same file object can also be used multiple times.
ReplyDeleteYes, you are right..
Deletewaste
DeleteGood
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )