Page 1
FOR UTTARAKHAND CLASS 12 PREPARATION
Uttarakhand Board
Class 12 Question
Paper 2026 For
Computer Science
EXAM YEAR TYPE SUBJECT
Uttarakhand Class 12 2026 Question Paper Computer Science
Notes · Sample Papers · Previous Year Papers · Mock Tests
Page 2
m
m .co
m .co s em
se On +. g la !faalNdt dWI :
Roll No. a 7
No. of printed pages : 7
144 444 (IRY)
2026
®WTRgR m
m COMPUTER SCIENCE .co
.co s e m
ma : 3 wt ]em a
[ quIa :l70
l as
Time : 3 Hours ] ag: 70
[ Max. Marks
g
fUn : a (i) Snw+qy+gm26wqgl wbwg aRad gI
Directions : There are in all 26 questions in this question paper. All questions are
compulsory.
(ii) wftgqMta3+©nbwq©3tfnagl
Marks alloted to the questions are mentioned against them.
(iii) gaa WH dUFFiM qf@ NIT nSf,Id 3HT af JPI
m
Read each question carefully and answer to the point.
.co
(iv) wqHqmladaa8rtqwqgl $WWqbqa6wgb3ur+8Ffi©mfi&IT&gI
em wg+M2+7a6Flflua3v8©wqgl
wBfa6mwnt38r®ar+fafinl
s
l a
Question No.1 is multiple choice question. Four options are given
ag
in answer of each part of this question. Write correct option in your
answer book. Question No. 2 to 7 are definite answer type questions.
(v) wg+wrl©rgaawgv©d©©lgl wg+wr2:+7a©e©3+©bqVgel
wg+wr8+14a©a3+©#wqgl wg+w115+20a©ah3+©#wqgl
wg+wr21+26a©vF3+abwqgl
Each part of Question No.1 carries one mark. Question No.2 to 7 are of
one mark each. Question No. 8 to 14 are of two marks each. Question
m
m No. 15 to 20 are of three marks each. Question No. 21 to 26 are of four
.co
m .co marks each
s e m
s e la
(vi) $WWq-q3+nWqld{fiamq6tgNITfB©faIaqWR+31tMfiaaqalq
g
g la a
faqTTrqtgl b6sITI+baaE©fi©m©r8t3HrafalII
a There is no overall choice in this question paper, however, an internal
choice has been provided in few questions. Attempt only one of the
given choices in such questions.
[1] [P.T.0.
m .
.co s e m
s em l a
g la ag
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 1 of 7
Page 3
1. (a) qT5gm+lMfgahm3iRiu#ivrg?
Which is the floor division operator in python?
(i) ! (ii) // (iii) / (iV) CYo
(a) fErn ++#rvl6wn qTSW nr fin-A Mm g?
Which of the following is a built-in function in Python?
(i) factorial o (ii) print o
(iii) seed o (iv) sum o
(Tr) PFi++qTsuq;MthT©rv©dr taCT$qq6tt?
Which of the following is not a core data type of Python programming?
(i) Tuple (ii) List
(iii) Class (iv) Dict
(a) qt8fa+TT+qT$wgmhn©lnncscmrMTT?
What will be the output of the following python expression?
print (round (4.576))
(i) 4 (ii) 4.6 (iii) 5 (iv) 4.5
(s) f©gtfBfMT vr &m & nw ga ©RJMvm fIl%qb fat! faw we ©r3wM fWT
all(II g? 1
What is the term used for the data communication system within a building
or campus?
(i) MAN (ii) LAN (iii) PAN (iv) WAN
(3) f:rlqfafjga++#rvrDBMS©r3a®w%t+?
Which of the following is not an example of DBMS?
(i) MySQL (ii) MS Access (iii) MariaDB (iV) Google
(8) gabaR+anaTda@r©6ig?
What is information about data called?
(i) Hyper Data (ii) Tera Data
(iii) Meta Data (iV) Relations
(a) SQL+fIR?RmT++fatlfawnThHIMhTf©gTaTHre? 1
Which command is used to remove a relation from SQL?
(i) Delete (ii) Remove (iii) Drop table (iV) Purge
444 (IRY) [2]
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 2 of 7
Page 4
m
m .co
F
m .co s e m
se 2. qT6Uq samI%T®©r meVFI mr aaT g? g l a
a
What is the extension of the python program file?
3. 3WqT5aq +% arvn ©arBfatlalwabT faw b3iTfing IlfaqCatsib fm f©narar
gI 1
Name the python method which is used to add element in a list at the end.
4. f©gt $@nb nwqflMiaf©dTT&8ftt!©au#ma6Tatar g? 1
m
.co
What is variable defined inside a function called?
m
I
5.
co
f©gtt@cnT5a+f+MaTTq%+bfaef©©6wnar 3dhTfWZam g?
. is used to read single line from a text file?
1
s e m
e
Which functionm l a
6.
l as
f©titfRdVFrat=ifmdt 3IId8ta®r©Eraral g? ag
g
a are rows and columns of a relation called?
What
7. DBMS b ++ + TCL nr sq aq mr g?
What is the full form of TCL in terms of DBMS?
8. fqqag©r =ncl6sr6afm- 2
Find the output of the following code:
def fun(s) :
m
k=len(s)
m .co
s e
l a
ag
For i in range (o, k):
if s[i].isuppero :
m=m+s[i] .lowero
elif s[i].isalphao :
m=m+s[i].uppero
else :
m=m+'bb'
m
m print (m)
c. o fun ('school m.co
m s e
e la
2@com')
las ftjTmTSW mg? aBb+ wMI e? ag 2
ag What is string slice? How is it useful?
2
10. EaMVH wre?3Kr6wrsfga©q8©l
What is an exception? Explain with an example.
444 (IRY) 13] [P.T.0.
I .co
m
e m .
em l as
las ag
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 3 of 7
Page 5
11. fqqdg+%feda%UT+3jq%tatgataTUfafin- 2
Identify the errors in the following code and rewrite the correct code:
10 = step
for e in the range (0, step):
if e cyo2==0
print e+ 1
else
print e-1
2
12. f:rl;ifafjga©rWTnqfafin
Expand the following terms:
(i) TCP/IP (ii) VPN
13. DBMs©r:rHm©abang&fafjgtII 2
State two advantages of using DBMS.
14, 3ngz:3l13f©raqtgbatu3rntfafjglII 2
Differentiate between update and alter command.
15. En ft(adaMa aq+ 3+? sgt dna '#'firlaa+aaa+bfWU©qTW MT
GIfhuI 3
Write a python program to accept a string and replace all spaces by '#' symbol.
16. ea lbwn alMa agb aTT{ +WI hmsqd+ arq a+ adtab fw qTSWamI
GIf:gUI 3
Write a python program to check that a given number is prime or not using a
function
17. w csv qTsa 'Train.csv' $ Mr fat! TT& fM a fisa m+ b fat! w atIm fafjglII
fatTHTqHHf:THe : 3
(trIO, tname, source, desti, km).
Write a program to display the records stored in a CSV file 'Train.CSV' having the
following structure :
(trIO, tname, source, desti, km).
mar/OR
w an a TT{ sits@ 31T{gt + 'product.csv' qTsm + sjgn qM &fat! w ;ilm fafjglII
MH©rq@RRqg:
(Pid, pname, price)
Write a program to search a product from 'product.csv' file by the product Id
given by the user. The structure of which is as follows :
(Pid, pname, price)
444 (IRY) 14]
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 4 of 7
Page 6
m
m .co
m .co s em
se g la
a
18. f:rqda©©r agm %rlf+xaaf+ufabqda8wlaqafgaalwt©qafaE-
Evaluate the following expression in tabular form showing stack status after
3
every step :
120, 45, 20, +, 25, 15, –, +, *
mTr/OR
fnrfafjga$R6@rda© a BIb nq©© dvcif%m da© + mfa!-
Convert the following infix expression to its equivalent postfix expression :
m
(A– B)*(C/D) + E m .co
.coaBu-
I
RH a qRvIRa lx3=3 em
19.
em l as
s
Define the following-
ag
}
g la
(i) aNIMal
a Topology
(ii) aM#
Telnet
(iii) q,3TR Em
i
URL
20. aaa&t&mld8 g? agMfaq&# 8#$fin g? 3
o m
What are table constraints? How it is different from a column constraints?
c
.Mm fafigt! a @ nr qm @ 3ix RTd. g+
21.qTSW + add Book_name) 3#{ deleteo
( m
e qT+1
ea & pusho 3+t popo 311l+vm a s
aa%
l functions in Python to add Book Name and 4
a
Write add (Book_name) and gdeleteo
remove Book Name considering them to acts as pusho and popo operations in
stack.
mar/OR
en fate: + atOl+ al f:mfafjga fR8fg (Cust Name, Phone No, City) d+ ? I 'Status'
qmbta© wf&&TT&3jqMa©r+#faef:Mafjga=bWmfafjgU-
(i) Push_custo -]a©+fBdt$R6+qT8afmbqTq3iltbTW)aTm3ifM++b
m
m (ii) Pop_custo - 3ia® ada+
Blu I
.co
m .co e m
SeT+ 3jq 3+ fIFa BOb
fmI
s
e A list contains following records of customers (Cust Name,aPhone No, City). Write
las gl
following functions to perform given operation on thea stack named 'Status':
ag (i) Push_custo - To add object containing the name and phone no of customer
who live in Delhi to the stack.
(ii) Pop_custo - To delete the object from the stack and displaY them.
444 (IRY) 15] [P.T.0.
m .
.co s e m
s em l a
g la ag
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 5 of 7
Page 7
22. (i) 3ar6vTHfiafaH3tTfg@ROa#qfRlufBaatfatII 2
Define List and dictionary with example.
(ii) $#frZwa3m mr WM+ a? 2
What do you understand by inheritance?
23. va aTsqa qTsm 'product.dat' + fast fi9q nra b ft8tg d wfM a+ b fat! qTsgm + w
Mm Search (pc) fafjgl! fm+ agm as ea nnjh h w + =rTfla fan TIm gI Rdg ©r
WI? f:rn qm g:
(Product Code, Product Price). 4
Write a function Search (PC) in Python to display the record of a particular
product from a binary file 'product.dat' whose code is passed as an argument. I
The structure of record is as follows:
(Product Code, Product Price)
agm/ OR
qT$21q + w Mm fafjgt! at 'story.txt' gIg at amc msa + 3g aT5qt a +wr fir+ a "A"
NW 6 TH dalaI
Write a function in Python to count the number of lines in a text file 'story.txt'
I
which is starting with an alphabet ’'A".
24. nuRlfjgd :naM a q6dm afal!- lx4=4
Identify the following devices-
(i) ©Uja+BIg&H++aa#©+wna©Tmgl
A hardware in a computer that enables network connections.
(ii) V©qt©lfgaTwaaqfEra+b3rmHw3rT+aTd3traT+aT8{f%aaf:wFit3l?
#8Omawr it
A security device that monitors and control incoming and outgoing traffic
based on defined rules,
i
(iii) E©R3T$uaawMRaT$waTrqg+cg8+©+®aT+bRE3qMrd,IiI
A device which is used to connect wireless devices to a wired network
(iv)q63Wbf93Tgm+fgfaZnf+TT=md3m#ISPbfaee7mVfwq,r+6aaaT}3it
6uar3nrqt©talgl
It converts digital signals from your device to analog signals for your isp
and vice varsa.
25. (i) DDL3+IDML ©qtg+ata3rn!©arBl 2
Differentiate between DDL and DML commands
(ii) =rqf©dtftawrafgqt 3#!©Tflqfaa+@lrrqgad?
l
2
J
What do you understand by degree and cardinality of a relation?
444 (IRY) [6]
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 6 of 7
Page 8
m
m .co
a
m .co s em
se
b
26. e®ftRnta€t hum+3rwr-3mr g la M#q©r Ia SQL $
a
tMglgeM®Pjq®3wr
+2n©rnT®argl ni+gt+fidTT&gzMwH©rwdbTw+©rbsmTf©a
A gift gallery has different stores in India. Database administrator Abhay wants
to maintain salesman data in SQL. He has decided to use the following database
structure-
Database Name - Gallery
Table Name - Salesman
m
Attributes - Scode, SName, Address, Sales, Area
co
m
+nt+iexa+fadTT#ft#fg#3rruH wf:Mafjgaqwjtb3u{atfal!: m .co
. s e
em following records in Salesman table and answer the following
Consider the
s g l a
la
questions:
g a
a Table Salesman
Scode SName Address Sales Area
100 Amit Delhi 15000 East
101 Sushant Gu rug ram 7000 East
102 Priya Noida 12000 West
103 Mohit Delhi
o m9500 North
104 Priyanshi Delhi . c 13000 North
e m
(i) l as
3s+?a#r©rft©ig faw+&faE#}fafjgvfa©a} :am 10,000+3rftIa d1
g
1
Write a query to displayathe records of those salesman whose sale is above
10,000.
(ii) iFTa+ni&UZR©q+ftMafiW+bfallC©M€tfafiWI 1
Write a query to display records in descending order of their sales.
(iii) 34 ac,add HT fRHig fiaT+ b fat! ad fafjgl! at east gr west Efta + dI 1
Write a query to display the records of salesman who belongs to east or
m
.co
west area.
m
c. o (iV) f:rqaBd©r3rnegc@rBhTT- s e m
e m What will be the output of following query:
l a
las g
a by Address;
Select Address, Sum (Sales) from salesman Group
ag #####
444 (IRY) [7]
m .
.co s e m
s em l a
g la ag
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 7 of 7