Class 11 CS QP HYA
Class 11 CS QP HYA
2 b,a=a,b (1)
print(a,”+”,b)
a) 5 + 6 b) 6 + 5 c) 11 d) None
Kriza wants to divide a number and store the result without decimal places into an integer
3 variable. Suggest her an appropriate operator from the following: (1)
a) / b) % c) // d) Both a) & b)
What will be the output of following code:
if True:
print(“true”)
4 (1)
else:
print(“false”)
a) True b) False c) true d) false
Which of the following is the result of A + 1, if input is A=0?
5 (1)
a) Always 0 b) Always 1 c) Vary from 0 or 1 d) None of these
Which of the following gate is an inverter gate?
6 (1)
a) AND b) OR c) NOT d) NOR
Which of the following is correct for NOR operation?
7 (1)
a) (AB)’ b) (A+B)’ c) AB d) A+B
Which of the following python mode allows to write python program with multiple lines?
8 a) Interactive Mode b) Script Mode (1)
c) Client Mode d) Debug Mode
Identify python keyword from the following:
9 (1)
a) if b) max c) min d) math
What will be the output of the following code segment?
a,b=2,3
10 a,b=b**3,a**2 (1)
print(a,”#”,b)
a) 8#9 b) 9#8 c) 27#4 d) 4#27
Which of the following symbol is not an operator?
11 (1)
a) / b) % c) // d) #
What will be the value of variable a when loop is terminated?
a=30
while a>0:
print(a)
12 (1)
a-=10
a) 0 b) 10 c) 30 d) -10
1
a) 2023 b) 2023# c) 20#23 d) 2#0#2#3
Consider the list L=[2,4,3,5], which is correct to delete element 4?
14 (1)
a) L[2] b) L[-3] c) L[3] d) L[-2]
OMR stands for
a) Optical Mark Reader
15 b) Optical Mark Recognition (1)
c) Optical Mark Reviewer
d) Optical Mark Representation
. Priyansh wants to store the value 3.5 into a variable n. Which of the following statement
16 is correct for him? (1)
a) int n=3.5 b) n=3.5 c) 3.5=n d) n=’3.5’
Q17 and 18 are ASSERTION AND REASONING based questions. Mark
the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b)Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d)A is false but R is True
SECTION - B
Answer any 7 questions of 2 marks each: (7x2=14)
(2)
2
d) (135)8
(OR)
Write any 2 characteristics of algorithm
What do you mean by identifiers? List out any two rule of identifier naming convention
22 (2)
What will be the output of the following?
23 x, y = 4, 8
z=x/y*y
print (z)
(or)
What is a string slice? (2)
24
What are the advantages of Python? (2)
will be the output of the following code
25
(2)
SECTION – C
Answer any 5 questions of 3 marks each: (5x3=15)
26 (3)
What is the syntax of if-elif statement in Python?
27 (3)
WAP to print the following series – (i) 1 4 7 10 . . . . . . .40
Rewrite the following code fragment using for loop
28
(3)
30 What are loops in Python? How many types of loop are there in Python? (3)
SECTION – D
Answer any 2 questions of 4 marks each: (2x4=08)
31 (4)
Write an algorithm and flow chart to find the square of given number
(OR)
Write a program to print the following pattern up to n terms
1
3
12
123
1234
What would following expression return?
(a) ”Hello World”.upper().lower()
(b) ”Hello World”.lower().upper()
(c) ”Hello World”.find(“Wor”,1,6)
(d) ”Hello World”.find(“Wor”)
(e) ”Hello World”.find(“wor”)
(f) ”Hello World”.isalpha()
(g) ”Hello World”.isalnum()
32 (h) ”Hello World”.isdigit() (4)
SECTION – E
Answer any 3 questions of 5 marks each: (3x5=15)
******