SAMPLE QUESTION PAPER (THEORY)
CLASS: XII SESSION: 2025–26
SUBJECT: COMPUTER SCIENCE (083)
Time allowed: 3 Hours Maximum Marks: 70
Section-A (21 × 1 = 21 Marks)
Q. No. Question Type / Description Marks
1 True/False: The statistics 1
module in Python can be
used to calculate the mean,
median, and mode of
numeric data.
2 MCQ: Output of list slicing 1
code: L = [10, 20, 30, 40,
50]; print(L[1:4])
3 MCQ: Output of print(5 > 2 1
and 4 < 2)
4 SQL: Write SQL command to 1
display all students enrolled
in 'CS101' course using join.
5 MCQ: String slicing – s = 1
'HelloWorld'; print(s[-5:])
6 Write the output of for loop 1
code: for i in range(2, 10, 3):
print(i, end=' ')
7 Output of expression: 1
print(2 * 3 ** 2)
8 Correct the SQL query: 1
SELECT dept, COUNT(*)
FROM emp HAVING
COUNT(*)>2 GROUP BY
dept;
9 MCQ: Exception handling 1
based code.
10 MCQ: Dictionary based 1
output question.
11 MCQ: Random randint() 1
function based question.
12 MCQ: Output using global 1
variable inside function.
13 MCQ based on Cardinality. 1
14 MCQ: String Function 1
output question.
15 MCQ based on Degree. 1
16 MCQ based on DDL. 1
17 MCQ: Protocol fill in the 1
blank.
18 MCQ: Hub / Switch 1
question.
19 MCQ: Webpage 1
identification question.
20 Assertion–Reason: 1
append() function
behaviour.
21 Assertion–Reason: Primary 1
Key property.
Section-B (7 × 2 = 14 Marks)
Q. No. Question Type / Description Marks
22 Explain explicit and implicit 2
type conversion with
examples OR differentiate
between break and
continue statements.
23 Debug code to remove 2
vowels from a string.
24 Use Python built-in 2
functions OR predict string
slicing output.
25 Write function to remove or 2
add element in
list/dictionary.
26 Predict output of 2
dictionary-based code.
27 SQL commands OR 2
differentiate between DDL
and DML with examples.
28 Define or expand 2
networking terms OR
differentiate between Web
Server and Web Browser.
Section-C (3 × 3 = 9 Marks)
Q. No. Question Type / Description Marks
29 File handling: Count lines 3
containing a specific word
in text file.
30 Implement stack using list: 3
Push_element() and
Pop_element().
31 Class and object-based 3
output prediction question.
Section-D (4 × 4 = 16 Marks)
Q. No. Question Type / Description Marks
32 SQL queries involving 4
GROUP BY, WHERE,
DISTINCT, LIKE.
33 CSV file: Add record and 4
calculate average marks.
34 SQL join queries between 4
two tables including
Cartesian Product.
35 Python-MySQL 4
connectivity: update record
based on condition.
Section-E (2 × 5 = 10 Marks)
Q. No. Question Type / Description Marks
36 Binary file: Append new 5
record and update data.
37 Networking layout, device 5
suggestion, cable layout OR
differentiate between
PAN/LAN/MAN/WAN.