Skip to content
CBSE Class 12

File Handling practice questions for CBSE Class 12 Computer Science

Revise file handling with topic-based practice questions. Preview the question format and start a sample session when you are ready.

See the question style before signup · Get instant feedback · Continue with focused practice

Try a sample question

Check your answer to see the explanation where one has been published.

Try this question
Why is binary mode (e.g. 'rb', 'wb') required when using the pickle module?

1 sample question · No signup needed

Something unclear? Report this question.

2
What will len(f.readlines()) return for a text file containing 4 lines (the last line also ending with a newline)?
3
Consider: f.seek(0) called on an open file. What does it do?
Start a sample session

50 published questions available for this topic.