Welcome to the most comprehensive collection of Class 12 Computer Science Topic-wise MCQs for CBSE (Code 083). These multiple choice questions cover every chapter of the Class 12 CS syllabus — from Python functions, file handling, and data structures to computer networks and SQL database management. Whether you are preparing for unit tests, practicals, or the final board exam, these MCQ sets will sharpen your concepts and boost your score.
Each set is carefully designed to match the latest CBSE Class 12 CS exam pattern with questions at varying difficulty levels — from basic concept recall to tricky output-based questions that test your actual understanding of Python code.
🐍 Unit I — Computational Thinking and Programming — II
Unit I is the most important unit in Class 12 CS — it carries approximately 60 marks in the board exam. It covers advanced Python programming: functions, file handling (text, binary, CSV), data structures (stack and queue), and searching and sorting algorithms. Practise these MCQ sets thoroughly and repeatedly.
Python Revision Tour MCQ
150+ questions covering all Python basics from Class 11 — variables, data types, operators, strings, lists, tuples, dictionaries, and functions. The ultimate warm-up set before diving into Class 12 topics.
Working with Functions MCQ
50+ questions on function definition, calling, return values, types of arguments (positional, keyword, default, *args, **kwargs), local vs global scope, lambda functions, and recursion.
Flow of Control — Conditional Statements MCQ
40+ questions on if, if-else, if-elif-else, nested conditions, ternary operator, and output tracing. Covers break, continue, and pass in loop context — essential for board output questions.
for Loop in Python MCQ
40+ questions on for loop syntax, range(), nested loops, pattern printing, iterating over strings and lists, loop tracing, and output prediction questions — extremely common in board exams.
String Manipulation and Functions MCQ
40+ questions on string indexing, slicing, concatenation, repetition, all string methods (upper, lower, find, replace, split, strip, count), and combined function + string programs.
File Handling MCQ — Overview
40+ questions covering all file handling concepts — open(), file modes (r, w, a, rb, wb), read(), write(), with statement, seek(), tell(), and the difference between text, binary, and CSV files.
Text File Handling MCQ
100+ dedicated questions on text file handling — reading line by line with readline() and readlines(), writing with write() and writelines(), file pointer position, and program-based output questions.
Binary File Handling MCQ
60+ questions on binary file handling using the pickle module — pickle.dump(), pickle.load(), file modes rb and wb, storing and retrieving Python objects, and output-based program tracing questions.
CSV File Handling MCQ
40+ questions on CSV file handling using Python’s csv module — csv.reader(), csv.writer(), csv.DictReader(), csv.DictWriter(), reading and writing CSV data, and practical program-based questions.
Data Structures — Stack and Queue MCQ
50+ questions on Stack (LIFO — Push and Pop), Queue (FIFO — Enqueue and Dequeue), overflow and underflow conditions, Python list-based implementation, and dry-run output questions.
🌐 Unit II — Computer Networks
Unit II covers computer networks — a purely theory-based unit worth around 10–12 marks. Questions are straightforward: network types, topologies, devices, protocols, OSI model, and IP addressing. Practise the MCQ set once thoroughly and revise key definitions before the exam.
Computer Networks MCQ
80+ questions covering LAN, MAN, WAN, PAN, network topologies (Bus, Star, Ring, Mesh, Tree), networking devices (Hub, Switch, Router, Modem), OSI model (7 layers), TCP/IP model (4 layers), key protocols (HTTP, FTP, DNS, DHCP, SMTP), IP addressing (IPv4, IPv6), and network security.
🗃️ Unit III — Database Management
Unit III covers SQL and database management — worth around 8–10 marks in the board exam. SQL questions appear every year as “write the output of the following query” or “write an SQL command to…”. Practise these MCQs to get comfortable with SELECT, WHERE, GROUP BY, aggregate functions, and constraints.
SQL MCQs for Class 12
75+ questions on all SQL topics — DDL (CREATE, ALTER, DROP), DML (SELECT, INSERT, UPDATE, DELETE), SQL constraints (NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, DEFAULT, CHECK), SELECT with WHERE, ORDER BY, GROUP BY, HAVING, aggregate functions (COUNT, SUM, AVG, MAX, MIN), and BETWEEN, LIKE, IN operators.
📊 Topic-wise Exam Weightage — Class 12 CS
Use this table to prioritise your MCQ practice — spend the most time on topics that carry maximum marks in the board exam.
| Topic | Unit | Approx. Marks | Priority |
|---|---|---|---|
| File Handling (Text + Binary + CSV) | Unit I | 10–12 marks | 🔴 Very High |
| Data Structures — Stack & Queue | Unit I | 8–10 marks | 🔴 Very High |
| Python Functions | Unit I | 6–8 marks | 🔴 Very High |
| SQL — Database Management | Unit III | 8–10 marks | 🔴 Very High |
| Computer Networks | Unit II | 10–12 marks | 🟠 High |
| Python Revision Tour | Unit I | 6–8 marks | 🟠 High |
| Strings and Functions | Unit I | 4–6 marks | 🟠 High |
| Flow of Control / Loops | Unit I | 4–5 marks | 🟡 Medium |
✅ Why Practise Topic-wise MCQs?
📖 How to Use These MCQs Effectively
- Pick a topic — Start with the topic you just studied or the one you feel least confident about. File Handling and Data Structures first if you are close to the exam.
- Attempt without looking — Try every question on your own first. For output-tracing questions, trace the code on paper before selecting an option.
- Check and understand — Review every wrong answer carefully. Understand why the correct answer is right, not just what it is.
- Revise the note — If you got more than 3 wrong in a set, go back to the topic notes and revise before attempting again.
- Repeat after 3 days — Come back and attempt the same set again. Spaced repetition is the most powerful way to lock concepts into long-term memory.
- End with the revision set — Once all topics are done, attempt the Python Revision Tour MCQs for a complete cross-topic review before your exam.