Page 1
TAMIL NADU
od
M le
ap
P re
DOWNLOAD
Page 2
No. of Printed Pages : 11
3323 (NS)
!3323NSComputerScience! £vÄ Gs
Register Number
PART - III
Po¨ö£õÔ°¯À / COMPUTER SCIENCE
( uªÌ ©ØÖ® B[Q» ÁÈ / Tamil & English Version )
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Ä®.
(2) }»® AÀ»x P¸¨¦ ø©°øÚ ©mk÷© GÊxÁuØS®,
Ai÷PõikÁuØS® £¯ß£kzu ÷Ásk®. £h[PÒ ÁøµÁuØS
ö£ß]À £¯ß£kzuÄ®.
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
SÔ¨¦ : öPõkUP¨£mkÒÍ ©õØÖ ÂøhPÎÀ ªPÄ® Hئøh¯ Âøhø¯z
÷uº¢öukzxU SÔ±mkhß Âøh°øÚ²® ÷\ºzx GÊuÄ®. 15x1=15
Note : Choose the most appropriate answer from the given four alternatives and write
the option code and the corresponding answer.
[ v¸¨¦P / Turn over
Page 3
3323 (NS) 2
1. J÷µ ©õ-v-›-¯õÚ A÷u AÍ-¦-¸U-PøÍ ö\¯Ø-T-Ö-ÂØS Aݨ-¤-ÚõÀ \›-¯õÚ
Âøh-ø¯z u¸® ö\¯Ø-TÖ GÆ-ÁõÖ AøÇU-P¨-£-k® ?
(A) Pure ö\¯Ø-T-Ö (B) Impure ö\¯Ø-T-Ö
(C) Partial ö\¯Ø-T-Ö (D) Dynamic ö\¯Ø-T-Ö
The function which will give exact result when same arguments are passed are
called :
(a) Pure functions (b) Impure functions
(c) Partial functions (d) Dynamic functions
2. ©õØÓ ö\´¯ •i-¯õ-u ö£õ-¸-Îß öuõ-hº Á›-ø\ :
(A) Derived Data (B) Built in
(C) List (D) Tuple
A sequence of immutable objects is called :
(a) Derived data (b) Built in
(c) List (d) Tuple
3. G¢u CÚU-S-Ê-Âß EÖ¨-¦-PøÍ CÚU-S-Ê-Âß EÒ÷Í ©m-k®uõß øP¯õÍ
•i-²® ?
(A) Public EÖ¨-¦-PÒ (B) Private EÖ¨-¦-PÒ
(C) Protected EÖ¨-¦-PÒ (D) Secured EÖ¨-¦-PÒ
Which of the following members of a class can be handled only from within the class ?
(a) Public members (b) Private members
(c) Protected members (d) Secured members
4. ö|Ô-•-øÓ-°ß ö\¯À-v-ÓøÚ AÍ-Âh Cµsk •U-Q-¯ AÍ-Ã-k-PÒ GøÁ ?
(A) uµÄ ©Ø-Ö® Ch® (B) ö\¯-¼ ©Ø-Ö® {øÚ-Á-P®
(C) ]U-PÀ ©Ø-Ö® öPõÒÍÍ-Ä (D) ÷|µ® ©Ø-Ö® Ch®
Two main measures for the efficiency of an algorithm are :
(a) Data and space (b) Processor and memory
(c) Complexity and capacity (d) Time and space
Page 4
3 3323 (NS)
5. IDLE &ß Â›Ä :
(A) Integrated Design Learning Environment
(B) Insert Development Learning Environment
(C) Integrated Develop Learning Environment
(D) Integrated Development Learning Environment
Expand IDLE :
(a) Integrated Design Learning Environment
(b) Insert Development Learning Environment
(c) Integrated Develop Learning Environment
(d) Integrated Development Learning Environment
6. ¤ß-Á-¸® SÔ-•-øÓ-°ß öÁÎ-±-k GßÚ ?
for i in range(2,10,2):
print(i, end= ‘ ’)
(A) 8 6 4 2 (B) 2 4 6 8 10
(C) 2 4 6 8 (D) 2 4 6
What is the output of the following snippet ?
for i in range(2,10,2):
print(i, end=‘ ’)
(a) 8 6 4 2 (b) 2 4 6 8 10
(c) 2 4 6 8 (d) 2 4 6
7. ¤ß-Á-¸® ö\¯Ø-TØøÓ ©v¨-¥k ö\´x Auß öÁÎ-±møh GÊ-x-P.
x=14.4
print(math.floor(x))
(A) 13 (B) 14 (C) 15 (D) 14.3
Evaluate the following function and write the output.
x=14.4
print(math.floor(x))
(a) 13 (b) 14 (c) 15 (d) 14.3
[ v¸¨¦P/Turn over
Page 5
3323 (NS) 4
8. ¤ß-Á-¸® SÔ-²-¸U-PõÚ öÁÎ-±-k ¯õx ?
str=“NEW DELHI”
str[3]=“-”
(A) NEW-DELHI (B) NE-DELHI
(C) NEW DELHI (D) NEW-ELHI
What will be the output of the following code ?
str=“NEW DELHI”
str[3]=“-”
(a) NEW-DELHI (b) NE-DELHI
(c) NEW DELHI (d) NEW-ELHI
9. ø£z-uõß Dictionary &À vÓ-Ä-÷PõÀ-PÒ Gu-ÚõÀ SÔ¨-¤-h¨-£-k-Qß-ÓÚ.
(A) ; (B) = (C) : (D) +
The keys in Python dictionary is specified by :
(a) ; (b) = (c) : (d) +
10. CÚU-SÊ EÖ¨-¦-PÒ G¢u ö\¯Ø-S-Ô-°ß ‰»® Aq-P¨-£-k-Q-Óx ?
(A) . (B) & (C) % (D) #
Class members are accessed through which operator ?
(a) . (b) & (c) % (d) #
11. SELECT TØ-ÖUS £¯ß-£-k® ]ß-Ú-® Gx ?
(A) Ω (B) σ (C) π (D) ×
What symbol is used for SELECT statement ?
(a) Ω (b) σ (c) π (d) ×
Page 6
5 3323 (NS)
12. Am-h-Á-ønø¯ }UP £¯ß-£-kzu ÷Ás-i¯ Pm-høÍ :
(A) DROP (B) ALTER TABLE
(C) DELETE (D) DELETE ALL
The command to delete a table is :
(a) DROP (b) ALTER TABLE
(c) DELETE (d) DELETE ALL
13. CSV ÷Põ¨-£õ-Úx ¤ß-Á-¸-Á-Ú-ÁØ-ÖÒ GÆ-ÁõÖ AøÇU-P¨-£m-kÒÍx ?
(A) Random File (B) String File
(C) 3D File (D) Flat File
A CSV file is also known as a :
(a) Random File (b) String File
(c) 3D File (d) Flat File
14. ø£z-uõß ©Ø-Ö® C++ {µÀ-PøÍ Cøh-•-P¨-£-kz-x-Á-uØ-PõÚ Pm-h-ø©¨¦ :
(A) Ctypes (B) Boost (C) SWIG (D) Cython
A framework for interfacing Python and C++ is :
(a) Ctypes (b) Boost (c) SWIG (d) Cython
15. ¤ß-Á-¸-Á-Ú-ÁØ-ÔÀ Gx J¸[-Q-ønU-P¨-£mh uµ-Ä-P-Îß öuõ-S¨-£õ-S® ?
(A) £v-Ä-PÒ (B) uP-ÁÀ
(C) DBMS (D) uµ-Äz-uÍ®
Which of the following is an organized collection of data ?
(a) Records (b) Information
(c) DBMS (d) Database
[ v¸¨¦P/Turn over
Page 7
3323 (NS) 6
£Sv & II / PART - II
SÔ¨¦ : H÷uÝ® 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. Pair Gß-ÓõÀ GßÚ ? Gkz-xU-Põmk u¸-P.
What is a Pair ? Give an example.
17. Namespaces ]Ö SÔ¨¦ Áøµ-P.
What do you mean by Namespaces ?
18. ö|Ô-•øÓ Gß-ÓõÀ GßÚ ?
What is an Algorithm ?
19. range( ) ö\¯Ø-TÖ SÔ¨¦ Áøµ-P.
Write note on range( ) in loop.
20. SQL Pm-h-øÍ-P-Îß ö£õ-x¨¤›-Ä-PøÍ GÊ-x-P.
Write categories of SQL commands.
21. ›-ÁõU-P® u¸-P : (i) SWIG (ii) MinGW
Write the expansion of : (i) SWIG (ii) MinGW
22. ¦»zøu “INTEGER PRIMARY KEY” GÚ AÔ-¨-£-uß |ßø© GßÚ ?
What is the advantage of declaring a column as “INTEGER PRIMARY KEY” ?
23. uµÄ Põm-]¨-£-kz-x-uÀ ÁøP-ø¯ £m-i-¯-¼-k-P.
List the general types of data visualization.
Page 8
7 3323 (NS)
24. R÷Ç öPõ-kU-P¨-£m-kÒÍ ø£z-uõß {µ-¼ß öÁÎ-±k ¯õx ?
str=“COMPUTER SCIENCE”
(A) print(str*2) (-B) print(str[0 : 7])
What will be the output of the given Python program ?
str=“COMPUTER SCIENCE”
(a) print(str*2) (b) print(str[0 : 7])
£Sv & III / PART - III
SÔ¨¦ : H÷uÝ® BÖ ÂÚõUPÐUS Âøh¯ÎUPÄ®. ÂÚõ Gs 33 &US
Psi¨£õP Âøh¯ÎUPÄ®. 6x3=18
Note : Answer any six questions. Question No. 33 is compulsory.
25. pure ©Ø-Ö® impure ö\¯Ø-TØøÓ ÷ÁÖ-£-kz-x-P.
Differentiate pure and impure function.
26. Asymptotic SÔ-±-k & SÔ¨¦ Áøµ-P.
Write a note on Asymptotic notation.
27. •®© ö\¯Ø-S-Ôø¯ Gkz-xU-Põm-k-hß GÊ-x-P.
Explain Ternary operator with example.
28. uØ-_-ÇØ] GÆ-ÁõÖ ö\¯À-£-k-Q-Óx ?
How recursive function works ?
29. ¤ß-Á-¸® SÔ-•-øÓ-°ß öÁÎ-±-k GßÚ ?
list=[3 * * x for x in range(5)]
print(list)
What will be the output of the following code ?
list=[3 * * x for x in range(5)]
print(list)
[ v¸¨¦P/Turn over
Page 9
3323 (NS) 8
30. SQL &À EÒÍ TCL Pm-h-øÍ-PøÍ £ØÔ ]Ö SÔ¨¦ Áøµ-P.
Write short notes on TCL commands in SQL.
31. reader( ) ©Ø-Ö® DictReader( ) ö\¯Ø-TØ-Ôß ÷ÁÖ-£õk GßÚ ?
What is the difference between reader( ) and DictReader( ) function ?
32. fetchone( ) ©Ø-Ö® fetchmany( ) ÷ÁÖ-£-kz-x-P.
Mention the difference between fetchone( ) and fetchmany( ).
33. ¤ß-Á-¸® {µ-¼ß öÁÎ-±k GßÚ ?
class Hosting:
def__init__(self,name):
self.__name=name
def display(self):
print(“Welcome to”,self.__name)
obj=Hosting(“Python Programming”)
obj.display( )
Write the output of the following program.
class Hosting:
def__init__(self,name):
self.__name=name
def display(self):
print(“Welcome to”,self.__name)
obj=Hosting(“Python Programming”)
obj.display( )
Page 10
9 3323 (NS)
£Sv & IV / PART - IV
SÔ¨¦ : AøÚzx ÂÚõUPÐUS® Âøh¯ÎUPÄ®. 5x5=25
Note : Answer all the questions.
34. (A) Á›ø\•øÓ ÷uhÀ ö|Ô•øÓø¯ GkzxUPõm-khß ÂÁõvUPÄ®.
AÀ»x
(B) input( ) ©Ø-Ö® print( ) ö\¯Ø-T-Ö-PøÍ Gkz-xU-Põm-k-hß ÂÁ-›U-P-Ä®.
(a) Discuss about Linear Search algorithm with example.
OR
(b) Explain input( ) and print( ) functions with example.
35. (A) (i) AøÚzx ‰ßÖ C»UP Cµm-øh¨£øh GsPøÍ öÁΰkÁuØPõÚ
{µ-ø» GÊ-x-P.
(ii) ¤ß-Á-¸-® {µ-¾US öÁÎ-±k GÊ-xP.
i=1
while(i<=6):
for j in range(1, i):
print(j, end=‘\t’)
print(end=‘\n’)
i+=1
AÀ»x
(B) ¤ß-Á-¸® EÒ-Î-øn¢u ö\¯Ø-T-Ö-PøÍ ÂÍU-S-P.
(i) id( ) (ii) chr( ) (iii) round( )
(iv) type( ) (v) pow( )
(a) (i) Write a program to display all 3 digit even numbers.
(ii) Write the output for the following program.
i=1
while(i<=6):
for j in range(1, i):
print(j, end=‘\t’)
print(end=‘\n’)
i+=1
OR
(b) Explain the following built-in functions :
(i) id( ) (ii) chr( ) (iii) round( )
(iv) type( ) (v) pow( )
[ v¸¨¦P/Turn over
Page 11
3323 (NS) 10
36. (A) ¤ß-Á-¸® ø£z-uõß Pm-h-øÍ-P-Îß öÁÎ-±møh GÊ-x-P.
str1=''Welcome to Python''
(i) print(str1)
(ii) print(str1[11 : 17])
(iii) print(str1[11 : 17 : 2])
(iv) print(str1[: : 4])
(v) print(str1[: : −4])
AÀ»x
(B) ø£zuõÛÀ BUQ ©ØÖ® AȨ¤PøÍ GÆÁõÖ Áøµ¯Ö¨£õ´ ?
Gkz-xU-Põm-k-hß ÂÁ-›U-P-Ä®.
(a) Write the output for the following Python commands :
str1=''Welcome to Python''
(i) print(str1)
(ii) print(str1[11 : 17])
(iii) print(str1[11 : 17 : 2])
(iv) print(str1[: : 4])
(v) print(str1[: : −4])
OR
(b) How to define constructor and destructor in Python ? Explain with example.
37. (A) ø£z- u õ- Û - ¾ ÒÍ £À- ÷ ÁÖ set ö\¯À- £ õ- k - P øÍ ö£õ- ¸ z- u - © õÚ
Gkz-xU-Põm-k-P-Ð-hß ÂÍU-S-P.
AÀ»x
(B) DBMS ©Ø-Ö® RDBMS ÷ÁÖ-£-kz-x-P.
(a) Explain the different set operations supported by Python with suitable example.
OR
(b) Differentiate DBMS and RDBMS.
Page 12
11 3323 (NS)
38. (A) £o-¯õͺ-P-ÐUS H÷u-Ý® I¢x ¦»[-PøÍU öPõsh Kº Am-h-Áøn
E¸-ÁõUP J¸ SQL TØ-ÔøÚ GÊv, A¢u £o-¯õͺ Am-h-Á-ønUS
Kº Am-h-Áøn Pm-k¨-£õmøh E¸-ÁõU-P-Ä®.
AÀ»x
(B) C++ «x ø£z-uõß £s-¦U-T-Ö-PøÍ £ØÔ GÊ-x-P.
(a) Write a SQL statement to create a table for employee having any five fields and
create a table constraint for the employee table.
OR
(b) Write the features of Python over C++.
-oOo-
[ v¸¨¦P/Turn over