XamBaaz

File Handling in Python — Class 12 MCQs with Answers

Class 12 CBSE Computer Science · Chapter 3

30 practice questions · 30 Medium · Updated

Practise the most important Class 12 CBSE Computer Science questions from Chapter 3, "File Handling in Python". You get 3 timed quizzes made from 30 NCERT-based MCQs, with answers and explanations. The questions are split into 30 Medium. Warm up on the basics, then move on to the exam-level questions that set top scorers in CBSE Board exams apart.

To score well in "File Handling in Python", focus on logic, syntax and computational thinking. Each MCQ here is timed and uses exam-style marking (+4 correct, −1 wrong, 0 skipped). This trains you to stay accurate under time pressure, as real papers need. Every question has a short explanation, so a wrong answer becomes a quick lesson. It is the fastest way to fix gaps before a test.

Use this chapter for focused revision. Start with the Easy set to check your basics on File Handling in Python, then move to Medium to practise applying them. Your accuracy, streaks and XP save automatically. This chapter also adds to your overall Class 12 Computer Science mastery score. 2 sample questions are solved in full below, with the answer and a worked explanation. Sign in free to start practising.

File Handling in Python — important questions & MCQs with answers (Class 12 Computer Science)

2 solved questions from this chapter's difficulty levels, each with its answer and explanation. The other 28 are timed and scored when you sign in.

  1. Q1Medium

    A file consisting of human readable characters that any text editor can open is:

    A.An executable file
    B.A binary file
    C.A text file✓ Correct
    D.A compressed file

    Answer: C. A text file

    Explanation: A text file consists of human readable characters and can be opened by any text editor, unlike a binary file whose characters are not human readable.

  2. Q2Medium

    The function used to open a file in Python is:

    A.file()
    B.load()
    C.open()✓ Correct
    D.read()

    Answer: C. open()

    Explanation: open() takes the file name and access mode and returns a file object, also called the file handle.

Start this chapter free

You have 2 solved above. Sign in with Google (no card needed). You get 1 Easy + 1 Medium quiz on every chapter during your 30-day trial. After that, you keep 1 Easy quiz on every chapter, free for good.

This chapter has 30 questions (30 Medium), with timed scoring and instant feedback. The rest unlock with the ₹999/year plan.

Start this chapter free →

File Handling in Python — FAQs

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

It has 30 NCERT-based MCQs on "File Handling in Python": 30 Medium. Together they make 3 timed quizzes, and you never get the same set twice. Every question has an instant explanation. They help you prepare for CBSE Board exams.

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

Yes. Sign in with Google to practise "File Handling in Python" free. Full unlimited access is ₹999/year on a launch offer until 1 December 2026. No chapter is charged separately.

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

Start with the Easy quiz to check your basics, then try Medium to practise applying them. There are 3 timed quizzes on this chapter, so you can come back for a fresh set instead of one you have seen. Read each explanation, retry the questions you miss, and track your accuracy until it stays high.

Are these "File Handling in Python" MCQs available with answers?+

Yes. 2 sample questions are shown here in full, each with the correct option and a step-by-step "Why" explanation. Sign in free with Google to start practising, with instant scoring.

Is there negative marking in the "File Handling in Python" quizzes?+

Yes. The timed quizzes use exam-style marking: +4 for a right answer, −1 for a wrong one and 0 for a skip. MHT-CET and CBSE board papers have no negative marking. Our mocks for those are scored their way.

What are the important questions from File Handling in Python (Class 12 Computer Science)?+

This page shows 2 solved important MCQs with answers and explanations; all 30 questions on the chapter are available as timed quizzes once you sign in.

Is there an online quiz for File Handling in Python?+

Yes — Class 12 Computer Science File Handling in Python has timed online quizzes at Medium levels, with instant scoring and a worked explanation on every question. The first quiz on the chapter is free.

More Class 12 Computer Science chapters

Class 12 — other subjects

← All Class 12 Computer Science chapters
🦅 One new exam question every day on InstagramFollow @xambaaz