KnowledgeBoat Logo

Computer Science

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

Python File Handling

2 Likes

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.

Answered By

3 Likes


Related Questions