0% found this document useful (0 votes)
28 views13 pages

DB 11 CS 23-24

Uploaded by

Francis King
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views13 pages

DB 11 CS 23-24

Uploaded by

Francis King
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

DON BOSCO SENIOR SECONDARY SCHOOL, NERUL

ANNUAL EXAMINATION (2023 - 24)


COMPUTER SCIENCE (083) CLASS XI
Date: 07/02/2 024 Maximum Marks: 70 Time: 3 Hours

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

5.Which among the following willgenerate a semantic error? 1


A. N1 + N2 = Sum B. if a > 5: C. R-No=5 D. 25.0 /0
6. Which of the folowing is/are a tuple data type?
A.t= ("Python", 2) B. t= [1, 2, 3] C. t= 1,2 D. t = {1: "A"}
7. Fillin the blank with correct
answer: 1
function tells the data type of a variable in Python.
A. id(x) B. type(x) C. data(x) D. data_type(x)
8. Which of the following function tells the
address of a variable in Python? 1
A. id(x) B. type(x) C. int(x) D. address(x)
9. Which among the following is not a
A. list
number data type in Python? 1
B. float
C. complex D. boolean
10. Which among the
A. IF a ==5:
following statement is/are true?
B. while a >=
10:
C. for i in
D. For iin range(5, 10, 2):
range(5, 10, 2):
Page 1 of 4
28. 24. What OR23.
yHow 20. 19What is 16,Deepak 15. 14.
18. 17. 13. 12. What11.
Convert What What Why .
Explain UBExplain A.
Define else: having A.
Which A. 10
A.
if for n= 0.0 A. What ANDWhich What Slow
Very A.
is for Given n
computer "Computer@Science@Exam Myexam= 2023" input("Enter a
are tuple
is list output
Writhte %i= ini
errors. + print(15.0 will
Central runtime i data.
print("Number break
print("Number range b**
statement among is
characteristic
(FADE1)16system is output
inthe has the
called range(3): len() is 0: the
is ":","A"*print(i,
(i+1) aGive written c
different Python base
memoryProcessing (2, Rewrite output
%3 th e
software compound error function examples n
to consists * following of
4 of // a
number a
octal with print(Myexam[-2 ::-2))of: string 2): (5 of hexadecimal of
and from the is the code +3.0)) RAM
with is the
number and its prime not correct to B.5 b:> of B.0 OR
B. B.
8
Unreliable B.
Unit list? suitable following
data declaration: of to following logic memory
suitable prime input a
its
types? (CPU) each check membership
operator?
types? Explain type? \n)
system. Python code gate number
Python data \n") a
and code: whether number expression inverter? makes
Explain
with and calledis
its types system?
code. code? underline SECTION B
suitable it
main forward in prime and not
2 C. 40
C. C.2 VolatileC.
of components? Python. check a if NOT C. suitable
or and evaluated
4 example.
and not the b
whether
corrections
::") not for
backward in
C permanent
Python?
it
is
made. a D. 40.0 D. NAND D. 16
D. Bulky D.
indexing prime if storager
2
in
with or a:
not.
example. His
code
is
2 2 2 2 2 2 2 1 1 1 1 1
1 1 2
v7.
28. Draw OR Z6,
OR l. 8.
Deepak
Name: Example: xplain
print("String2:",
OR print("String3:", string2)
string3) fostring3
r string2 = Write
=string1 range(no_of_student): (ount
for,in
no_of_student
JeRewrite Define Çonvert
Number:RolWrite
l 1House else: if ( Dfaw the Draw
ite: string1[(i).isupper():
string1[i].isalpha()
string3string1[0)
string2+=and in i print() -
-percentage Sum =0
a = a
find(), range(len(string1): print("Percentage:", print("Total
thepercentage) percentage
for =0 print("Enter
num_subjects the
symbol the
Python ([1, program = sub thePython (18.25)1o
if ("p",output logic truth
"Deepak", LIST: += following
index() string1[i "y", in and
program Sumt=#
marks
marks
range(num_subjects): -input("How tokens? circuit table
(25, to of =
"3", the marks:, (sum Marks truth to
5,9,
replace and = program diagram binary
of
"Red"), - ".", =
int(input("How Give
using 1] following int(input("Enter table (A
565, ord() * of
all "O", sum) 100) OR
number
two
a(2, 65,98,functions Student:", many examples each of of
loop 1?2 "T", / after of 2 C)
"Rupa", code. (num_subjects (A - AND
digit "h, students?:")
to 456, AND input system
display many(count correcting. (A
"Blue"])
numbers on "o", marks B')
Ex-NOR OR
SECTION C
35] string using
age 4t "n"] subjects") OR B)
above Expected +
3 by 72 * of 1)) Underline token. (A
of data 100) subject gate.
OR repeated
4 list *.
types B)
as Output:
follows: " the division
with +
str(sub corrections
[*',
suitable and
5, +,":"))1)
+
9, multiplication
565, Python done.
'*",
", code.
456, method.

*]

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

WAP to enter two numbers N1 & N2 and print allthe


which are divisible by 3 and 4. numbers between N1 and N2 (N1 & N2 inclusive)

93. WAP to enter total marks scored and out of marks and
then calculate the result, till user wants. 3
OR

WAP to enter a number and find its


factorial without using any built-in functions, till user wants.
4Drawthe truth table and logic circuit diagram for (A+B) .
(A+B+C) 3
Q25. Write a program to enter time in seconds and
print it in the form:- Hours : Minutes:
e.g. 5645 secondsare printed as 1 Hour: 34
Minute :5 Second Seconds 3

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

for yin range(1, 3):,2


print(x * y, end=" ")
print()
Q8, Write a Python program to enter asentence and
then count total number of spaces, upper case
and lower case characters.
3

"int Cinput(" No))

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

Allquestions are compulsory.

SECTIONA
Ql. Choose the correct option.
i.Which among the following cannot be an octal number? 1
B. 257 C. 1011 D. 355

i. Which is the highest common digit in all number system? 1


A. 1 B. O C.7 8.9

iii. Which gate is called as inverter gate? 1


A. AND B. OR SNOT D. NAND

iv.Which among the following is not abasic logic gate?


A. AND B. OR C. NOT NOR
v.Which gate produces output 1 when allor any one input is 0? 1
A. AND B. Ex-OR e.NAND D. NOR

SECTIONB

. Convert decimal 35.15 to binary number.


,g3.Convert hexadecimal FACES.AD3 to octal number. 2
gw. Convert (136.23)r&o octal number? 2
Q5. Write (-25), in 2's complement form. 2
Q6. Draw the symbol and truth table of NOT & AND gate for 3 input. 2
Q7. Draw the circuit diagram and truth table for AB' + BC+A' 5

Synbol D

20 v2oeC
Page 1 of 1

You might also like