XamBaaz
Try for Free
💻

Class 12 Computer Science — Chapter 2: File Handling

6 practice questions · 2 Easy · 2 Medium · 2 Hard

Practise Class 12 Computer Science Chapter 2, "File Handling", with 6 NCERT-aligned multiple-choice questions. The set is split into 2 Easy, 2 Medium and 2 Hard questions, so you can warm up on the fundamentals and then push into the exam-level problems that separate top scorers in CBSE Board exams.

"File Handling" is one of the chapters where logic, syntax and computational-thinking questions really pays off. Each MCQ on this chapter is timed and uses exam-grade marking (+2 correct, −1 wrong, 0 skipped), training the same accuracy-under-pressure that real papers demand. Every question carries a short explanation, so a wrong answer becomes a quick lesson rather than a dead end — the fastest way to close gaps before a test.

Use this chapter as targeted revision: attempt the Easy set first to confirm your basics on File Handling, then move to Medium and Hard to test application and problem-solving. Your accuracy, streaks and XP save automatically, and the chapter feeds into your overall Class 12 Computer Science mastery score. A few sample questions are shown below; sign in free to practise all 6.

Sample questions

Q1Easy

open("a.txt", "r") opens for:

A.Reading✓ correct
B.Writing
C.Append
D.Delete
Why

Mode 'r' = read.

Q2Medium

Module to serialise Python objects:

A.pickle✓ correct
B.csv only
C.json only
D.os
Why

pickle.dump / pickle.load.

Q3Hard

Mode 'a' opens file for:

A.Append (write at end without erasing)✓ correct
B.Read
C.Erase + write
D.Random
Why

File pointer at end.

File Handling — FAQs

What does Class 12 Computer Science Chapter 2 (File Handling) cover on XamBaaz?+

It covers 6 NCERT-aligned MCQs on "File Handling" — 2 Easy, 2 Medium and 2 Hard — each with a timed quiz and an instant explanation, suitable for CBSE Board exams.

Are these "File Handling" questions free to practise?+

Yes — sign in with Google to practise "File Handling" free. Full unlimited access is ₹999/year (limited-time launch price), with no per-chapter charges.

How should I revise "File Handling" for the exam?+

Start with the Easy quiz to confirm your fundamentals, then attempt Medium and Hard for application-level practice. Review each explanation, retry the questions you miss, and track your accuracy on this chapter until it is consistently high.

Practise all 6 questions free

Timed quizzes, instant scoring, streaks and XP. Sign in with Google — no card needed.

Start this chapter free →

More Class 12 Computer Science chapters

← All Class 12 Computer Science chapters