Professional Documents
Culture Documents
PERIODIC ASSESMENT-3
EVA World
GRADE - 11 AY
School SUBJECT – COMPUTER SCIENCE 2023-24
GENERAL INSTRUCTIONS:
1. This question paper contains 4 sections
2. Section A contains (1- 10) question carrying 1 mark each
3. Section B contains (11- 15) question carrying 2 mark each
4. Section C contains (16-17) question carrying 3 mark each
5. Section D contains (18) question carrying 4 mark each
6. ALL QUESTIONS ARE COMPULSORY
--------------------------------------------------------------------------------------------------------
SECTION A
1. Which of the following unit is responsible for converting the data received 1
from the user into a computer understandable format?
(A) Output Unit
(B) Input Unit
(C) Memory Unit
(D) Arithmetic & Logic Unit
Answer:
Option (B) is correct
2. If the addition of a new key: value pair causes the size of the dictionary to 1
grow beyond its original size an error occurs. True or false?
Answer : False
1|Page
6. 1
7 1
9. a) False 1
Section B
12 Anuj wrote following code. How many times is the word “Welcome” printed 2
2|Page
13 Write a program to print the following pattern: 2
12345
1234
123
12
1
Answer:
List.append(“Python”)
List.append(“Hey”)
Output:
3|Page
List before appending values is: [“Hey”, “Good Evening”]
# !/user/bin/python
listl = [‘physics’, ‘chemistry’, 1997, 2000];
print “Value available at index 2 :”
print list[2];
list[2] = 2001;
print “New value available at index 2 :”
print list [2];
Note: append)) method is discussed in subsequent section.
A = [2, 4, 6, 8,10]
L = len (A)
S=o
for I in range (1, L, 2):
S + = A[I]
print “Sum=”, S
Answer:
Sum = 12
Justification:
A[1] = 4 step size = 2
A[3] = 8
S = 4 + 8 = 12
4|Page
16 write a program to find the largest and smallest number in a list without using 2
. loop.
a = input(“Enter a list”)
print(“ The list is: ”, a)
mx = max(a)
mn = min(a)
print(“ Maximum number in the list “, mx)
print(“ Minimum number in the list”, mn)
Section C
17 Consider the following code and then answer the question that follow: 3
Section D
i. print(stateCapital.get("Bihar"))
ii. print(stateCapital.keys())
iii. print(stateCapital.values())
5|Page
iv. print(stateCapital.items())
v. print(len(stateCapital))
vi. print("Maharashtra" in stateCapital)
vii. print(stateCapital.get("Assam"))
viii. del stateCapital["Andhra Pradesh"]
print(stateCapital)
ANSWER:
6|Page