0% found this document useful (0 votes)
18 views6 pages

Adobe Scan Jan 08, 2025

Uploaded by

aniketdash391
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)
18 views6 pages

Adobe Scan Jan 08, 2025

Uploaded by

aniketdash391
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/ 6

-

Roll r\o. 0

SOUTH ()l)ISIIA SA1101) \ YA SC IIOOl~_COMPLEXI


Pn•-Board Examination(2024-25)
• l'k,l~t' ched'" th,lt tl11~ qu1•st1n11 p.11w1 ('ontnm~ 06 p1 inl\'cl pHg<·s .

• ::-ct m1mbe1 ~t\ en <)11 the 1ight h,rncl side of the question paper should be written on the
tttk p.,~c ()f the ,HlS\\('t book h, the cand1date.
• Clwc-k tlut th,~ question paper contains 37 questions .

• \\ nte down the Serial Number of the question in the left side of the margin before
attempting it.

• 15 minutes time has been allotted to read this question paper. The question paper will be
distributed 15 minutes prior to the commencement of the examination. The students will
read the question paper only and will not write any answer on the answer script dunng this
period.

CLASS-XII
COMPUTER SCIENCE (083)
Time Allowed: 3 Hours
Maximum ~1arks : 70
General Instructions:
• This question paper contains 37 questions.
• All questions are compulsory. However, internal choices have been provided in
some questions. Attempt only one of the choices in such questions
• The paper is divided into 5 Sections- A, B, C, D and E.
• Section A consists of 21 questions (1 to 21). Each question carries 1 Mark
• Section B consists of 7 questions (22 to 28). Each question carries 2 Marks
• Section C consists of 3 questions (29 to 31). Each question carries 3 Marks.
• Section D consists of 4 questions (32 to 35). Each question carries 4 Marks.
• Section E consists of 2 questions (36 to 37). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
• In case of MCQ, text of the correct answer should also be written.

Q No. Se ct ion-A (21 x 1 = 21 Marks) Marks


1. State True or False: (1)
The Python stat ement print('Alpha'+ 1) is example of Type Error Error
2. What is the output of following code snippet?
country = "Global Network" (1)
result = "-".join(country . split("o")).upper()
print(result)
(a) GL - BALNETW-RK (b) GL-BA-LNET-W-RK (c) GL-BA-LNET W-RK (d) GL-BA-LNETWORK

3. Which of the following expressions evaluates to 28? (1)


(a) (8H2+6)//5¥2 (b) (8 +"*2+6)/5*2 (c) ( 8 ** 2+6 ); /(5*2) (d) 8**2+6//5t-2
4 Select correct output 1
x='python'
x.upper()
print(x)
(a)PYTHON (b) python (c) pYtHoN (d) None of these
OSSC / PB-2025 /XII/ 083 Page 1
1
5 \\ lhi.t "111 b<- th<- output of th<' folio,, mg ~-ode ~mppt't
te, t = r~tho Progr1 11g'
'llt(te:--'t[l , •':I))
a) Ph oa.1 lb) , ol gmn (c-) , hnPonmg (<l) Ptorg.mm

6 SC'lect -. 1 -. t output
t (1
t + (
l t(t)
(l. -~ (b) {1,2 (J)) (c) Enor (d} (1 2 3I
Select t'orrect output 1
\1: "'" ,-=t:' }
b 0
i.j d.items():
rint(i'"j, end=' ')
(a) A BB (b) A B (c) Error (d) 1 22
S ort() and sorted Oare used for sorting a list. Which of the following(s) is/are tru«" 1
(a} sorted ( does not change the content of the list
P°' sort ( ) does not change the content of t:ie list
jc sorted ( c1anges the content of the hst
{d s ort ( ) changes the content of the list
9 In a relational database table with one primal> key and three unique constraints 1
defined on different columns (not prim~'), how man~ candidate ke~ s can be
deriYed from this configuration?
(a) 1 ,b) 3 (c) 4 (d) 2
10 Write the missing statement to complete the following code: 1
. • csv
~ile = ope~{ e ~ ple.cs , r ,newline='')
robj = csv.reader(&)
_ __ __ __ ;to skip the first row in che csv file
i _ robj:
print(i)
&He . close()

11 State ,..-hether the following statement is True or False: 1


In Python. if an exception is raised inside a try block and not handled. the program
v..ill terminate without executing any remaining code in the finally block.

12 Which of the follm,ing keyword is used to deal with variables of enclosed scope. 1
(a) local {b) global (c) nonglobal (d)nonlocal
13 Which SQL command can modify the structure of an existing table. such as adding 1
or removing columns?
{a)ALTER TABL (b) DATE TAB (c) MODIFY TABLE (d) CHANGE TABLE

14 What will be the output of the query? 1


SELECT * FROM orders WHERE order_date LIKE 2024-10- 0 10 ' ;
{a) Details of all orders placed in October 2024
(a) Details of all orders placed on October 10th, 2024
(c) Details of all orders placed in the year 2024
(d) Details of all orders placed on any d ay in 2024
1
15 Fill in the b lanks
.. ....... .. provid es only approximate valu es
(a) DATE (b ) V A R C HAR (c) FLOAT (d) CHAR
1
16 Whic h of the follow ing aggregate functions can b e e mployed to determine the
number of uruque e ntries in a specific column , effecti,·ely ignoring duplicates?
(a) SUM() (b) COUNT()
(c) AVG() (d) COUNT(DISTINCT column_narne)
Page 2
OSSC/PB-2025/XIl/083
\Vhich of the following u c , ncrypl1on for r r.urr romrnunir :1t1r,n r,v, r :1 r o rn p u tr t
network
(a) HTTP (b) F'I I' (t:} l'l'I' (cl) I /T'f I'S

Which device i pnmanly u , d to amplify ,ind 1 1 v1.:n, rntc wnnf, JTJ a n< twork,
allowing data to trovcl lon 1 c1 ch 1UIH c ?
(a S\\ tch (b) Routr r (r ) Rcprnt , r (d) Bndgr

19 \\ h1ch commumcat1on 1< < h111qw• , s1,ilJlishe& a dcd1r :Jtcd I mnrnuni, :it1r,n p:1th
betw n 1\\0 devices for the <'n tin· duration of ,J trnnsm1 ,;ion, , n•,unng :i
continuous and consistent connection?
Q20 and Q2 l arc Assertion (A) and Rcason(R) basr•d questions. Mark thr• <()TTcr.t
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
20 Assertion (A): Python functions can accept positional, keyword, and default
parameters.
Reason (R): Default parameters allow function arguments to be assigned a
default value if no argument is provided during the function call.
21 Assertion (A): A GROUP BY clause in SQL can be used without any aggregate
functions.
Reason (R): The GROUP BY clause is used to group rows that have the same
values in specified columns and must always be paired with
aggregate functions.
SECTION - B (7 x 2 = 14 Marks)
22 In a string object ifwe assign a new stnng what happens to the memory location of 2
the object? To test the memory location of an object in Python what inbuilt function
is available?
23 Give two examples of each of the following: 2
(a) Functions in pickle module (b) Bitwise operators
24 IfLl = [10, 20, 30, 40, 20, 10, ... ] and L2 = [5, 15, 25, ... ], then: 2
(Answer using built in functions only}
A) Write a statement to count the occurrences of 20 in Ll.
OR
Write a statement to find the minimum value in Ll.
A) Write a statement to extend LI with all elements from L2.
OR
B) Write a statement to get a new list that contains the unique elements from Ll.
25 Identify the correct output(s) of the following code. Also write the minimum and the 2
maximum possible values of the variable y.
i mport random
x = random.randint(12,15)
c=0
for i i n range(ll,x):
C=c+l
print(c,end = $ ' )
Y = random.randint(l2,15)
d=l
for i in range(ll,y):
d=d+l
print(d,end = ' $')
(i) 2$3$ (ii) 4$5$6$ (iii) 4 $5$ (iv) 6$7$

OSSC/PB-2025/XII/083 Page 3
- The cock pro, tdt'd lwlc1\\ is 11
1tt ndcd to H vc1 sc• the cont ent
of a list.c opy. How ever , 2
26 1) •l 11 ('1101!'< I . , 1, 1'. ·, . ·t' fter remo ving all erro rs.
thci r nit~ s, n t ,\'\ ,11H1 og 1 111 I H (0( I. "\(\\1 1 l I ,l
Und< iltrn' nil the co11t t t1011s 111 , 1< 11
D r (I)
1( I )
i r.1111 c l l / J.)
t p L[il
l[ll il l(i]
I ( l l i. ] t 'I' '
,. l(rnp ut( rt "' ll t of integ ers:' ))
'C\ r~ ( l)
int(L )
"I (1) \\ h,1 t cons train t shou ld be appl ied to
a table colu mn to ensu re that all valu es in 2
th.it colu mn mus t be uniq ue and not NULL?
OR
Wha t cons train t shou ld be appl ied to a table
colu mn to ensu re that it can have
mult iple NULL valu es but cann ot have any
dupl icate non- NUL L valu es?
(IJ)\\'rite an SQL com man d to drop the uniq
ue cons train t nam ed uniq ue_e mail from
a colu mn nam ed ema il in a table calle d User
s.
OR
Writ e an SQL com man d to add a uniq ue
cons train t to the ema il colu mn of an
exis ting table nam ed User s, ensu ring that
all ema il addr esse s are uniq ue.
28 Expl ain one adva ntag e and one disa dvan
tage of mes h topo logy in com pute r 2
netw orks .
OR
Exp and the term DNS . Wha t role does DNS
play in the func tioni ng of the Inter net?
SECTION - C (3 x 3 = 9 Marks)
29 Writ e a Pyth on func tion that disp lays all
the word s whic h are palin drom e from a
text file "WORDS.TXT". 3
OR
Writ e a Pyth on func tion that finds and disp
lays the following:
a) The num ber lines
b) The num ber of word s in each line
30 (A) You have stac k Tea cher Stk whic h cont
ains the reco rds of som e teac hers . Each
teac her has a reco rd of the follo wing form 3
at
[ Teac herI D, TNa me, age}
Defi ne the follo wing user defin ed func tions
to perf orm the spec ified task as follows:
• Push _tea cher (Tea cher Stk, teach Rec) :
This func tion take s stac k Teac herS tk
and new teac her reco rd teach Rec. It inse rts
the reco rd at the top of the stack .
• Pop_ teach er(T each erSt k): This func tion
take s the stac k Teac herS tk and pops a
teac her reco rd from the top. This func tion
retu rns the dele ted reco rd.
• Peep _tea cher (Tea cher Stk) : This func tion
disp lays the topm ost elem ent of the
stac k with out dele ting it. lfthe stac k is emp
ty, the func tion shou ld disp la) 'None'.
OR
(B) Writ e the defin ition of a user -def ined func
tion 'push _Prim e(N) ' whic h acce pts a
list of integ ers in a para mete r 'N' and push
es all thos e integ ers whic h are prim e
from the list ·N· into a Stac k nam ed 'Prim
eNu mbe rs·.
• Writ e func tion pop_ prim e() to pop the topm
ost num ber from the stac k and
retu rns it. lf the stac k is alrea dy emp ty, the
func tion shou ld disp lay "Empty".
• Writ e func tion Disp_Prime(l to disp lay all elem
ent of the stac k with out delet ing
them . If the stac k is emp ty, the func tion shou
ld disp lay 'Non e'.

OSS C/PB -202 5/Xl l/083


Page 4
2
Predict the output of the following code x=y 0
Z# I I
L~ [1,2,3,4,S,6,7]
d {5:'a',7:'b',3:'c'}
S'=0
for i in d:
fo.-. i in L: y·t • l
s = s + L.pop() OR Z• d[i]+z
print(s) for j in range(i):
print(L) x~ej
print(x)
print(y)
print(z)

SECTION - D (4 x 4 = 16 Marks)
Write the output of the queries (a) to (d) based on the table Sportstars, given below: 4
32
Table: Sportstars
Admn No Name DOB Sport Medals Class
11
I
Vl237 Vanshika 2005-02-19 Tennis 3
S 1432 Ruhaani 2005-09-11 Football 5 12
SM 1781 Aalam 2005-07-0"f7 Cricket 4 11
Vl 935 Manan 2005-04-07 Football 6 11
S1276 Aarav 2005-10-06 Tennis + 4 12
SM1872 Rehaan -----j 2004-12-11 Football t
3 12 I
a) SELECT COUNT(*) FROM Sportstars WHERE Medals>-4;
b) SELECT SUM(Medals) FROM Sportstars WHERE Class=l2;
c) SELECT MAX(DOB) FROM Sportstars;
d) SELECT DOB FROM Sportstars WHERE Admn_No LIKE "SM%"
OR
• Display the number of players from each sport name.
• Display the whole table in descending order of the medals won.
• Display the number of medals won by each class.
• Display the name of the most junior player in the table Sportstar.

33 A csv file 'TEST.CSV' contains the marks of some students for 5 subjects such as 4
Physics, Maths, Chemistry, Computer Science, English. Define the following user
defined functions.
• Result(): to display t h e total and average marks of each students. Also print
the details of the three topmost students.
• Count(): to display the t otal number of records in the file 'TEST.CSV'
34 Write SQL commands for the que ries (a)-(d) based on the two tables TAXITYPE and 4
TRAVEL
TABLE:TAXITYPE
TAXI=CODE . TAXITYPE --cfERKM
TO 1 TEMPO TRAVELLER 40
- T02 . AC INNOVA = f : O ---1
T03 -, AC ERTIGA 15 7
T04 _ AC HATCHBACK - 10 -
To5 ~ c SEDAN 1o J

TABLE:TRAVEL
CNO CNAME TRAVELDATE KM TAXI_CODE NOP
101 ! Randeep Singh 2018- 11 -07 7 2 0 0 TOI - 1
12
102 . Sharad Bali 2018- 12- 21 120 T04 4
105 . Sangeeta M 2019-04-25 450 TO 1 15
103 . Manish Nagpal 2019 -01 - 29 280 T02 5
107 Veronica Masih 2019-03- 12 365 T04 2
104 Dinesh Hoon 2019- 10-28____J 290 T05 4 -1
106 Ramita Malik 2019-04-06~ 100 T0l ~ J
• To display CNO, CNAME, TRAVELDATE fro m t he table TRAVEL in d escend ing
order of CNO.
Page 5
OSSC/PB-2025/XJI/083
F l
1 t ustol llt't :-- from the tuble TR \\ EL ,, ho nre
• 'o ,l :- >l.~ tht' l':"\ \:\ ' :k TOl 01 T02
l ttlf. h ,dud e " 1t' l"(
t ,\\
) -1 ,pl\\ ,•ustt llt'l n, l l 1nd the tl._'\.') type the, hme trmc lled
• ' · \ t
• l\) th'-'1'11' ,Ht 1" t e ,"; 1 ft n t \bk TRA\ El fm the custo mers . ,,ho have tra\e l
KM m ,,._ t nclm order of NOP (Numb<>r of Passe
\ st, ,'(' \h) t 1\ \I\ ngers )
• ...,) .. th , \l h t l Tl
..
M s'tV
.. , --1 (' K cont } f' ll
ms t ,e ,o owm g
:\ t , , , n mt d s '- C , 1 ' 4
l •' \.\l i)I\
t \. >\,\I\\( ' '\ '\ l t ltht' tt 11
t\ ,k t e 1.'\.)d<' l fthe 1hm
), tt' d.1te o 01 k
~ \ ,i., numb t't of p1ecr.:-- m ,ul.,b lc m the \\ .u ehou se
){ <' u:- -rd<' med funct ion to pe1 fom1 the follo\\1ng
mfom , lion
• 1\, .ukl ,\ nt'" 1'('rord of the table Stock
• 1\, l nnt the '- ~rdm ,u1t, ot the table
• lnert•,1se the stod-: of t'nch item b, 1.
• Displ a~ th<' final conte nt oi the table . .
Assun H' the follm ,;ng for P) thcm- Da.tn .base c-om1ect1vt
t):
Host: ltk .1lh1.1st, l ser: c.'1.1t P ,,sswo·-d. · Pe,,c ;l
SECT ION - E (5 x 2 = 10 Mark s}
.~6 E('"l•h.:':. 'C\. is ,1.n lT c-omp an~, ~o-~ are \\O,td ng as
c-oder in that comp an). You are 5
,'l.ss ,;:. ~c'a ,o ',,md le the data base of a schoo l in a binar
y file name d 'SCHOOL.DAT'.
~~e ~ti.le will store the recor ds as a num ber
of lists. Each list has the follO\vmg
for.1u t
[nam eOfS taff. post. empi d. salar y. expln Year s]
·13. ~1eOfSt,u"f: ~a...·11e of ;:'"le staff
:;iost Desig natio n of the s,aff
t>:r p1d ':} of the emplo ~ ee
sal~ Salar ~ of the empl oyee
expin years Xum ber of years of e:\.-perience
You are mstru .cted by~ our progr am mana ger to defin
e the follow ing user defin ed
funct ions
• _-\ppend{ ): to add a recor d at the end of the binar
y file
• l:'pda te( ): to upda te the data of a parti cular emplo
} ee
• Displ ay '· to displ ay the ,vhol e file in the tabul ar
forma t.
37 Ne.\York Secu nties P\7:. Ltd. is settin g up the neni
ork in the Baro da. There are four 5
depa rtmen ts name d as :-:- ~lark eting . Legal and Secu
nty.

~ ~
G :?
Distance betwe en various buiidinos -
~
Numb er of comp uters in the buildi nos
I lT to ?\l.\RKETE'.;G I 80m IT
! IT to LEGAL 20
180 m LEGA L
IT to SECU RITY 10
I 100 m SECU RITY OS
I LEGAL to SECU RIRU TY I 150 m MARKETING
1 LEGA
L to ~1AKETING I
42
100 m

=J
I
Ug,A L to ~1AR KETrn G i
50m
• Sugg est the most suitab le build ing to place the serYe
r \\ith a stutab le reaso n.
• Sugge st the type of netwo rk to conne ct all the depar tment
s with a SU1table reaso n.
• The comp any is plann ing to link all the depa rtme
nts throu gh secur e and high
speed trans missi on. Sugg est n ,...,ay to conn ect the
build ings.
• The organ izatio n is plann ing to link its sales coun
ter situa ted in ,·arious parts
of differ ent coun tries. Whic h type of netw ork out
forme d? Justif y. of L\N, \\'AN. 1IAN will be
• It is notic ed that data is lost in the data trans
insta ll repea ters. missi on Jines. Sugg est place s to

OSSC /PB-2 025/X ll/083


Page 6

You might also like