Page 1
FOR TN 12TH EXAM PREPARATION
TN 12th 2026
Question Paper ·
Computer Science
EXAM YEAR TYPE SUBJECT
TN 12th 2026 Question Paper Computer Science
Notes · Sample Papers · Previous Year Papers · Mock Tests
Page 2
m
m .co
m .co s e m
se g l a
a
No. of Printed Pages : 8
9072
!9072ComputerScience! £vÄ Gs
Register Number
m
c o m PART - III
m .co
PoÛ m . AÔ¯À s e
s e / COMPUTER SCIENCE
l a
g a
l uªÌ ©ØÖ® B[Q» ÁÈ
( / Tamil & English Version )
ag
a
Põ» AÍÄ : 3.00 ©o ÷|µ® ] [ ö©õzu ©v¨ö£sPÒ : 70
Time Allowed : 3.00 Hours ] [ Maximum Marks : 70
AÔÄøµPÒ : (1) AøÚzx ÂÚõUPЮ \›¯õP £vÁõQ EÒÍuõ GߣuøÚ \›£õºzxU
öPõÒÍÄ®. Aa_¨£vÂÀ SøÓ°¸¨¤ß, AøÓU PsPõo¨£õÍ›h®
EhÚi¯õPz öu›ÂUPÄ®.
o m
c
}»® AÀ»x P¸¨¦ . ø©°øÚ ©mk÷© GÊxÁuØS®,
em
(2)
las
Ai÷PõikÁuØS® £¯ß£kzu ÷Ásk®. £h[PÒ ÁøµÁuØS
g
ö£ß]À £¯ß£kzuÄ®.
a
Instructions : (1) Check the question paper for fairness of printing. If there is any lack of fairness,
inform the Hall Supervisor immediately.
(2) Use Blue or Black ink to write and underline and pencil to draw diagrams.
£Sv & I / PART - I
m
m .co
m .co
SÔ¨¦ : (i) AøÚzx ÂÚõUPÐUS® Âøh¯ÎUPÄ®.
s em 15x1=15
s e öPõkUP¨£mkÒÍ |õßS ©õØÖ ÂøhPÎÀ la
la
(ii)
ag ªPÄ® Hئøh¯
ag Âøhø¯z ÷uº¢öukzxU SÔ±mkhß Âøh°øÚ²® ÷\ºzx
GÊuÄ®.
Note : (i) Answer all the questions.
(ii) Choose the most appropriate answer from the given four alternatives and write
the option code and the corresponding answer.
om .
[ v¸¨¦P / Turn over
.c e m
em l as
las ag
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 1 of 8
Page 3
9072 2
1. Aͦ¸UPÒ Aݨ¦® ÷£õx £UP ÂøÍÄPøÍ HØ£kzx® ö\¯ØTÖ __________
GßÖ AøÇUP¨£k®.
(A) ö\¯ØTÖ
Dynamic (B) ö\¯ØTÖ Impure
(C) ö\¯ØTÖ
Pure (D) ö\¯ØTÖ Partial
The function which cause side effects to the arguments passed are called __________.
(a) Dynamic function (b) Impure function
(c) Pure function (d) Partial function
2. E¸Áø©¨¦ AÔ¯¨£mh uµÄÁøP __________ GÚ AøÇUP¨£kQÓx.
(A) (B)
Concrete datatype Built in datatype
(C) (D)
Abstract datatype Derived datatype
The datatype whose representation is known are called __________.
(a) Concrete datatype (b) Built in datatype
(c) Abstract datatype (d) Derived datatype
3. G¢u EÖ¨¦PøÍ CÚUSÊÂØS öÁÎ÷¯ C¸¢x® AqP •i²® ?
(A) EÖ¨¦PÒ
Secured (B) EÖ¨¦PÒ Public
(C) EÖ¨¦PÒ
Private (D) EÖ¨¦PÒ Protected
Which members are accessible from outside the class ?
(a) Secured members (b) Public members
(c) Private members (d) Protected members
4. ö|Ô•øÓ°ß ö\¯ÀvÓøÚ AÍÂh Cµsk •UQ¯ AÍÃkPÒ __________.
(A) ÷|µ® ©ØÖ® Ch® (B) ö\¯¼ ©ØÖ® {øÚÁP®
(C) ]UPÀ ©ØÖ® ÷|µ® (D) uµÄ ©ØÖ® Ch®
Two main measures for the efficiency of an algorithm are __________.
(a) Time and Space (b) Processor and Memory
(c) Complexity and Time (d) Data and Space
5. ø£zuõß ìQ›¨møh C¯UP £¯ß£k® Âø\ Gx ?
(A) F5 (B) (C) F1 F10 (D) F2
Which key is used to execute Python Script ?
(a) F5 (b) F1 (c) F10 (d) F2
6. a &ß ©v¨¦ 52 GÛÀ, RÌPõq® ø£zuõß {µ¾UPõÚ öÁαk Gx ?
x=''even'' if a%2==0 else ''odd''
print(x)
(A) error (B) even
(C) öÁαk CÀø» (D) odd
Which of the following is the output of the given Python code if the value of a is 52 ?
x=''even'' if a%2==0 else ''odd''
print(x)
(a) error (b) even
(c) no output (d) odd
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 2 of 8
Page 4
m
m .co
m .co s e m
se g l a
3
a 9072
7. ußøÚzuõ÷Ú AøÇzxUöPõÒЮ ö\¯ØTøÓ __________ GÚ AøÇ¨£º.
(A) »õ®hõ (B) EÒÎøn¢u (C) Return (D) uØ_ÇØ]
A function which calls itself is called as :
(a) Lambda (b) Built in (c) Return (d) Recursion
m
.co
8. ¤ßÁ¸ÁÚÁØÖÒ Gx \µ[PøÍ CønUP £¯ß£k® ö\¯ØSÔ¯õS® ?
m
.co m
(A) * (B) (C) + (D) = &
m
Which of the following operator is used for concatenation ?
s e
s e l a
ag
(a) * (b) + (c) = (d) &
g l a
9.
(A)
a
mylist=[10, 20, 30, 40]
[10, 35, 20, 30, 40]
GÛÀ, mylist.append(35)
(B)
&ß Âøh
[10, 20, 30, 40, 35]
__________.
(C) [35, 10, 20, 30, 40] (D) [10, 20, 30, 35, 40]
If mylist=[10, 20, 30, 40] then mylist.append(35) will result :
(a) [10, 35, 20, 30, 40] (b) [10, 20, 30, 40, 35]
(c) [35, 10, 20, 30, 40] (d) [10, 20, 30, 35, 40]
10. ¤ßÁ¸ÁÚÁØÖÒ Gx private CÚUSÊ ©õÔ ?
m
.co
(A) (B)
$$num _ _num (C) ++num (D) ##num
em
Which of the following is the private class variable ?
(a) $$num
s
(b) _ _num
laAøÇUP¨£k£Áº ¯õº ?
(c) ++num (d) ##num
11. g
a (B)
EÓÄ{ø» uµÄuÍzvß u¢øu GÚ
(A) Edgar Frank Codd Chris Date
(C) Chand (D) Hugh Darween
Who is called Father of Relational Database from the following ?
(a) Edgar Frank Codd (b) Chris Date
(c) Chand (d) Hugh Darween
12. PmhøÍ AmhÁøn°ß
__________ ÁiÁø©¨ø£ ©õØÔ¯ø©UP
m
.co
AÝ©vUQÓx.
m
.co em
(A) (B)
MODIFY (C) SELECT ALTER (D) ORDER BY
em
__________ command is used to change the structure of the table.
l as
l as (a) MODIFY (b) SELECT (c) ALTER
ag
(d) ORDER BY
ag 13. CRLF
(A)
Gߣuß Â›ÁõUP®
Control Router and Line Feed
:
(B) Carriage Return and Line Feed
(C) Control Return and Line Feed (D) Carriage Return and Form Feed
The expansion of CRLF is :
(a) Control Router and Line Feed (b) Carriage Return and Line Feed
(c) Control Return and Line Feed (d) Carriage Return and Form Feed
[ v¸¨¦P / Turn over
m .
.co s e m
s em l a
g la ag
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 3 of 8
Page 5
9072 4
14. ø£zuõß ©ØÖ® C++ {µÀPøÍ Cøh•P£kzxÁuØPõÚ Pmhø©¨¦ :
(A) Cython (B) (C)
Ctypes (D) Boost SWIG
A framework for interfacing Python and C++ is :
(a) Cython (b) Ctypes (c) Boost (d) SWIG
15. __________ ö\¯ØTÖ ÷uº¢öukUP¨£mh ¦»zvß ö£›¯ ©v¨ø£z v¸¨¤
Aݨ¦®.
(A) HIGH( ) (B) MAX( ) (C) MAXIMUM( ) (D) LARGE( )
__________ function returns the largest value of the selected column.
(a) HIGH( ) (b) MAX( ) (c) MAXIMUM( ) (d) LARGE( )
£Sv & II / PART - II
SÔ¨¦ : GøÁ÷¯Ý® BÖ ÂÚõUPÐUS Âøh¯ÎUPÄ®. ÂÚõ Gs 24 &US
Pmhõ¯©õP Âøh¯ÎUPÄ®. 6x2=12
Note : Answer any six questions. Question No. 24 is Compulsory.
16. xøn{µÀ GßÓõÀ GßÚ ?
What is subroutine ?
17. Private ©ØÖ® Protected AqQ¯À¦PøÍ ø£zuõß GÆÁõÖ SÔ¨¤kQÓx ?
How Python represents the Private and Protected Access specifiers ?
18. RÌPõq® ø£zuõß SÔ•øÓ°ß öÁαk GßÚ ?
What is the output of the following Python code ?
a=10
b=3
print(a/b)
print(a%b)
print(a**b)
print(a//b)
19. ¤ßÁ¸® ö\¯ØTÖPøÍ ©v¨¥k ö\´x Auß öÁαmøh GÊxP.
Evaluate the following function and write the output.
import math
x=26.72
y=64
print(math.floor(x))
print(math.ceil(x))
print(math.sqrt(y))
print(round(x,1))
20. ¤ßÁ¸® ø£zuõß SÔ•øÓ°À &ß ©v¨¦ GßÚ ? x
What will be the value of x in the following Python code ?
l=[1, 2, 3, 4, [5, 6, 7]]
x=len(l)
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 4 of 8
Page 6
m
m .co
m .co s e m
se g l a
5
a 9072
21. uµÄ {ø»zußø© GßÓõÀ GßÚ ?
What is data consistency ?
22. next( ) ö\¯ØTÔß £¯ß£õk GßÚ ?
What is the use of next( ) function ?
m
m .co
.co
uµÄuÍzøu £¯ß£kzx® £¯ÚºPøÍ SÔ¨¤hÄ®.
m
23.
Mention the users who uses the database.
m s e
s e l a
24.
l a
RÌPõq® ø£zuõß {µ¼ß öÁαk GßÚ ? ag
ag
What will be the output of following Python code ?
s=[x**2 for x in range(1, 5)]
print(s)
print(sum(s))
£Sv & III / PART - III
SÔ¨¦ : H÷uÝ® BÖ ÂÚõUPÐUS Âøh¯ÎUPÄ®. ÂÚõ Gs 33 &US
Pmhõ¯©õP Âøh¯ÎUPÄ®. 6x3=18
o m
Note :
c
Answer any six questions. Question No. 33 is Compulsory.
.ÁÈ•øÓPÒ ¯õøÁ ? GkzxUPõmk
25. À EÒÍ EÖ¨¦PøÍ AqS® £À÷ÁÖ
list -
e m
u¸P.
las
ag
What are the different ways to access the elements of a list ? Give example.
26. C¯[S {µ»õUP® £ØÔ }º AÔÁÚ ¯õøÁ ?
What do you understand by Dynamic Programming ?
27. AøÚzx ‰ßÖ C»UP JØøÓ¨£øh (odd) GsPøÍ öÁΰkÁuØPõÚ {µø»
GÊxP.
Write a program to display all 3 digit odd numbers.
m
m .co
.co
28. ¤ßÁ¸ÁÚÁØøÓ £ØÔ uS¢u GkzxUPõmkhß SÔ¨¦ ÁøµP.
e m
e m
(A) (B)
capitalize( ) swapcase( )
l as
s
Write a short note about the following with suitable example.
la (a) capitalize( ) (b) swapcase( )
ag
ag
29. ø£zuõÛÀ BUQ ©ØÖ® AȨ¤PøÍ GÆÁõÖ Áøµ¯Ö¨£õ´ ?
How to define constructor and destructor in Python ?
30. ø£zuõß ©ØÖ® C++ ÷ÁÖ£kzxP .
Differentiate PYTHON and C++.
[ v¸¨¦P / Turn over
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 8
Page 7
9072 6
31. J¸ ¦v¯ ¦»zøu ÷\º¨£uß ‰»® ©õnÁº AmhÁøn Pmhø©¨ø£ ©õØÔ
Aø©UP J¸ TØøÓ GÊxP.
SQL
Write a SQL statement to modify the student table structure by adding a new field.
32. îì÷hõQµõ® ©ØÖ® £møhÂÍUP¨ £h[PÐUPõÚ •UQ¯ ÷ÁÖ£õkPÒ
H÷uÝ® ‰ßÔøÚ GÊxP.
Write any three key differences between Histogram and Bar Graph.
33. öPõkUP¨£mh ø£zuõß {µ¼ß öÁαk GßÚ ?
What will be the output of the given Python code ?
a=''Computer''
b=''Science''
x=a[:3]+b[len(b)-2:]
print(x.upper())
£Sv & IV / PART - IV
SÔ¨¦ : AøÚzx ÂÚõUPÐUS® Âøh¯ÎUPÄ®. 5x5=25
Note : Answer all the questions.
34. (A) ¤ßÁ¸® {µ¼À
let rec gcd a b :=
if b < > 0 then gcd b (a mod b)
else
return a
ö\¯ØTÔß ö£¯º
(i)
uØ_ÇØ] ö\¯ØTÖ TØÖ
(ii)
Aͦ¸ ©õÔPÎß ö£¯º
(iii)
ö\¯ØTøÓ uØ_ÇØ]US AøÇUS® TØÖ
(iv)
uØ_ÇØ]ø¯ •iÄUS öPõskÁ¸® TØÖ
(v)
BQ¯ÁØøÓ GÊxP.
AÀ»x
(B) &À
Python &¼¸¢x EÖ¨¦PøÍ }USÁuØPõÚ öÁÆ÷ÁÖ ÁÈ•øÓPøÍ
List
GkzxUPõmkhß ÂÍUSP.
(a) Identify in the following program.
let rec gcd a b :=
if b < > 0 then gcd b (a mod b)
else
return a
(i) Name of the function.
(ii) Identify the statement which tells it is a recursive function.
(iii) Name of the argument variables.
(iv) Statement which invoke the function recursively.
(v) Statement which terminates the recursion.
OR
(b) Explain the different ways to delete elements from the list in Python with example.
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 6 of 8
Page 8
m
m .co
m .co s e m
se g l a
7
a 9072
35. (A) Á›ø\•øÓz ÷uhÀ ö|Ô•øÓ°øÚ ÂÍUSP.
AÀ»x
(B) öPõkUP¨£mh Gsoß öuõhº ö£¸UPø» (factorial) PnUQh for ©hUQøÚ
£¯ß£kzv ø£zuõß {µÀ GÊxP.
m
(a)
m
Explain Linear Search Algorithm.
.co
.co OR
s e m
(b)
em
Write a Python program to calculate factorial of the given number using for loop.
s l a
g l a ag
36.
a
(A) ø£zuõÛÀ ìQ›¨m •øÓø© {µ»õUP® £ØÔ GÊxP.
AÀ»x
(B) ø£zuõÛÀ ©õÔ°ß Áøµö¯Àø»PøÍ GkzxUPõmkhß ÂÍUSP.
(a) Describe in detail the procedure of script mode programming in Python.
OR
(b) Explain the scope of variables in Python with example.
o m
. c
m
37. (A) ¤ßÁ¸® TØÖPÐUPõÚ öÁαmøh
Python GÊxP.
s e
la
''
strl= Welcome to Python Programming ''
print(strl[11:16])
print(strl[11:]) ag
print(strl[:7])
print(strl[::3])
print(strl[::-5])
AÀ»x
(B) uµÄuÍzvÀ EÒÍ EÓÄ{ø»PÎß ÁøPPøÍ ÂÍUSP.
m
.co
(a) Write the output of the following Python statements.
m strl= Welcome to Python Programming
.co m
'' ''
m s e
s e
print(strl[11:16])
g l a
la a
print(strl[11:])
ag print(strl[:7])
print(strl[::3])
print(strl[::-5])
OR
(b) Explain the different types of relationship mapping in database.
[ v¸¨¦P / Turn over
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 8
Page 9
9072 8
38. (A) RÌPõq® student AmhÁønø¯ P¸zvÀ öPõsk (i) •uÀ (v) Áøµ°»õÚ
ÂÚõUPÐUS SQL PmhøÍPøÍ GÊxP.
Rollno Name Gender Average
101 ANU Female 98
102 BALAN Male 95
103 RAVI Male 82
104 DEVI Female 89
105 MANI Male 75
AøÚzx ©õnÁºPÎß AøÚzx ÂÁµ[PøÍ²® ö£¯›ß
(i)
Ai¨£øh°À CÓ[SÁ›ø\°À Põs¤UPÄ®.
¦vuõP J¸ ©õnÁ›ß ÂÁµ[PøÍ ÷\ºUPÄ®.
(ii)
(iii) ©v¨ö£s •uÀ Áøµ EÒÍ ©õnÁºPÎß ÂÁµ[PøÍ
Average 70 90
Põs¤UPÄ® .
(iv) GßÓ ÂÁµ® Eøh¯ ©õnÁ›ß £vøÁ }UPÄ®
Rollno=103 .
(v) ©õnÁºPÒ ÂÁµ[PøÍ Põs¤UPÄ®.
Female
AÀ»x
(B) ¤ßÁ¸® TØÖPÐUPõÚ ö\¯ØTÖPøÍ GÊuÄ®. Matplotlib
Aa_UPõÚ ö£¯›øÚ ÁÇ[PÄ®.
(i) x
Aa_UPõÚ ö£¯›øÚ ÁÇ[PÄ®.
(ii) y
Áøµ£hzvØPõÚ uø»¨¤øÚ ÁÇ[PÄ®.
(iii)
ÁøµÂø¯ Põm]£kzuÄ®.
(iv)
öPõhõ{ø» ¦øÚÄPøÍ ö\¯»õUPÄ®.
(v)
(a) Consider the following student table. Write SQL commands for the questions (i) to (v).
Rollno Name Gender Average
101 ANU Female 98
102 BALAN Male 95
103 RAVI Male 82
104 DEVI Female 89
105 MANI Male 75
(i) To display all details of all students in descending order of name.
(ii) To add details of a new student.
(iii) To display all student details whose Average is between 70 and 90.
(iv) To remove the student detail whose Rollno=103.
(v) To display the details of female students.
OR
(b) Write the Matplotlib functions for the following statements.
(i) To label the x axis.
(ii) To label the y axis.
(iii) To assign the plot’s title.
(iv) To display the plot.
(v) To invoke the default legend.
- o 0 o -
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 8 of 8