CBSE Class 12 Computer Science Question 129 of 136

Data File Handling — Question 17

Back to all questions
17
Question

Question 17

The type of operation that can be performed on a file depends upon the file mode in which it is opened.

Answer

True

Reason — The operations that can be carried out on a file, such as reading, writing, and appending, depend on the file mode specified during the file opening. For example, if a file is opened in read-only mode ('r'), we can only perform read operations on it, whereas if it's opened in write mode ('w'), we can only perform write operations.