Cl11 - Comp SC - PA2 - QP
Cl11 - Comp SC - PA2 - QP
Jaipuria Schools
Periodic Assessment II
Session: 2022-23
General Instructions:
The Paper has two sections i.e. A and B comprising both objective and subjective
questions.
All the questions are compulsory.
Question No. 1 to 3 in Section A is of 1 mark each.
Question No. 4 to 6 in Section A is of 2 marks each.
Question No. 7 to 8 in Section A is of 3 marks.
Question No. 9 to 11 in Section B is of 1 mark each.
Question No. 12 to 15 in Section B is of 2 marks each.
Question No. 16 to 18 in Section B is of 3 marks each.
Do all the questions in serial order.
Write neatly and legibly.
All the best!
SECTION A - Objective
Read the questions and choose the correct option.
Q1. Lists are ___________ sequences of Python.
A. immutable
B. simple
C. mutable
D. complex
A. Only IV
B. I and II
C. II, III and V
D. I and III
Q 8. Answer in one word:
I. Which function will return all the dictionary items including the key-value pairs?
II. Which function creates a new dictionary from the given sequence, like string, list,
tuple?
III. Which function will return the keys of the dictionary items only?
d=0
while d < 18 :
d += 2
Q13. Write the output of the given code:
roll = ‘121’
print(roll.isalpha( ))
Q14. Write the most appropriate list method to perform the following tasks.
I. Removes the first occurrence of the given item from the list.
II. Removes the element at the given index from the list and returns the removed
item.
t = (5)
print(len(t))
Q16. Write a Python script that asks the user to enter a length in centimetres. If the user
enters a negative length, the program should display the message ‘ invalid entry ’. Otherwise,
the program should convert the length to inches and print out the result. There are 2.54
centimetres in an inch.
Q17. In python, there are some operations that can be performed on the string data type.
Write the purpose of any three operations with an example of each.
Q18. Observe the given list and answer the given questions:
I. print(L[2])
II. print(L[2][2])
III. print(L[2][2][0])