COMMON EXAMINATION(2023-2024)
CLASS XII: READING TIME: 15 min
SUBJECT: COMPUTER SCIENCE(083) DURATION: 3 Hours
General Instructions:
Please check this question paper contains 35 questions.
The paper is divided into 4 Sections- A, B, C, D and E.
Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
All programming questions are to be answered using Python Language only.
Q.No Question Marks
SECTION A
1. 1
Which of the following can be used as valid variable
identifier(s) in Python ?
a) Total c) Number#
b) 5Th Sum d) True
2. 1
Consider a declaration L = ( 23, “Python”,78.9).
Which of the following represents the data type of L ?
a) List c) Dictionary
b)String d) Tuple
3. 1
What will be the output of the following python statements ?
1
, b=1
for a in range(1,10,2):
b+=a+2
print(b)
a) 31 c) 33
b) 36 d) 39
4. Which type of error causes abnormal termination of program 1
while it is executing ?
a) Syntax error c) Logical error
b) Runtime error d) None of the above
5. What will be the output for the following python statements? 1
Lst1= [10,20,30,40,50]
Lst1.insert(3,4)
Lst1.insert(2,3)
print(Lst1[-5])
a) 4 c) 4
b) 3 d) 20
6. import random 1
x=['Monday', 'Tuesday','Wednesday','Thursday',
'Friday', 'Saturday','Sunday']
print(x[random.randint( 0, len(x) -2)] )
a) All days of the week except Sunday
b) Wednesday
c) Saturday
d) Wednesday or Saturday
7. Which module is to be imported to make the following line 1
functional ?
sys.stdout.write( “ABC”)
a) System c) sys
b) Stdout d) stdin
8. What will be the output for the following python code 1
def cube (X):
return X * X * X
2