CBSE Class 12 Computer Science Question 72 of 145

File Handling — Question 7

Back to all questions
7
Question

Question 7

The types of operations that can be carried out on a file depend upon the file mode a file is opened in.

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.