Page 1
CBSE CLASS 11
PT II Question Paper
Session 2025-26
COMPUTER
SCIENCE
Exam CBSE Class 11
Subject Computer Science
Session 2025-26
Document Type PT II Question Paper
Notes · Sample Papers · Previous Year Papers · Mock Tests
Page 2
m
om .co
m. as e
se l
Question Paper
SECOND UNIT TEST
SESSION: 2025 - 2026 ag
Class: XI Maximum Marks: 40
Subject: Computer Science Time: 1 Hour 30 Minutes
General Instructions:
This question paper contains 21 questions and 3 pages.
All questions are compulsory
m
The paper is divided into 5 Sections - A, B, C, D and E.
Section A, consists of 11 questions (1 to 11). Each question carries 1 Mark.
.co e m
Section B, consists of 5 questions (12 to 16). Each question carries 2 Marks.
em
Section C, consists of 2 questions (17 & 18). Each question carries 3 Marks.
l as
as
Section D, consists of 2 questions (19 & 20). Each question carries 4 Marks.
l ag
ag
Section E, consists of 1 question (21). Question carries 5 Marks.
-------------------------------------------------------------------------------------------------------------
SECTION A (1 × 11=11 Marks)
1. “else” is used with__________
a) for loop b) while loop (c) All d) if statement 1
2. Predict the Output:
m
.co
for ch in "PYTHON":
if ch in "AEIOU":
em
continue
if ch == 'H':
las 1
ag
break
print(ch, end='')
a) PYTH b) PYT c) PY d) PYTO
3. Which one of the following is a invalid Python statement(s):
a) if 10>=2: b) print("Even") if 10 % 2 == 0 else print("Odd");
c)if (22 => 10): d) both (b) and (c) 1
4. Consider the statements given below and then choose the correct output from the given options:
m
myStr="MISSISSIPPI"
m
print(myStr[:4]+"#"+myStr[-5:])
. c o
c. a)oMISSI#SIPPI m
1
s e
em5. x = [1, 2, 3]
b) MISS#SIPPI c) MISS#IPPIS d) MISSI#IPPIS
s g la
la a
1
ag y=x
y.append(4)
print(x is y, x)
a) True [1, 2, 3] b) False [1, 2, 3, 4] c) True [1, 2, 3, 4] d) False [1, 2, 3, 4]
6. Choose the correct output from the given options: 1
event = "Go Green@2025"
L = event.split()
m .
print(L[-2:2])
.co e m
(a) ['Green@202'] b) ['Go', 'Green@2025'] c) [ ] d) Error
em l as
las 1
ag
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 1 of 3
Page 3
7. L=[10,1,12]
L1=list(L)
L[1]=50
print(L1) 1
a) [10,50,12] b) [10, 1, 12] c) [50] d) Error
8. t=(3,)*3
print(t)
a) 9 b) (3, 3, 3) c) (333) d) Error 1
9. Given the following Tuple 1
Val= (60, 40, 70, 50)
Which of the following statements will result in an error ?
a) print (Val[0]) b) Val.insert(2, 3) c) print (Val [1:2]) d) print (len (Val))
Q. 10 and 11 are Assertion and Reasoning based questions.
Mark the correct choice as
(a) Both Assertion (A) and Reason (R) are the true and Reason (R) is a correct
explanation of Assertion (A).
(b) Both Assertion (A) and Reason (R) are the true but Reason (R) is not a correct
explanation of Assertion (A).
(c) Assertion (A) is true and Reason (R) is false.
(d) Assertion (A) is false and Reason (R) is true.
10. Assertion (A): Lists can store values of different data types. 1
Reason (R): A list can contain integers, strings, tuples and even other lists.
11. Assertion (A): The length of a tuple can be found using len() function. 1
Reason (R): len() function works only for lists and not for tuples.
SECTION B (2 × 5=10 Marks)
12. Rewrite the following code fragment using while loop.
for i in range(15, 3, -1):
if i % 4 == 0: 2
print(i, end=" ")
13. Write the difference between mutable and immutable data type in python with example.
2
14. Predict the output:
List1 = [513, 618, 11, 16, 513, 618, 513]
print(List1.index(618))
2
List1.append(List1.count(513))
print(List1)
15. Why is the sort() method not used with tuples in Python? Explain with an example.
2
16. What does each of the following expressions evaluate to?
Suppose that T is the tuple containing :
T=("12", ("are" , "a", "few", "words") , "that", ["we", "will"] , "use")
print(T[:1] + ["1"])
print(T[2][2] in T[1]) 2
2
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 2 of 3
Page 4
m
om .co
m. as e
se l
SECTION C (3 × 2=6 Marks)
ag
17. Predict the output of the Python code given below :
s="Viksit Bharat 2025"
n = len(s)
m=""
for i in range (0, n) :
if (s[i] >= 'a' and s[i] <= 'm') :
m = m + s [i].upper()
3
elif (s[i] >= 'o' and s[i] <= 'z') :
m = m +s [i-1]
m
.co
elif (s[i].isupper()):
m
.co
m = m + s[i].lower()
else:
e m
m = m + '@'
em l as
print (m)
l as g
a 3
ag
18. Write a Python program to find and display the length of the longest string present in a given
list of strings named str_list.(Assume that the list contains at least one string.)
SECTION D (4 x2=8 Marks)
19. i) Consider the following string: str = “ Python theory concepts ” 2
Do as directed:-
a) Check whether string contains “on” or not.
b) Partition the string at the occurrences of letter ‘t’
c) Concatenate the string with “programming”
m
d) Remove the leading and trailing spaces.
.co
em
ii) Write a Python program to input a line of text and count the number of words that starts 2
s
la of students and store them in a tuple.
with a vowel.
g
Create two tuples, one to store only theausernames from the email IDs and second to store
20. Write a program to read email IDs of a number
4
domain names from the email IDs. Print all three tuples at the end of the program.
SECTION E (5×1=5 Marks)
21. Given the following list: numbers = [1, 2, 3, 4, 5] 5
Write Python statements to :-
m
a) append the number 6 to the end of the list.
b) insert the number 0 at the beginning of the list.
.co e m
c) remove the first occurrence of the number 3 from the list.
e m d) sort the list in descending order.
las
las e) print the last element of the list.
ag
ag ******
m .
.co s e m
s em l a
la ag
3
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 3 of 3