CSC OBT AK
CSC OBT AK
NameI
OBT EXAMINATION [2024-25] SEC.SCHOOI SHR0SHTI
Subject: COMPUTERSOCIENCE(083)
lass: XII Date: 09.01.2025 LEARN TO LEAD
c) &
d)~
e/Total-discount
d. Totaldiscount a)27
b)9
13. How many operands are there in the following arithmetic 3
6*35 +8-25 expression? d)1
a4
b.3 19.
c. 5
>>>str="hello"
d. 8 >>>str[:2]
dictionaries
2?
zoo*
for
be exist
will
sum
len(numberGames)
+ doesn't
what
'tiger]
'tiger] 10
= numberGames[k]
sum
t=
numberGames[(4,2.,1)]
numberGames[(1,2,4)]=8
"tiger"1, 12 C'}'C'}
numberGames[(1,2)]
= numberGames: a-{1:"A",2:"B",3:"C"}
method
'tiger',
'lion', 3: 3: dyNone'"
is
printed
{}
=
numberGames 'B','D',
=
end
print(i, ["lion", 'tiger,
'lion', copy)
0: 2: 2:
==
while
True: 10 ['tiger]
b[2]="D"
b=a.copy) 'A','A',
i%3break it=28 ['a. lion' ]lion,
['lion', print(a)
a)Error,
6 d)error = zoo 0= in
Sum c){1:
vth{l:
4 46)2c)23 k print a)30b)24e)3312
d)
i=2 if a)2 24. If b. a d. 25. for 26.
23.
output.
call: above
function the
with
print result
a that
by
displayed calls
function
b)print("ndicknharry'
Aprint("tom )
tomdickharry") CD'].
mentioned
-9): x.append(i.upper())
is False: AB',
following <
(0 print("hello")
print("good")
the a)print("tom print("bad") x=['ab',
'cd] a)[
AB',
CD']. c)['ab',
of Inhary") d)print(tom and 0)or 'cd','cd'].
the
of
d)hello20.The all
harry')<0) (9
> V)good
b)hellod)bad X: print(x) b)['ab',V4)none
wa)heb)loclolleh tomdick
harry
Select Indick
dick 21. (9 elif else:
a)error in
i
for
if 22.
the
value
list.
the
invalid: the
None.
has
left L)
returns returns the
of
Tau end TAue.
K on
Fals is variables
statement
the it
statementA,hence
A dictionary A.explanation
of to A.. A. BoE
e) A.
of item of of
A explanation d)A R A A. A. of of modified. ofA.
explanation
of of following
single of explanation followinglist of explanation list
explanation explanation explanation the explanation exnlanation
the
a a in thatTuple.
of be
coTeet keysdatatype Correct the only correct ,the availablecorrect cannot
requires correct
correot correct ,(1,2,3,4]
adds correct A=[6,7,8,9] corect the
as correct
the madeImmutable
the
function the not the of tuple the
thenot thenot Unpacking
length
thenot
L=a.append(5,6,7) is thenot thenot
is is be is is 10 a
RR can't is is Considering is is in is is
RR append()
Considering R R RR
element thevalues R R
andand a andand andand andand andand
True. as
TrueTrueFalse. False. Tuples
is(R):Tuple A.index(10) :Tuple
TrueTrueFalse.
True.
False. False. False.
TrueTrue True. TrueFalse.
True True.
False. elements
:The TrueTrue
True.
False. False.
The :The
is
areare is R are (A): are areis Risare :
(A): (R): are areis isR Rare (A) is is are (A)
Rare
Rare are is is Rare
Rare
R R R but
R
RRR butR R RR
R R
RR
andandbut R 32.Assertion andandbut and 33.Assertion butbut Reason(R)but but R
34.Assertion
of (R)
Reason butbut
Falseand
True False and and and andand and 35.Assertion
number andand and
AA A
Reason True
A A A Reason True
A A
False
A A A
False
True
A A A
TrueFalse
¢
b)Both
a)Both is e)Both a)Both
b)Both
is d)A is is e)Both a)Both
b)Both
is is e)Both None. b)Both
a)Bothis is e)Both same b)Bothis e)Both
a)Both is
c)A c)Ad)A c)Ad)A c)Ad)A c)Ad)A
element
corresponding
Questions:
deleted.
then
Type tuple.
is
Statement
tuple
Reasonentire
complete
the dei
and deletes wiin
Assertion the
method specified
code otherwise
>>>
a-(1,2,3,4)
pop) D'} following
are is
4: 67]] a index
>>>
del deleted
for 'C', print('cd'.partition('cd')) 67] 67]] 40
67]
a={1:"A,2:"B",3:"C"}
eTOr 45,45,45,[45, 31 The the
"D") "B',3:
a.setdefault(4,
a={1:5,2:3,3:4} [87)], [87].
a.extend([45,67])
87, 87,[ number
(A): :Ifbe
syntax a.append([87]) will
2:3} 4}
Vb){l:5, 2: d)[1,3,6,
10]. ") ") a-[13,56,
17] 17, 17, 17, 17, (R)
a.pop(3) 3: 'A, c)", cd',
('cd', 56,56,56, 56, Question
31.Assertion
print(a)a){1:
S} c)Error,
5, print(a) 6)None.
c)Error. ('cd')
a) print(a)A)[13,
Reason
{1: aj{1: (")
b) (", b)[13, d)[13,
c)[13,
27. d) 28 29. 4) 30.
the the
uses in
*Crime exists
Ramesh
Stories"}to Diaries'
*Crime" only.
Book,
command. :be operator
keys
"Children would 'Madras
this:
operator
follow: from dictionary with
for in
I. Book correct Library name reason usedthein
CASE that4: Days code: the
withthe
questions
Crime", dictionary the
"Malgudi the be of
with in correct canalong
command: instead
on command:
choose Book
of
line
present whether
baSed LibraryIt
Days)
Days] Library.values()
values.
the the
function
6°: the himn dictionary following is check
questionsanswer following
*Mystéry" infollowing Days'] 2 in Select with
title Help
Diaries", Diaries','6','Malgudi
Malgudi key Diaries'
Thriller" the
to Library.items()
"False'.function correct.
and the answer. the Now
Thriller')
Thriller"Thriller)
(*Crime
Thriller" the Malgudi the
are code2: {5':Madras
change
the of in
Book
2
whether
Diaries','6',' Madras function
uses
Falsc.
41-45 «Thriler", "Crime
following writtenthe Crime
merge tlibrary.update(Book)
output
c.Book.update(Library)
"True'.
as
in
are
b.print(Book+Library)
print(list(Library)) he answer the above
are number
to getting=*Crime
("Crime to +Library the
Diaries','check
command:
Library,
answer the
needshas=
Book["Crime"] command use the
be ('5,'Madrasto
['5','Madras the use c
R
and the1: He
Ramesh not Book[3]=
= =Book[3]
Book[2]
Book[2]
will ['Madras
['s,6]
order the gets
dictionary
cannotuse and
must
canb
Question =
Consider Thriller", a.d-Book following
A : = Library is 42.The 43.What gets he Both
e)BothaCASE Book he In We We We
41. But a. b. c.
44. He But
a. b) c.
a. A. c. d.
of
form an a)
with
not
the
in
results e) d)
is
ofa
index in
the
elements statement left. loop.
to non-determinable
A. Strings right loop.
512.
colwithlectionsofexplanation following A. A.
dictionary A. of is A. of
A. A
is A. of
infinite of
ions in of explanation of explanation
operator(**)
command of explanation A
explanatiou allowedexplanation of explanation
the explanation explanation explanation
PYTHON", an
ctcorrect
unordered as in
not correct following called
results correct
elenments Exponentcorrect correct
correct is correct correct correct Nested.correct
not
the
indexing alsoalways the Immutable
the the the
the are the >>>
S[-20] the
S= thenot of the not is be thenot
:Accessing
(R)
:Dictionaries
is is of Associativity
2**3**2 loop thenot
loop
Considering :Negative
is is output is is is is cannot
is is
R and
R RR R
and andand andR
and
while
while R R
andand
are R R
and and
True.
False. False. False. The
True. True. Tuples
Tuples
TrueTrue TrueFalse.
True TrueTrueFalse. False. The False.
True. False.
The TrueTrue False. TrueTrue True.
is :
(A) are areis are : (A) are are is
is are (A) : are is is : is :
key:
value
pairs. RR R
are
R are (A):
areareis are (A): is
(R)areareis R
R butbut R
R and RR R R RRR R R butR R
36.Assertionandb)BothA and 37.Assertion andandbut but and (R) and butbut
Reason
38.Assertion Reason
(R) R R but R R R but
False
True
(R)
Reason
False
True
and and
TrueFalse
39.Assertion
andand andandbut
and 40.Assertion
ReasonA A AA A b)BothAA TrueFalse False
True
possible a)Both is e)Both a)Both
A
b)Both e)Both á)Both
AA A
Reason
A b)BothA
is is is is is e)Both a)Both
b)Both
is is e)Both a)Both
c)Ad)A error. c)Ad)A c)Ad)A c)Ad)A is is
c)Ad)A
dt-f.readline(4) c.
print(dt[3]) Stories'} 'Children 'Crime,
4: "Thriller'
3:, {1:
Stories'} 'Children 3:'Crime,
4: "Thriller,
dt-f.read(4) b. {1:
print(dt[3]) Code2
Stories'} 'Children 'Crime,
4: 'Mystery'3;, "Thriller',
f.readlines() adt- Stories'! Children 3:'Crime'4:, "Thriller,2: {1:
{1:
following the which
of file, text from line 4th read To51. Code1
is
true? statement
these of
All D. Stories') 'Children 'Crime,4: 'Mystery'3:, Thriller',
mode read C. Stories'}4:'Children 3:'Crime', "Thriller,2: (1:
mode B/write Mystery {1:
mode write read A. Stories'} 'Children 'Crimne, "Thriller,3: Code2
Stories'}4:'Children 3:'Crime,4: (1:Thriller, {1:
the then exist, not does file the mode,
if which In 50.
created? file
is
type tuple D. Mystery
Code1
type string C.
type Blist Stories'} 'Children 'Crime'4:, Thriller, 3: {1:
type Integer A.
Stories'} 4:'Children 3:'Crime', "Thriller,
'Mystery'} {2:(1:
readlines()
function the does format which In49. Code2
output? the give Stories'} 'Children 3:'Crime'4:, Mystery', Thriller,2:
mentioned the ofAll d) {2:'Mystery'} {1:
mentioned the None
of c)
Code1
deserialization object for used b)It
is b.
serialization object for used is It a) Stories'} 'Children 'Crime', Thriller'
3:, {1:
Stories'} 4:'Children 3:'Crime'4:, Thriller', {1:
unpickling? is
What 48.
Code2
mentioned the none
of d) Stories'}'Children 3:'Crime'4:, 'Mystery', {1:"Thriller,
2:
file's the sets c) Stories''Children 'Crime'4:, 'Mystery",
file thewithin position current 3: {1:"Thriller,
2:
file's the sets b)
offset the position at previous Code1
the sets a)
offset at current file's
theposition a.
What
is 47. print(Book) print(Book)
files? method
in seck() ofuse the
infile.readlincs() d) Liprint(Library)
brary.pop(2) print(Library)
infile.rcadlinc() c)
Library.pop(2)
infile.read() b)
Library-Book.copy) Library-Book
Code2 Code1
infile.read(2) ) fragments
outputof tpredi
he dictionaries,
ct 1 declared above threference
e following
code to With the
characters
a two read 46.To
use ie, O0Jet
we file from
45.
above the none
of d)
table items
ain data number
of c) computers
overa twobetcommuni
ween cation network.
table columns
ain humber
of o) for rules ofset ais
table ain
rows number
of a)
Ctt (cXML
(d) HTML (b) HTTP
internet. over dattransport
a (a)
69. to
usedlanguage ais
to Degree
total refers 60.
above the of
none d) pages. develweb oping C++ (d) XML (cHTML
) (b) HTTP (a)
in
helps language
that mark -up ais
table items of
ain data number c)
above. the Alof 59.
columns number
of b) d. 4 & Both2 c. 4 &Bot1h a.Only
b.
table in
a 1
La) packets. data theassigned to numbers
are Sequence
table arows of
in pumber 4.
total
Cardinality
is 68. end.receiver the atdata receiptof reliable the for used Protocols
are 3.
Mozilla Explorer
(c) Internet (b) Chrome Google (a) properly. utilized channel communi
is cation free The 2.
Photoshop Firefoxd) paths. different simultaneously
through
web following
nota is the Which
of 67) switching? sent are data packetofs
The 1.
browser? regarding
packet true is/following
are the Whiofch 58.
(XML,HTML HTTP XML, (c) Communicationd.
Message Information
c. b.File a.
XML HTTP, (b) XML HTML, (a) processed
get to data
is Raw 57 .
sensitive. Address
IC d. IPc.ID Name b. a.
are Tags 6) unique wil therenetwork,
abe connected
ato device every
sensitive
and case For 56 .
case not are tags chat Text (c)
Conferencing (Video KW d.Watt c. Hzb.Khz a.
Email (b) Cable
TV (a) Bandwidth
is? of
unit The 55.
Headquarter? communication
spced Latency
d. c.
rate DataBandwidth
b. a.
in
the people between
thecommunication medium.
communication
and
Delhi Ernakulum OfficeKegional frequencies
of
the Which 65) ofa lower and upperbetween difterence the is
cstablish
the suggest
to wil
you following The $4.
face face to online (c)
&c botah (a data the carry Hub Protocol
d. Lic.Switchb.
nk a.
Lb) communication
(a) actual betore switching cireuit established
in
the
data present data the store is 53.A
designed
to not was XML 64.
sets d.
(b) Microsoft (a)
Web Wide World BSNL (c) Google lnested
ist vC)
d 63.Web
provided serviccs mcansscrvices tuple b.
by Two (c)
above the Nonc
of (spiders
d) dictionary a.
devices clcctronic Two a) object.
beings human Two (b) values
in treturns
he functionit
csv.reader() using file csv read you52.When
between Communication
place takes serviccs,
the wcb $2.In
b) Modem h) these ofAll d.
address IP(d) Switch (c)Protocol print(d1[31)
in specified
appearing
in
tuples
database? individual
key? specified
database. system?
inconsistency. primary
relational the
table. processing of
in
valuesappear
model.relational than a
a as the relation.
in
field
aboutdata and rather taken also d)Specific
redundancy file that
relation
in
rue used tables relation, be
a of requires referenced
to not widely
disadvantage can
refer attribute c)Primary
referencing
to
d)Instanceisstatementsofcollection entire
d)Fields constraint
c)áld)Department
most data
the
used
dyTable increases a
the following in
the tupleb)Rpferential
is c)Tuple the
following
is
following
of
unique.
property
c)Attribute integrity
c)Key is a in one
database. modelasarranged
database inconsistency
Data
c) the
tuple
above
b)Record b)Row above. least
redundancy
Data
a) is of b)Street any
the a tupleb)Key at Referencing
the data isolation
Data
b) is one
is RelationalyRelational
the of the of of
a
in 78. Atribute of
term
The Which data of Which ofsAll each
Rows
WhichName attributes
attributes
rowFicld None which A
83.
The 81.
A
82. a) a)
80. a)
A
77. a) a) 79. a) b) d)
between
records
in
datad)Redundancy
data. data.
d)similarity as structured
known valid above
ensures of.
the
define collection
is
datac)Isolationof of
that collection thatd)All
c)relationship d)Tábles
rule of rules a
copies c)Dictionary
of
called b)Bnconsistency consists
isa redundant
organized of
set c)Keys
Integrity is
valid.b)difference a database
is
data redundancy above data c)Data
inconsistency
above is
bConstraint
c)Database
schema a)Data
redundancy
b)
Data
Description an b)Records
are
Referential of
about Repetition
the Mismatched
Dependence.....
is
tables t)
Meta
Data the d)
Information relational
of of a)
Database
Links Data Data None None c)DBMS 75.
Adata
related
b)
File
Query Fields
70. 71. 72. 74.
A
a) a) d) 73. a) A
d) a) 76. a)
.
84.Which of the following is not alegal method for fetching records from database, tablcs of agiven
database what will be the command?
|92. To showall the
a)fetchone(0 bfetchtwo() c)fetchall) d)fetchmany) namc: shows tables;
85.To fetch one record trom resultset you a)Usc databasc
may use<curor ... method. show tables;
a)fetch) b)etchone) c)fetchtuple d)none of thesc. ) Usc database namc;
show tables;
86.To reflect the changes made in the database c) Requircd databasc;
nemancntly you nccd to run...... shows tables;
a)done() b)reflect) cleommit) d)final d) Required database; statement is this?
SÌL statement. What type of
87.To run an sqlquery from within python yÍu 93. Consider the following
may use cursor. VARCHAR, id INTEGER)
a)query() b)ekecute) c)commit() d)final()
method.
CREATE TABLE employce (name
(a) DML
88.A database b)DDL
...controls the connection to an actual database ,
program. established in (c) DCL
(d) Integrity constraint
a)database object bonnection object c)fetch object correct syntax for creating tables?
d)query object 94.Which among the following is the
89.Sonia wants to see all the á)CREATE TABLE name;
databases are available in her MySQL
Which command is useful for her? software. b) CREATE name;