CBSE Class 12 Computer Science (Python) – Chapter Wise Questions (Past 10 Years: 2015–2025)
1. Python Revision Tour 1 – Core Concepts
Programming / Coding Tasks
1. Demonstrate list slicing and indexing.
2. Find sum, average, or count in a list using loops or functions.
3. Dictionary operations: add, delete, update, and search keys/values.
4. Tuple manipulation: access, concatenation, and nesting.
5. String operations: reverse, concatenate, find substring, check palindrome.
6. Implement basic functions with return values and parameters.
7. Demonstrate use of loops (for, while) and conditional statements.
8. Use of list comprehensions for generating sequences or filtering.
Conceptual / Short-Answer Questions
• Difference between list, tuple, and dictionary.
• Mutable vs immutable objects.
• Pass by value vs pass by reference in Python.
• Scope of variables: local, global.
• Explain try-except for error handling.
Sample Board-Style Prompts (2015–2025)
• Write a function to count vowels in a string.
• Reverse a list without using built-in reverse().
• Find maximum and minimum from a dictionary values.
• Use slicing to extract sublist from a given list.
• Check whether a string is a palindrome.
2. Python Revision Tour 2 – Advanced Concepts
Programming / Coding Tasks
1. File handling: read/write text and CSV files.
2. Exception handling with multiple except blocks.
3. Modules and imports: use math, random, datetime modules.
4. Classes and objects: create simple classes, initialize objects.
5. Inheritance: demonstrate single and multi-level inheritance.
6. Method overriding and super() function.
7. Use of class and instance variables.
8. Lambda functions and map(), filter(), reduce() usage.
1
Conceptual / Short-Answer Questions
• Difference between procedural and object-oriented programming.
• Purpose of constructors and destructors.
• Difference between instance, class, and static methods.
• Advantages of modular programming.
• Explain polymorphism and encapsulation with examples.
Sample Board-Style Prompts (2015–2025)
• Create a class Student with attributes and methods to calculate average marks.
• Demonstrate single-level inheritance with method overriding.
• Read a CSV file of student marks and print students with marks > 80.
• Use lambda function to square elements of a list.
• Handle division by zero exception.
3. Stack (Data Structure) – Core Concepts
Programming / Coding Tasks
1. Implement stack using list.
2. Push and pop operations with checks for overflow/underflow.
3. Display stack elements.
4. Use stack to reverse a string.
5. Evaluate postfix expressions using stack.
6. Convert infix expression to postfix using stack.
7. Check for balanced parentheses using stack.
8. Implement stack using class (OOP approach).
Conceptual / Short-Answer Questions
• Define stack and its characteristics (LIFO).
• Difference between stack and queue.
• Applications of stack in real-world scenarios.
• Overflow and underflow conditions.
• Explain push, pop, peek, and isEmpty operations.
Sample Board-Style Prompts (2015–2025)
• Write a program to implement push, pop and display using list.
• Check whether a given string has balanced parentheses using stack.
• Convert infix expression (a+b)*c to postfix using stack.
• Evaluate the postfix expression 23*5+ .
• Implement a class Stack with methods push, pop, display.
2
Preparation Tips
• Practice coding programs in Python IDE.
• Solve previous year questions exactly.
• Revise theory questions for short-answer marks.
This PDF covers all recurring CBSE Class 12 Python Revision Tour 1 & 2 and Stack question types from
2015–2025.