CS-XI-QP ANNUAL-2021.1
CS-XI-QP ANNUAL-2021.1
GENERAL INSTRUCTIONS:
1. All questions are compulsory.
2. The question paper is divided into 2 sections A and B.
3. There is no overall choice in this question paper. However internal choices may be
there.
SECTION A
1 Python is a/an___________________language. 1
a) Compiled b) Interpreted c) Compiled& interpreted 4) None of these
7. Suppose a tuple T is declared as T = (10, 12, 43, 39), which of the following is incorrect? 1
a) print(T[1])
b) T[3] = 9
c) print(max(T))
d) print(len(T))
8. Write a statement in Python to declare a dictionary whose keys are 1, 2, 3 and values are 1
Monday, Tuesday and Wednesday respectively.
9. What will be the output of the following code? 1
X,y=2,6
X,y=y,X+2
Print(X,y)
11. If the following code is executed, what will be the output of the following code? 1
QP/CS/XI/Annual Exam/2020-21 /Page 1 of 4
name="ComputerSciencewithPython"
print(name[3:10])
14. The___________Method adds a single items to the existing list at the end. 1
SECTION B
21. Find the output of the following Python program: 2
For k in range(10,20,5):
Print(k)
23. Which of the following can be used as valid variable identifier(s) in Python? 2
(i) 4thSum (ii) Total (iii) Number# (iv) Data
24. 3
What possible outputs(s) are expected to be displayed on screen at the time of execution of the
program from the following code?
import random as r
n=r.random(1,5,2)
print(n)
25. Find the output of the following Python program: 3
i=0
Break
Print(i,end=” ”)
26. Find error in the following code and correct it by rewriting the code and underline the 2
correction.
X=5
While(x<10):
X+=2
28. Write a program in python to find the maximum element in the list. 3
29. Write a program in python to count number of even and odd elements in the list. 3
31. Write a program in python to sum and average all the elements given in the list. 3
37. Write a program in python to count uppercase and lowercase character in string. 3
38. Write a program in python to create a dictionary with name of the students and their phone no. 3
40. Write a program in python to create a dictionary with name of the employee and their Salary.
**************************