Class 12 Computer Science Topic wise MCQs

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.

13Topic Sets
700+MCQ Questions
3CBSE Units
100%Free Access
💡 Pro tip: Always attempt each MCQ on your own before checking the answer. Output-tracing questions especially require you to mentally run the code — this is the single best way to prepare for board exam programming questions. Do not skip them!

🐍 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.

150+ Qs 🔥 Must Do Practice Now →
🔧

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.

50+ Qs 🔥 High Priority Practice Now →
🔀

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.

40+ Qs ⭐⭐⭐ Practice Now →
🔄

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.

40+ Qs ⭐⭐⭐ Practice Now →
💬

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.

40+ Qs ⭐⭐⭐ Practice Now →
📂

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.

40+ Qs 🔥 Board Exam Favourite Practice Now →
📄

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.

100+ Qs 🔥 Must Do Practice Now →
🗄️

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.

60+ Qs 🔥 High Priority Practice Now →
📊

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.

40+ Qs ⭐⭐⭐ Practice Now →
🗂️

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.

50+ Qs 🔥 Board Exam Favourite Practice Now →

🌐 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.

80+ Qs 🔥 Theory High Yield Practice Now →

🗃️ 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.

75+ Qs 🔥 High Priority Practice Now →

📊 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.

TopicUnitApprox. MarksPriority
File Handling (Text + Binary + CSV)Unit I10–12 marks🔴 Very High
Data Structures — Stack & QueueUnit I8–10 marks🔴 Very High
Python FunctionsUnit I6–8 marks🔴 Very High
SQL — Database ManagementUnit III8–10 marks🔴 Very High
Computer NetworksUnit II10–12 marks🟠 High
Python Revision TourUnit I6–8 marks🟠 High
Strings and FunctionsUnit I4–6 marks🟠 High
Flow of Control / LoopsUnit I4–5 marks🟡 Medium

✅ Why Practise Topic-wise MCQs?

🎯 Focused Revision Target one topic at a time — master it completely before moving on to the next.
Active Recall MCQs force your brain to retrieve information — proven to improve retention by 50% over re-reading notes.
🔍 Find Weak Areas Quickly identify which topics need more revision so you spend your study time where it matters most.
📈 Build Speed Regular MCQ practice improves answering speed — critical when you have 80 marks to attempt in 3 hours.
🧠 Output Tracing Program-output MCQs train you to trace Python code mentally — the most important board exam skill.
🆓 Completely Free No login, no subscription, no limit. All 700+ MCQs are free to access anytime, on any device.

📖 How to Use These MCQs Effectively

  1. 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.
  2. Attempt without looking — Try every question on your own first. For output-tracing questions, trace the code on paper before selecting an option.
  3. Check and understand — Review every wrong answer carefully. Understand why the correct answer is right, not just what it is.
  4. Revise the note — If you got more than 3 wrong in a set, go back to the topic notes and revise before attempting again.
  5. 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.
  6. 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.
Recommended practice order for board exam: Python Revision Tour → Functions → Strings → File Handling (Text → Binary → CSV) → Data Structures → Flow of Control → Computer Networks → SQL MCQs.

Frequently Asked Questions

Which MCQ set should I start with for Class 12 CS?
Start with the Python Revision Tour MCQs — it covers all Class 11 Python basics that form the foundation for Class 12 topics. After that, move to Functions, then File Handling (Text → Binary → CSV), and then Data Structures. These four areas together carry over 30 marks in the board exam.
Which topics carry the most marks in Class 12 CS board exam?
File Handling (text + binary + CSV) and Data Structures (stack and queue) together carry approximately 18–22 marks. SQL / Database Management adds another 8–10 marks and Computer Networks adds 10–12 marks. Python Functions and String/Loop programs account for the remaining marks in Unit I. Always prioritise File Handling and Data Structures first.
Are these MCQs enough for the Class 12 CS board exam?
MCQs are an excellent revision tool but should be combined with thorough note reading, program writing, and sample paper practice. After completing the MCQ sets, attempt the Class 12 CS sample papers to practise full-length exam conditions. Also complete the practical file programs for the practical exam.
How are binary file MCQs different from text file MCQs?
Text file MCQs test your understanding of reading and writing string data using modes r, w, a, and methods like read(), readline(), readlines(), write(), and writelines(). Binary file MCQs test the pickle module — specifically pickle.dump() to write Python objects (lists, dicts, etc.) and pickle.load() to read them back — using file modes rb and wb. Both types appear in CBSE board papers every year.
Is the Computer Networks unit difficult?
No — Computer Networks is one of the most scoring units because all questions are purely theory-based. There are no programs to write or trace. You just need to memorise: the 7 OSI layers (with their functions), the 4 TCP/IP layers, networking device differences (Hub vs Switch vs Router), network topologies (with diagrams), and key protocols (HTTP, FTP, DNS, DHCP, SMTP, POP3). Practising the 80+ MCQs in this set will cover all possible exam questions.
Are these MCQs useful for the practical viva exam too?
Yes — these MCQs cover concept-level questions that are commonly asked during the CBSE Class 12 CS practical viva. Examiners often ask short questions about file handling modes, stack vs queue differences, SQL constraints, and MySQL connectivity steps. Practising these MCQs will prepare you for both the written board exam and the practical viva.

Quick Links — More Resources

Explore More on CBSE Python

error: Content is protected !!