GREEN VALLEY SCHO0L FORCHILDREN
PRE MID -TERM (2024 -25)
COMPUTER SCIENCE (083)
LFOno
Std: XII
Date: 28/06/2024 M.M.: 40
Name: Roll No.:
General lnstructions:
I. Please check this question paper which contains 40 questions.
II. The paper is divided into 2 Sections -Aand B.
Il. SectionA, consists of 20 questions (1 to 20). Each question carries 1Mark.
IV.Section B,consists of 10 questions (21 to 30). Each question carries 2Marks.
V. Allprogramming questions are to be answered using Python Language only.
SECTION A [20]
1) State True or False:
"In a Python program, ifa break statement is given in a nested loop, it terminates
the execution of all loops in one go.
2) Which of the following is a valid keyword in Python?
A. false C. non local
B. return D, none
3) function is used to arrange the elements of a list in ascending order.
A. sort(0 C. ascending( )
B. arrange() D. assort()
4) Which of the following operators will return either True or False?
A. += C. =
B. = D. *=
5) Which function returns the sum of all elements of a list?
A. count() C. total( )
B. Sum() D. add()
6) State True or False. "Comments are not executed by interpreter."
7) Which of the folowing is not a sequential datatype in Python?
C. List
A. Dictionary
D. Tuple
B. String
8) is not a valid built-in function for list manipulations.
A. count() C. append( )
B. length) D. extend()
STD: XI/ COMPUTER SCIENCE /PRE MID- TERM / 2024 -25 Page 1 of 4
9) Which of the following is an example of identity operators of Python ?
C. in
A. is
D. not in
B. on
10) Which of the following is an invalid datatype in Python?
A. Set
C. Integer
D. Real
B. None
11) Find the invalid identifier from the following
C. Name
A. none
B. address D. pasS
data
12) Consider a declaration L=11, 'Python!. '3.14), Which of the following represents the
type of L?
A. List
C. Dictionary
B. Tuple D. String
13) The return type of the input() function is
C. List
A. String
B. Integer D. Tuple
14) Which of the following operator cannot be used with string data type?
A. + C.
B. In D. /
15) Which one of the following is the default extension of a Python file?
A. .exe C. -py
B. .p++ D. p
comment?
16) Which of the following symbol is used in Python for single line
C. II
A. /
D. #
B. /*
17) Which of these about a dictionary is false?
keys
A. The values of adictionary can be accessed using
accessed using values
B. The keys of a dictionary can be
C. Dictionaries aren't ordered
D. Dictionaries are mutable
Keywords?
18) Which of the following options is/are not Python C. WHILE
A. False
D. break
B. Math
Python from the following:
19) ldentify the valid relational operator(s) in
C. <>
A. =
D. not
B. <
STD: XII /COMPUTER SCIENCE / PRE MID - TERM /2024 - 25 Page 2 of 4
from the following.
20) ldentify the valid arithmetic operator in Python
C
A. ?
D. and
B. <
SECTION-B [20]
print (16*5/4*2/5-8)
21) What willbe the output of the following statement:
C. 0.0
A. -3.33
D. -13.33
B. 6.0
thenchoose the correct output from the given
22) Consider the statements given below and
options:
myStr = "MISSISSIPPI"
print(myStr[:4]+"#*myStr[-5:])
C. MISS#IPPIS
A. MISSI#SIPPI
D. MISSI#PPIS
B. MISS#SIPPI
will raise an error:
23) ldentify the statement from the following which
C. print("15" +3)
A. print("A"*"3)
D. print("15" + "13")
B. print(5*3)
for key = "Red" from a dictionary D1?
24) Which of the following will delete key-value pair
A. delete D1("Red")
C. del.D1["Red"]
D. D1.del("Red"]
B. del D1["Red'"]
12>7 or not 7>4 Which of the following willbe
25)Consider the given expression: 5<10and
evaluated?
the correct output, if the given expression is
C. NONE
A. True
D. NULL
B. False
error after executing the following
26)Which of the following statement(s) would give an
code?
Stud=("Murugan": 100, "Mithu":95) # Statement 1
print (Stud[96|) # Statement 2
# Statement 3
Stud ["Murugan']=99
print(Stud.pop() # Statement 4
print(Stud) # Statement 5
A. Statement 2 B. Statement 3
STD: XII/ COMPUTERSCIENCE /PRE MID -TERM / 2024- 25
Page 3 of 4
C. Statement 4 D. Statements 2 and 4
27) Consider the following tuple declaration and write the output?
tup1=(10,20,30,(10,20,30),40)
print(tupl. index(20)
A. 0 C. 2
B. 1 D. 3
28) Given is a Python string déclaration and write the output?
NAME ="Learning Python. is Fun"
print(NAME(-5:-10:-1])
C. Fun
A. si no
D. thon i
B. on is
29) Write the output of the code given below:
dict1={1:("Rohit",20], 2:["Siya",90])
dict2{1:("Rahul";95), 5:['Rajan",80])
dict1.update(dict2)
print(dict1.values()
A. dict_values (|['Rahul', 95], ['Siya', 90], ('Rajan', 80]1)
B. dict_values (['Rahul, 95], ('Siya', 90], [Rohit, 20])
C. dict_values ([Rahul, 95]. ['Siya', 90], [(Rajan', 80])
D. dict_values(['Rahul, 20]. ['Siya', 80]-[Rajah', 95]])
30) Given is a Python string declaration and write the output?
myexam="@@CBSE Examination 2022@ @"
print(myexam[:-2)
C. 2022
A. @20 otnmx SC@
B. @@CBSE D. @20 otnmx SE@
Page 4 of4
STD: XI|/COMPUTER SCIENCE / PRE MID - TERM/ 2024 - 25