★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
CBSE Class 12 · Computer Science, code 083 · One-mark questions
Forty class 12 computer science MCQs with answers, set by chapter in the manner of Section A, eight of them assertion and reason. Give yourself 50 minutes and a blank sheet. Each answer opens to the correct option written in full and the reason, because in the board paper the letter alone is not what the instructions ask for.
Live one to one · 40 original questions · outputs run, queries run · whichever day and hour suits
Start here
Match the course to the set with the fewest ticks. The first covers all six.

Sets 1 to 6 / 083
Every chapter these questions are drawn from, on the CBSE track, with the practical side taught next to the theory.
Open the course →
Sets 1 and 2
For a student who guesses outputs: strings, lists, dictionaries, loops and functions built up through code you write.
Open the course →
Set 5
NULL, grouping, joins and keys become plain once you have typed them many times. That is what this course does.
Open the course →Ans. The short version
Class 12 computer science MCQs with answers are the quickest check of the CBSE 083 syllabus. In the 2026-27 sample paper, Section A has 21 one-mark questions: 15 MCQs, four short ones without options and two assertion and reason. This page is a test of 40 original questions, chapter wise, covering Python, functions, exceptions, files, stack, networks, SQL and connectivity, each with the correct option and a reason. Modern Age Coders goes through your wrong answers live, personalised one to one, on your own timing. A priority demo lets you try a full class first.
Q1. What does Section A look like?
The 2026-27 sample paper has 15 MCQs, all in Section A, beside four one-mark questions without options and two of assertion and reason: 21 marks in all.
| Section A, sample paper 2026-27 | Question numbers | Count |
|---|---|---|
| MCQ, four options | 2 to 9, 11 to 13, 15 to 17, 19 | 15 |
| Write the output or answer, no options | 1, 10, 14, 18 | 4 |
| Assertion and reason | 20, 21 | 2 |
| One mark each, no internal choice | 21 |
| By unit | Count |
|---|---|
| Programming | 12 |
| Database | 6 |
| Networks | 3 |
That is one year's sample. The board paper follows the same five sections, but nobody outside the board knows its mix of MCQs.
| The setter's trick | How to see through it | Try it in |
|---|---|---|
| The stop value included | Slices and range() end one early | 5, 6 |
| Print mistaken for return | No return means None | 10 |
| NULL counted as zero | Aggregates skip it | 28 |
| Columns and rows multiplied alike | Degree adds, cardinality multiplies | 25 |
| Half of a correct sentence | Read all four options to the end | 23, 24 |
| Two true statements | Put because between them | 34, 37 |
Sets 1 and 2. Programming
Set 1 is the Class 11 Python that the board paper reuses. Set 2 is functions, scope and exception handling.
print("level 9".title().swapcase())LEVEL 9Level 9lEVEL 9level 9
lEVEL 9. title() gives Level 9, and swapcase() turns each letter to the other case. The digit has no case.t = (4, [5, 6]) t[1].append(7) print(t)
(4, [5, 6, 7])(4, [5, 6], 7)(4, [5, 6])(4, [5, 6, 7]). The tuple still holds the same two objects. One of them is a list, and a list may change.print(2 ** 3 ** 0 + 10 % 4 * 2)
5693
6. Powers go from the right: 3 ** 0 is 1, so 2 ** 1 is 2. Then 10 % 4 is 2, times 2 is 4, and 2 + 4 is 6.d = {"a": 1}
d["b"] = d.get("c", 5)
d.pop("a")
print(d){'a': 1, 'b': 5}{'b': None}{'c': 5}{'b': 5}
{'b': 5}. get("c", 5) returns 5 and adds no key c. Then the key a is removed.L = [1, 2, 3, 4, 5, 6] print(L[-2:1:-2])
[5, 3, 1][5, 3][2, 4][6, 4]
[5, 3]. Index -2 is the 5. Stepping back by two gives indexes 4 and 2; index 1 is the stop and is not reached.import random
N = ["Rut", "Kol", "Sur", "Mad"]
a = random.randint(0, 1)
b = random.randrange(2, 4)
for i in range(a, b):
print(N[i], end="/")Kol/Rut/Kol/Kol/Sur/Kol/Sur/Mad/
Kol/Sur/Mad/. b is 2 or 3, so i is at most 2 and Mad, at index 3, is never shown.print(not 5 > 3 or 7 and 0)
0True7False
0. not 5 > 3 is False. 7 and 0 gives 0. False or 0 gives the last value looked at, which is 0.def f(a, b=2, c=3):
return a + b * c
print(f(4, 1))101876
7. a is 4, b becomes 1 and c keeps 3, so 4 + 1 * 3 is 7.x = 10
def g():
global x
x += 5
return x
print(x, g(), x)15 15 1510 15 1510 15 1010 10 15
10 15 15. The three arguments are worked out from left to right: the first x is read before the call, the last one after it.def show(n):
print(n * 2)
r = show(4)
print(r)try:
print(int("7.5"))
except ZeroDivisionError:
print("Z")
except ValueError:
print("V")
finally:
print("F")int() cannot convert the text 7.5, so ValueError is raised and caught, and finally always runs.def park(car, hours=1):. Which call raises TypeError?park()park("KA01")park("KA01", 4)park(5, 2)
park(). car has no default, so a value must be given. The number 5 as a car is odd, but legal.Two lines, then the options. For an output question cover the four options with your hand, write the value of each variable in two lines, and only then look. Students who read the options first tend to hunt for the one that feels familiar.
Less than four correct in either set? Go to output questions with traces or to the functions chapter.
Set 3. Files and stack
Set 3 has six questions: modes, reading, the file pointer, pickle, CSV and one stack trace.
a+w+r+a
r+. r+ reads and writes an existing file. The others create the file when it is missing.f = open("nums.txt", "r")
f.readline()
print(len(f.readlines()))
f.close()3210
2. The first line has been read already, so readlines() returns only the two that remain.f = open("code.txt", "r")
f.seek(4)
print(f.read(2), f.tell())
f.close()M2 620 420 620 5
20 6. Position 4 is the first 2. Two characters are read, and the pointer moves to 6.pickle.load() is called again. What happens?csv.reader() isS = [] S.append(3) S.append(8) S.append(S.pop() + S.pop()) S.append(1) S.pop() print(S)
[3, 8][11][11, 1][3, 11]
[11]. Both values are popped before the sum 11 is pushed. The 1 is pushed and popped.The chapter pages are text files, CSV and binary files and stack.
Sets 4 and 5. Networks and database
Set 4 is Unit 2, six questions. Set 5 is Unit 3, eight questions from keys to connectivity.
https://fees.example.in/july.html, the domain name isRevise from computer networks for Class 12.
DROP TABLE Stall;DELETE FROM Stall;ALTER TABLE Stall DROP;UPDATE Stall SET NULL;
DROP TABLE Stall;. DELETE FROM empties the table but leaves the structure in place.Name LIKE '_e%a'?SELECT AVG(Price) gives15.000020.0000NULL60.0000
20.0000. NULL is skipped: 60 is divided by 3 values, not 4.cur.fetchone() is called once and then cur.fetchall(). The second call returnsSELECT * in (i) an equi-join on Bid and (ii) a natural join?Revise from SQL questions with results.
Set 6. Assertion and reason
Judge A alone, judge R alone, and only if both are true put the word because between them and listen.
| Option | In the words of the paper | When to choose it |
|---|---|---|
| (a) | Both A and R are True and R is the correct explanation for A | "A because R" makes sense |
| (b) | Both A and R are True and R is not the correct explanation for A | Two facts, no link |
| (c) | A is True but R is False | R has one wrong word |
| (d) | A is False but R is True | R often shows why A fails |
Keep A fixed: "A list can be changed after it is made." Now change R. "A list is mutable" gives (a). "A list is written in square brackets" gives (b). "A list is immutable" gives (c). Make A "A string can be changed after it is made" with R "Strings are immutable", and you have (d). Writing four such sets on your own topic teaches more than answering forty.
readlines() returns a list of strings.readlines() removes the newline character from each line.
pop() on an empty list raises IndexError.SELECT * FROM A, B; gives the Cartesian product of A and B.Q2. What does my score mean?
Count each set separately. The total tells you little, but the weakest set tells you what to study this week.
| No. | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 to 10 | c | a | b | d | b | d | a | c | b | b |
| 11 to 20 | d | a | c | b | c | d | a | b | d | a |
| 21 to 30 | c | b | d | b | c | a | c | b | d | b |
| 31 to 40 | a | c | a | b | d | c | b | a | d | c |
Read along a row: the third letter in the row 21 to 30 is the answer to question 23.
| Set | Out of | Revise if below | First thing to do |
|---|---|---|---|
| 1. Python | 7 | 5 | Trace ten outputs on paper |
| 2. Functions, exceptions | 5 | 4 | Write each function and call it twice |
| 3. Files, stack | 6 | 4 | Try every mode on one small file |
| 4. Networks | 6 | 5 | Say the job of nine devices aloud |
| 5. Database | 8 | 6 | Type the queries, with a NULL in the table |
| 6. Assertion, reason | 8 | 6 | Make four sets from one topic |
The limits are our teaching guide, not a CBSE rule. Take the test again after ten days with the order of sets reversed.
You explain why three options are wrong. If you can, the fourth needs no luck.
Same code, new values. A remembered answer fails at once, an understood one does not.
An MCQ on scope turns into "define and give an example", since Section B asks for the same ideas.
Longer answers come next: important questions by chapter, and a full Section A under time in our 2026-27 sample paper.
After the test, one to one
An MCQ marked wrong says nothing about why. Was it the NULL, the slice, or only haste? With one teacher and one student, each wrong option is followed back to the idea that led there. We teach it no other way, and you settle the days and the timing. The priority demo gives you one complete lesson, its fee later set against your first month if you enrol; or choose the free demo class. You are billed monthly, there is no fee for admission, and any month end may be your last.
Before you enrol · Try a class
a full live class of about 45 to 60 minutes
The classes · Choose your own timing
₹4,999
per month, 4 private classes, fully flexible timingtwo private classes a week, at a time set with you
A student who scores 35 here needs a different month from one who scores 18, and the plan is made after seeing the sheet. The fee on this page is per month and in the currency of your country.
Studying outside India?
If your CBSE school is in Al Ain, Doha, Riyadh or Singapore, Section A is the same 21 marks. Lessons fall in your own afternoon or evening.
| Where you live | Time difference | Usual class window, local time | Format |
|---|---|---|---|
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |
MCQ work travels well: short, spoken, and easy to fit into a half-free evening during term. Mention your last school test in the form.
What families say
Real reviews from real families. We neither write nor commission them.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
The rest of the Class 12 series
Every page in the CBSE Class 12 Computer Science series, grouped by what you need.
CBSE Class 12 Informatics Practices (065): Class 12 IP practical file Class 12 IP project with source code Class 12 IP sample paper practice Class 12 IP important questions
CBSE Class 12 Information Technology (802): IT 802 practical and project file IT 802 Java notes and programs IT 802 notes
CBSE Class 11 CS, IP and AI: Class 11 CS practical file Class 11 IP practical file CS or IP in Class 11
ISC Computer Science (868): ISC Class 12 CS syllabus 2027 ISC Class 12 CS practice paper ISC Class 12 practical questions solved ISC Boolean algebra and K-maps
Program lists with output: Class 12 CS practical file 20 Python programs for Class 12 Menu-driven programs in Python
MCQ doubts
In the CBSE sample paper for 2026-27, Section A has 21 one-mark questions, of which 15 are MCQs with four options, four have no options and two are assertion and reason. The board paper keeps the same section, though its exact mix is known only on the day.
On this page: 40 original questions in six sets, covering Python, functions, exceptions, files, stack, networks, SQL and assertion and reason. Each has its answer and a reason, and the outputs and queries were run before they were printed. The key is in one table at the end.
Yes. The general instructions of the 2026-27 sample paper say that in an MCQ the text of the correct answer should also be written. Write the letter and the text of the option, and for a code option copy it exactly, with its brackets and quotes.
The sample paper and its marking scheme mention no negative marks. So attempt all 21 questions of Section A. If you have to guess, strike out the options you can prove wrong first, and put a small mark so that you return if time is left.
Read the assertion and decide true or false. Do the same for the reason, without linking them. If both are true, join them with the word because. If the sentence makes sense, choose (a); if not, (b). One wrong word in the reason makes it (c).
In Section A of the 2026-27 sample paper, 12 questions came from programming, six from databases and three from networks. That is close to the unit weights of 40, 20 and 10 marks, so prepare Python and SQL first and networks for quick, certain marks.
About 30 minutes for 21 questions is comfortable, leaving the rest of the three hours for programs, SQL and the network case. Do the definition and SQL items first, then the outputs, which need writing. Keep a few minutes at the end to check spaces and brackets.
No. Section A is 21 of 70 marks, and the other sections ask you to write programs, queries and short explanations. Use MCQs to find weak ideas quickly, then write a program or query on each. Recognising an answer is easier than producing one.
No, they are original questions written for this page in the style of Section A. Nothing is copied from a board paper, the sample paper or a book. For official questions use the sample papers and question papers published by CBSE.
Yes, one to one and at the time your family chooses. The teacher asks for the reason behind each option, so the weak chapter shows within a lesson. You can see a whole class first through the priority demo, or meet us in the free demo class.
Start
Six numbers are enough to begin. Book a priority demo with them, choose the slot, and the class opens with your weakest set: two wrong answers explained, the idea taught, fresh questions asked. The written skill report that follows is yours, and the demo fee counts towards month one if you join us.
Or ask for the free demo class. If networks was the low one, solve a drawn layout from the case study page before we meet.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Every class is live video. The form requests a callback and reserves nothing.
A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.
Book a priority demo