DB 11 CS 23-24
DB 11 CS 23-24
General Instructions:
1 This question paper contains four sections, Section Ato D.
2. All questions are compulsory and
programming using Python language only.
3. Section Ahas 15 questions carrying 01
mark each.
4. Section B has 13 Very Short Answer type
5. Section C has 05 Short Answer type
questions carrying 02marks each.
questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions; 2 of five marks each
and one of 4 marks.
SECTION A
1. State True or False.
1
"Keywords can be used as identifiers."
2. Which of the following is an invalid identifier in
Python?
A. name B. None C. Marks D. Name1
3. If L1 =[1, 25, "Nandini", 2, 52, "Priyanshu", 100] . Then L1[2][2] will print 1
A. Nandini B. 2 C.n D. 5
4. Consider the given expression:
not True and True or True
Which of the following will be correct output if the above expression is evaluated?
A. True B. False C. None D. NULL
*]
3 3 2 2
3 3
AG.
34.
for Write OR
Write House OR
frequency
Write Write OR print(L1[3])
print(L1[1][0:3])
print(L1[0j[o][1])
Write characters, Writeprint(L1[-1::-1]) print(L1[0}) Blue
Number:
Name: Red
Rupa Roll 2House:
print() print(L1[0::2)) L1= Write F.House:
else: ifi for ini
print("$",
end="print("", j the Python [["CHESS",
+ in
")end=" ") range(4): Python
= a PythonPythona a Python a the
1
range(5): [[1, of
== output output
"Deepak", each alphabets,
orj program
program programprogram Program 2),
j of numbers.
+ the ("CRICKET", of
1 the
== to
"Red"], digits,
following to
4: 0 n enter to to to following
enter enter enter enter
capital 5),
a [2,
program. number "Rupa",details a a 25,code.
sentence
list sentence a
& 36.0]
of small
of numbers
and "Blue"], N
check students and lettersSECTIOND
and
4
of capitalize then
4
(3, and and
whether
"Amit", in then count (nunm>0):
wle
a special
nested
it count the the
"Green"), first
is characters.
number
a list
palindrome unique,letter
as
follows:
...... of
duplicate of
each words,
or
not. word.
and
oc3
4 5 5
tay Time:
1.5
Hours
method.
un-pack
questions. list.
list. using copy?
given
given
10) 30)
5=5) the shallow
NERUL 4 the x5= 20,
any from
#. from different?
24) Attempt x (2 (10, from
SCHOOL, XI (1 with
- Class questions. element 10 questions.
to
(2023 questions. :-1])?
only
questions. element T different
Maximum
Marks:
35 of they code.
-
EXAMINATION 17). Section/question. print(list[:
print
SECONDARY
(083) values
C. - SECTIONA first SECTIONB
5 are code.following
second to
and 5 (13C.
5
5
any example. any
SCIENCE any
any Questionsand order. the statement thehowisit suitable 2
of
B Attempt Attempt of Attempt How
A, Attempt B, remove
replace change
and 1Page
SENIOR A, correct output the
- list?
COMPUTER
ANNUAL Sections - ar similar with from
each
Sections
12).based 6). also.withto to thePython 12).to a
BOSCO 6). of Explain
3 (1- (7-
the
against to statement
statement
Explain be to codetheycopy code. d
70)
- intoQuestionsstudies in (1 example and
PRE in
Questions attempted questions will a (7 Python following 60,
DON marks Write questions are c
divided mentioned do? true list?b,
S0,
what How
case a a from a,
equal
an
WriteWrite 4).
function writea by of 4),
then understand
the print(type(x),
type(y)
is 6 6 5
of of of be 6 Give 2, 6
string.
1] different
30,
values
paper of 30], of "3"]
General consists carry
Instructions: consists
consists are must list? 88].5). 5]
consists of Then - 20, d=
numst-5:-2
13/12/2023
Date: allotted eval() 4, 4, (10, consists with output "2",
x(:len(x)
y=y+x(-1] the (10,a-
nums[2:2)
b=
nums[2:]
C=
nums[:2)
question questions
questions nested 87, 3, 3, 3). you ("1", print(y) is be =
(25, 2, 2, 3, list
x= print(x) tuplewill nums
A B C while
x:
Section
Section
Section sectiondoes (1, [1, (1, 2,
section the
Marks Compare
do
The
is =
WhatWhatmarks
= = = (1, Writex= y= HowWhat
All All nums list nums = gWhat
This ThisIfT 10. }. A.
1. 2. 3. 4. 5. 6. 7. 2. Z. B. A. 1 6. 7. .
Marks:
Total
Marks:
Maths
125Chemistry
Marks:
50Physics
Marks:
50 25 Enter
Expected
Output: presenthaving Write
Example: OR Expected
output:
Example: the the
(Roll_Number,
17. e.g. 16.
Example: 15. even.are b 14. 13. This
Write [1, Write last
second Write
Roll a Given Write
inPython 'N section
25, index
Number Ifthe If a a If
theelements tPython
he 35, program a a
list program themovesindex,Python a tupleprogram consists
list listL= 40, Phy, Li st
to isthen with the pairs
Search:
programto 100,Chem, is toprogram
[1, [ Duplicate to L= element to of
display Unique [25,
enter the =
20, the to "Pass"] (10, 5
enter 47, (2, reverse
questions
Maths, first
2 60,structure the 20, to 5),
an Elements: 25, enter in
rotate
40, Elements: (2, iindex. (4, all
appropriate roll 45, Total, roll 30, the
2) , two
120 number 40, second the (13
as 89, list a 10,12, number (9, digit (Case
], [ [47, 50] elements -
[Roll_Number, (25, 101, of Result] 20, 8), 17)
(2, 89, numbers
message. and and then indexX (12,numbers AttemptStudy
25, 45] 45, 42,
then 101, SectionC
50, 12] "Fail"]) marks after move of 10), Based
50, 12] and a count inany
search the a
125 Phy, iD to list list
then nestedrotation Questions) 4
the so th e questions.
], & that and
(3, Chem,display display third number store
10, list it index t he
10, Maths, in
should element
the all the
at (5
unique of th e x
10, details and pairs
following be 4=
30] Total) same
[50, so at 20)
) and on, th e (a,
).from 10, b)place.
If duplicate format. and first such
roll a 20,
the index
numbernested 30, that
element
numbers. 40) moves bothand a
list
is
not in to
Xi. x, 244 A.
viii. vi. vi.)How (v) iv.
A.
FalseOperators A. A.
7 AND A. Instructions:
General
continueWhich
print("Which
")
A. A. Which
M.range() i . Which i.875 Which i. Q1.
Which
NOT A. Which print() A.
What Which Which Choose 4. 3. 2. 1.
print(3 many All All
among of among among among among Marks
among Programming
the wil among among questions questions
the
following -2 be logic
the **
the the the the the the e
thcorrect allotted
the gates
following output2 following following followingfollowing following following
** following
is 3 are option(s). must are
not are in
P.check 244.0 B. + compulsory.
Python
of Punctuators
B.
if
99/11) the B.5
B. required NOT B. AND B.
range(5) B. 257 B. DON
print i_ a is logic logic function
B. is cannot mentioned be
incorrect is print("5"
incorrect
valid following
not not attempted
2 gate gate language. BOSCO
+ term a Python a for be
5 Python produces call an
statement?associated A' is statement +
statement? AND called wil "A") octal against EXAMINATION
YEARLY
HALF
keyword? token? in SESSION
Page
of4 1 raise SENIOR
(A inverter? number? the
="Python"strC. range C. class C. C.
3ORoutputNOR C. OR
C. C. 1011 C.
tomputer an C. in correct each faya
with range(0,5) Python?
print("A"
B) error? 2023
to 0 section/question. `ECONDARY
Python construct if
odd order.
+ -
2024
loop? number "B")
the
of TIME:3
HRS
MARKS:
COMPUTER
SUBJECT:70
SCIENCE CLASS:
13/09/2
DATE:
023 XI SCHOOL,
logic
inputs
D. break D. circuit?
D. +3)
1 Ex-NOR D. Ex-NOR D. P.print("A" 355 D.
Error D. Literals D. D.
X
= are range(5,
range(5) Class NERUL
1?
10,
2)
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 2 2 2 2 2 2 2
2 2
these
of
15
3,D. D.mode D.
math None
for
D. -7
D. 35
D. ,end="*")
below?
D.
(A+B').
method.
construct? given Gates",sep="*",
3)? + Python.
(A'B')
15,12
9, if-elif-else code Python?
statistics
C. "Python"
C. division
range(3,
6,3, C.
import Infinite in
repetition the expression done.
-8
C. tokens
C. execute in repeated
by Systems"."Logic
corrections
Python?type executed? the
generated gate.
system.
a data Boolean 4
of
make to using all
code? required Ex-OR of 2
in sequence code. Page
will module be system.
number names the
system
be 15 following 3) will and the program. Underline
will12, statement Python "Number
print("\nEnd\nof\nProgram",
is 2,
a (1, loop
NOR of the
table
9,
values if-else
B. module a
print(module_name.ceil(28.5))
not number
number hexadecimal
6, B.math not = age:")
3, the -8.5B. time
B.
is X2 following 10 NAND, writefollowing
truth following
B. following is B. "Python"program.
following following following
of print(math.floor(-8.5)) following
B. and your
binaryoctal
output NOT,and XYZ")
the to Python
the the input(int("Enter
learnig",following
the the to to(8AD.C7)16 of
circuit
(4255.616)s is
the the the the times (23.53)10 of of name
amongamong symbol in output output
among among among n<-=1
while
10:
be 3] logictokens print(a
==
b) print(a
is
b) print(c
==
d) am
will 2, many n b=0<5 c= str(a) print("My the 15
Which
3
15, Which What random
A. [1,
Which Which n=0 Convert the the
Convert Convert thea=True print(c) the print("l = =Correct
Which pickle = How d=b age
3, DrawDrawDefineWrite Write age
ifA. -9
A. X1 if
xii. A. xiR (xiv) xvi.A. xvii.A. Xvii. A.0
Xv. 0Z gs. O5. T98. Q7. Q8. FOg) D0
D
(2write
perpendicular 20. P01&-Convert WAP
(Hint: Q17) Write L4}Correct
16,WAP Q1s, Q392.
WAPS.Explain to WAP
print(math.fabs(-43))
h.factorial(5))
tistics.mode([10,
.floor(5.6))
5.\20 h
= 10
x<=50: X= print for the for Write Write Write Make .
+=5X while
print(x) for n=3 for n=1 print("You else
the
Vp²+ in to to outputb n=n*
random in b print(n) print(You
Python
(p) the table enter enter if inthe ini ini the the a
output print(b
"*") * range(1,b if
print(b, range(1, range(0; the range(3): list
b²and output output
following from == of b print()
== end="@")
print("*" for following 10
syntax of
) module
base to number
OR
a a
5: the j
number break OR continue 5: + variables, can can
of calculate end of in 1
the 1 11):
following 11): n): of of Play
(b) to the range(0, the'while' Play
following while 5 = Python
as with N N *") following Kho-Kho.")Kabaddi.)
using following types
500, inputs. and and and
suitable loop Python i+ and
50, display nested print then 1): program.
program. into Python
'for' of
operators,
Use Python
100]) code. display
all program.
for loop. loop
module the odd
Page loop program. in
Consider hypotenuse numbers the code.
to Python.
keywords
3 and sum
of get
4
all functions. the from of
the of all and
same integer
modules right-angled a 1 functions
to
output. N.
numbers
are in
included. previous
triangle
from
by 1 question.
to
taking N.
2 2 2 2 2 2 2 2 2 2 2
Q22. Write a program to enter a number and then calculate the sum of all
numbers from 1 to N.
even and sum of all odd
Hint: If N= 10; then 3
Sum of all Even Nos. [2 +4 +6 +8+ 10]= 30
Sum of all Odd Nos. [1 + 3+5+7 +9] = 25
OR
93. WAP to enter total marks scored and out of marks and
then calculate the result, till user wants. 3
OR
Page 4 of 4
(5
Marks) 1 1 1 2 2 2
Time:
45
Minutes 1 1 2
printC)
using
these Explain N.
to
of 1
D.
nPro None loop? from
else
D.
NERUL do
D. D.6 numbers
D ohile)c6
a
in
SCHOOL,XI B. úsed
Class Section Multiple
Choice
Questions print(str[-5];? 1f : : prime
24) part. statement exemple.
Maximum
Marks:
20
-
- (083)
SECONDARY
(2023 andeach all
SECTIONA Python? C.Pytho *»
" SECTIONB prirt 2
2 SCIENCE A for ifC. ifC. of * locp. of
continue suitable
TEST Section C.4 2
instructions loop? output C. and1
Paga
in iterate? while
SENIOR
WEEKLY code?
COMPUTER statement N
- counting the with
and nunnber
sections using
BOSCO be will following break functions
specific will
called jump loop snippet
DON
two Kfor 8.break what
a
betweenenter
on
contains is is oB. following 2B. the partition()
option. following
based followingfollowingThen of 2,3
outputs.
to
program
Python. output
4): 6): difference
paper
questions correct Pro". the range(2,
General
Instructions:
the the iur
in
"Pyiion": "*")
*print(i given range(1, with and
20/10/2023
Date:
in "Python times the f*=i Python
question
Programing theamong among 2) code split()
Attempt Choosewhile
A.
many *
print(i be in break tthe in
9Convert
=1i
print(f)the
will i is suitable
a (Q5)Explain
A. = A.n
for for for What a4)Write
The iWhich{i)which
str How A.0 What *jA. f
Q1. (iiiJlf Q3.
1. 2. 3. iv.
, v.
Q6. Write the ou put of the following ccde.
str = "Python Program" o
print(str[:-1)
print(str(2:10])
print(str[:2])
print(str[7:)
Q7. Write the output of the following code.
for x in range(1, 4): # 2 2 2
N*
petcbveat")
Corioc)
DON BOSCO SENIOR SECONDARY SCHOOL, NERUL
SESSION 2023 - 2024
WEEKLY TEST
Class: XI
Date: 14/07/2023
Subject: Computer Science
Marks: 20
Time: 45 Min
SECTIONA
Ql. Choose the correct option.
i.Which among the following cannot be an octal number? 1
B. 257 C. 1011 D. 355
SECTIONB
Synbol D
20 v2oeC
Page 1 of 1