Professional Documents
Culture Documents
CL 11 - PT2 - CS - 2021-22
CL 11 - PT2 - CS - 2021-22
CL 11 - PT2 - CS - 2021-22
General Instructions:
* Question paper is divided into three section A , B, C and D.
* Section A includes 15 questions of 1 mark each.
* Section B is subjective. All question carry 2 marks each in which one question have internal
options.
* Section C is subjective. All question carry 3 marks each in which one question have internal
options.
* Section D is subjective. All question carry 5 marks each in which one question have internal
options.
* All the questions are compulsory.
Section A
1. Give output:
s='Welcome to SPSEC'
print(s.find('come'), end=” “)
print(s.find('o'))
a. 4 3 b. 3 4 c. 3 3 d. 4 4
2. Give output:
for a in range(1,5):
print(“a”, end=” “)
a. 1 2 3 4 b. 1 2 3 4 5 c. a a a a d. a a a a a
3. Give output:
for i in range(2,7,2):
print(i * '2')
a. 222222222222 b. 2222222222
c. 22222222222222 d. 2222222222222222
4. Give output:
print(“My” *3 + “life” +’7′)
a. MyMyMylifelifelifelifelife b. MyMyMylifelifelifelifelifelifelife
c. MyMyMyMyMyMyMylifelifelife d. MyMyMylife7
5. Give output:
print(“Super”+’Dad’ * 2)
6. Give
output:
s='My'
s1='City
'
s2=s[:1]+s1[len(s1)-1:]
print(s2)
a. MyCity b. CityMy c. Mt d. My
7. Give output:
A= float ( 35 + 2 ** 3 % 6 + 8 0 / 5)
print (A)
a. 53 b. 54 c. 53.0 d.
8. Give output:
print (“Mahatma”[3:])
a. 1234 b. 3 3 4 4 c. 4 4 4 4 d. 3 4 3 4
Section B
Q1. What are the key features of Python?
Section C
Q4. Write a program to print table of a number accepted from user.
Input:
5
Output:
5x1=5
5 x 2 = 10
.
.
.
5 x 10 = 50
Q5. Write a program to check whether a number is prime or not.
Input: 17
Output: 17 is a prime number
OR
Write python program to get the PERCENTAGE of a student out of 100 and display related
message based on table below:
PERCENTAGE MESSAGE
80 AND ABOVE CONGRATS! YOU GOT DISTINCTION.
ABOVE 59 AND BELOW 80 YOU PASSED IN FIRST CLASS
ABOVE 34 AND BELOW 60 YOU PASSED IN SECOND CLASS
BELOW 35 FAIL! BETTER LUCK NEXT TIME