203k views
4 votes
Which of the following statements is true about a file stream?

Select one:

a. It is optional to provide the file name to open for reading or writing.

b. You cannot use a single object to read as well as to write.

c. A file stream object can be used to open more than one file simultaneously.

d. A file should be closed after all the operations associated with it are complete

User Kajham
by
8.4k points

1 Answer

1 vote

Answer: (c) A file stream object can be used to open more than one file simultaneously.

Explanation: File stream is application that is found on desktop that helps in accessing the files on demand and requirement of the Google Drive. The files team can access direction and updating takes place automatically.

It also helps in the accessing one or more files in a series through individual file stream object. After all the accessing and activities file gets closed as well and the updates gets save automatically.

Other options are incorrect because accessing the file for reading or writing requires file name mandatory and single object can open a file but cannot be used for writing and reading.Thus ,the correct options are option(c) .

User Arunkumar
by
7.9k points