Xii CS Ut-I
Xii CS Ut-I
(MAY 2024)
Computer Science (083) -XII
Time: 1: 15 Hours Max Marks: 25
General instructions:
SECTIONA
1
1. Which is the correct form of declaration of adictionary?
=
TP (12,15,80)
TP1 -TP*3
print(TP1)
3.
Which of the following functions removes allleading and trailing space from a string?
a) Istrip) b) rstrip() c) Irstrip() d) strip) 1
a=[None]*10
print(len(a))
print(a)
SECTION B
7. What are immutableand mutable types? Lits immutableand mutable types of Python.
2
1
8. What is the role of comments and indentation in a program? 2
9
Predict the output of the following code fragment: 2
if NAME[O] == M':
break
else:
print('Finished!')
print('Got it!")
SECTION C
11. Differentiate between break and continue statements with suitable example/code 3
12. Differentiate between for and while loop with suitable example/code. 3
5
5 4
5 4 3
5 43 2
5 4 3 2 1