Exception Handling: Class 12 PYQs 2024–2026 with solutions
All 3 CBSE board questions asked from Exception Handling in 3 board papers, with the year, set and marks of each. 2 are solved free below. The Class 12 Computer Science PYQ Book: Solved Board Papers 2024-2026 (CBSE) has every solution, all chapters and 3 full board papers.
Exception Handling: board weightage
Board weightage 2024–2026
| Year | 2024 | 2025 | 2026 |
|---|---|---|---|
| Questions | 1 | 1 | 1 |
| Marks | 1 | 1 | 1 |
Most asked topics
3 questions from 3 papers. Repeated questions are shown once with every year they were asked.
Jump to: 1 mark
1 mark: MCQ and Assertion–Reason
State True or False: In Python, logical errors can be handled using try...except...finally statement.
Solution
False. A logical error produces a wrong result without raising any exception, so there is nothing for except to catch; only run-time errors (exceptions) can be handled.
N='5' / try: / print('WORD' + N, end='#') / except: / print('ERROR',end='#') / finally: / print('OVER') (A) ERROR# (B) WORD5#OVER (C) WORD5# (D) ERROR#OVER
Solution
(B) WORD5#OVER. N is the string '5', so 'WORD' + '5' = 'WORD5' works; no exception, so except is skipped; finally always runs and prints OVER.
State True or False: While handling exceptions in Python, name of the exception has to be compulsorily added with except clause.
Get every solution for all chapters
- Every board question of every chapter, each fully solved the way the board gives marks
- 3 complete board papers, each followed by its solutions
- Weightage and most-asked topics for every chapter
- Instant PDF download, colour and black & white print copies
Revising the chapter first? Complete Computer Science Notes for Class 12 (CBSE 083, 2026-27) →
What you get in the pack
- CBSE Class 12 Computer Science board papers 2024 to 2026 (3 full board papers)
- All 14 chapters and 3 board papers complete
- Part A: all 14 chapters, questions sorted chapter-wise and by marks
- Year-wise weightage table and most-asked topics for every chapter
- Part B: each full board paper followed by its complete solutions
- Full programs; every output traced and verified by running the code
- Only the current syllabus in Part A
All chapters in this pack
- PYQ Ch 1 Python Revision Tour
- PYQ Ch 2 Functions
- PYQ Ch 3 Exception Handling
- PYQ Ch 4 Text Files
- PYQ Ch 5 Binary Files
- PYQ Ch 6 CSV Files
- PYQ Ch 7 Stack
- PYQ Ch 8 Computer Networks I: Evolution and Data Communication
- PYQ Ch 9 Computer Networks II: Devices, Topologies and Types
- PYQ Ch 10 Network Protocols and Web Services
- PYQ Ch 11 Database Concepts
- PYQ Ch 12 SQL: DDL, DML and Queries
- PYQ Ch 13 SQL: Aggregates, Grouping and Joins
- PYQ Ch 14 Interface of Python with MySQL
- Board Paper 2026 Set 91 with Solutions
- Board Paper 2025 Set 91 with Solutions
- Board Paper 2024 Set 91 with Solutions
