CL 11 - PT2 - CS - 2021-22

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

LITERA VALLEY SCHOOL, PATNA

PERIODIC TEST -II (2021-22)


CLASS-XI
SUBJECT-COMPUTER SCIENCE (083)
DURATION: 1HRS 20 minutes MAXIMUM MARKS:35

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)

COMPUTER SCIENCE/XI/20.01.2022 PT-2/2021-22 PAGE 1 OF 4


a. SuperDad2 b. SuperSuperDad c. SuperDadDad d. Error

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. Maha b. Mah c. atma d.ATMA

9. Identify the value of F3:

a. xy’ + x’z b. x’y + y’z c. xy' + x'z’


d. x’y' + x'z’

10. Which two numbers form the binary number system?


a. 0 and 2 b. 1 and 2 c. 0 and 1 d. 1 and 3

11. Which of the following sequence is correct to convert decimal number to


binary?
Step 1: Note the remainder.
Step 2: Divide the given number by 2.
Step 3: Write the noted remainders in the reverse order (from bottom to top)
Step 4: Keep on dividing the quotient by 2 and note the remainder till the quotient is zero.

a. Step 1, Step 2, Step 3, Step 4 b. Step 2, Step 1, Step 4, Step 3


c. Step 3, Step 2, Step 1, Step 4 d. Step 2, Step 3, Step 1, Step

12. Equivalent binary number of decimal number 0.25 is ______________


a. 0.11 b. 0.00 c. 0.01 d. 1.00

13. Give output:


i=0 while
i<3:

COMPUTER SCIENCE/XI/20.01.2022 PT-2/2021-22 PAGE 2 OF 4


print(i, end=” “)
i=i+1
else:
print(7, end=” “)
a. 1 2 7 10 b. 1 2 7 c. 0 1 2 7 d. 1 3 5 7

14. Give output:


i=2
for x in range(i):
i+=1
print(i, end= “ “)
print(i, end= “ “)

a. 1234 b. 3 3 4 4 c. 4 4 4 4 d. 3 4 3 4

15. Give number of times loop will run:


i=100
while i<57:
print(i)
i+=5
a. 49 b. 47 c. 0 d. 45

Section B
Q1. What are the key features of Python?

Q2. Draw a logic circuit for Q = (A.B) + (A’.B’)


OR
Draw the truth table for the Q = A.B + A’.B’

Q3. Draw a flowchart to find Area of rectangle.

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

Q6. Write note on the following:


a. Analysing the problem
b. Developing an algorithm
c. Coding
OR
Write a program to accept a string and display the total number of letters in it.

COMPUTER SCIENCE/XI/20.01.2022 PT-2/2021-22 PAGE 3 OF 4


Section D

Q7. s= “Welcome to python world”


Write output for given statements:
a) print (s.isalpha())
b) print (s.islower())
c) print(s.upper())
d) print(s.capitalize())
e) print(s.title())

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

COMPUTER SCIENCE/XI/20.01.2022 PT-2/2021-22 PAGE 4 OF 4

You might also like