You are on page 1of 5

KNOWLEDGE OPENING & KNOWLEDGE TRANSFORMATION

CS KNOWLEDGE OPENER
MODEL QUESTION PAPER-2023
STD: XII MAX.MARKS: 70
SUB: COMPUTER SCIENCE TIME: 3.00Hrs
---------------------------------------------------------------------------------------------------------------------------------------
PART – I
Note : (i) Answer all the questions. 15x1=15
(ii) Choose the most appropriate answer from the given four alternatives and write the option
code and the corresponding answer.
1. newpKiwapd; Neu nray;jpwid mstpLtjw;F gpd;tUtdtw;Ws; vJ xU fhuzp my;y?
(m) ,ae;jpuj;jpd; Ntfk; (M) ,af;f mikg;G
(,) gad;gLj;jg;gl;l epuyhf;f nkhop (<) Njh;e;njLg;G
Which one of the following is not a factor to measure the execution time of an algorithm?
a) Speed of the machine b) Operating system c) Programming language used d) Selection
2. ெசயற் �� வைரயைறக்� அ�ப்பப்ப�ம் ம�ப்�கள் எவ் வா� அைழக்கப்ப��ற�?

(அ) ெசய���கள் (ஆ) �ைணநிரல் கள் (இ) ெசயற் �� (ஈ) ெசயற் ��

The values which are passed to a function definition are called


(a) Arguments (b) Subroutines (c) Function (d) Definition
3.�ன் வ�வனவற் �ள் எ� நிரலாக்க ெமா��ல் மா�ைய�ம் ெபா�ைள�ம் ேமப் ெசய் யப்

பயன் ப��ற�?

(அ) :: (ஆ) := (இ) = (ஈ) ==


Which of the following is used in programming languages to map the variable and object?
(a) :: (b) := (c) = (d) ==
4. ைபத்தாைன உ�வாக்�யவர் யார்?

அ) ரிட்� ஆ) ைகேடா வான் ம் இ) �ல் ேகட்ஸ் ஈ) �ந் தர் �ச்ைச

Who developed Python ?


a) Ritche b) Guido Van Rossum c) Bill Gates d) Sunder Pitchai
5. testpython() ெசயற் �ைற வைரய�க்க �ன் வ�ம் எந்த �றப்�ச் ெசால் பயன் ப��ற�?
(அ) define (ஆ) pass (இ) def (ஈ) while
Which of the following keyword is used to define the function testpython(): ?
(a) define (b) pass (c) def (d) while
6. �ன் வ�ம் ைபத்தான் ���ைற�ன் �ைட என் ன?
S=[x**2 for x in range(5)]
print(S)
(a) [0,1,2,4,5] (b) [0,1,4,9,16] (c) [0,1,4,9,16,25] (d) [1,4,9,16,25]
What will be the result of the following Python code?
S=[x**2 for x in range(5)]
print(S)
(a) [0,1,2,4,5] (b) [0,1,4,9,16] (c) [0,1,4,9,16,25] (d) [1,4,9,16,25

1 Visit :http://csknowledgeopener.com CS KNOWLEDGE OPENER


KNOWLEDGE OPENING & KNOWLEDGE TRANSFORMATION

7. �ன் வ�வனவற் �ல் எ� பல் உ�ப்� ெபா�ளின் பல் ேவ� ப��கைள ெபயரிட அ�ம�க்�ற�?

(அ) Tuples (ஆ) Lists (இ) Classes (ஈ) quadrats


Which of the following allow to name the various parts of a multi-item object?
(A) Tuples (B) Lists (C) Classes (D) quadrats

8. ,tw;Ws; எ� xU scripting nkhopay;y?


m) &gP M) DBMS ,) ngh;y; <) [hth];fphpg;l;
Which of the following is not a scripting language?
a) Ruby b) DBMS c) Perl d) Javascript
9. ��� வரிைசயாக்கத்�ன் �கச் �றந் த நிைல�ல் அதன் ேநர �க்கல் தன் ைம
(அ) θ (n) (ஆ) θ (nlogn) (இ) θ (n2) (ஈ) θ (n(logn) 2)

Time complexity of bubble sort in best case is


(a) θ (n) (b) θ (nlogn) (c) θ (n2) (d) θ (n(logn) 2)
10. �ன் வ�ம் ���ைற�ன் ெவளி�� என் ன?
i=1
while True:
if i%3 ==0:
break
print(i,end='')
i +=1
அ) 1 2 ஆ) 123 இ) 1234 ஈ) 124
What is the output of the following snippet?
i=1
while True:
if i%3 ==0:
break
print(i,end='')
i +=1
A) 1 2 B) 123 C) 1234 D) 124

11. �ன் வ�ம் வ�வைமப்� ����க்க�ள் அ�க்� ���ட்�ல் அச்�ட உத�ம் ேமல் எ�த்� எ�?

(அ) %e (ஆ) %E (இ) %g (ஈ) %n


Which of the following formatting character is used to print exponential notation in upper case?
(a) %e (b) %E (c) %g (d) %n
12. �ன் வ�வனவற் �ள் எந்த இனக்�� அ��ப்� சரியான�?

(அ) class class_name (ஆ) class class_name<> (இ) class class_name: (ஈ) class class_name[ ]
Which of the following class declaration is correct?
(a) class class_name (b) class class_name<> (c) class class_name: (d) class class_name[ ]

13. Marks = [20, 40, 60, 80, 100]


Print(Marks[-2])
,jd; ntspaPL vd;d?
அ) 60 ஆ) 100 இ) 40 ஈ) 80
Marks = [20, 40, 60, 80, 100]
2 Visit :http://csknowledgeopener.com CS KNOWLEDGE OPENER
KNOWLEDGE OPENING & KNOWLEDGE TRANSFORMATION

Print(Marks[-2])
What will be the output?
a) 60 b) 100 c) 40 d) 80
14. ,tw;Ws; VJ SQL juT fl;Lg;ghl;L nkhopapd; fl;lisahFk;
அ) Alter ஆ) Grant இ) Truncate ஈ) Commit
Which is a Data Control Language command in SQL?
a) Alter b) Grant c) Truncate d) Commit

15. gpd;tUk; nraw;$w;iw kjPg;gPL mjd; ntspaPl;il vOJf.


x= 26.7
print(math.floor(x))
a) 25 b) 26 c) 27 d) 26.7
Evaluate the following function and write the output.
x= 26.7
print(math.floor(x))
a) 25 b) 26 c) 27 d) 26.7

PART – II
Note : Answer any Six questions. Question No. 24 is compulsory. 6 × 2= 12
16. நிரலாக்க ெமா�ையப் ெபா�த்� ெசயற் ��ைவ வைரய�க்க�ம் .
Define Function with respect to Programming language.
17.igj;jhdpy; replace () gad; ahJ? replace () njhlhpaiy vOJf
What is the use of replace () in python? Write the general format of replace ()
18. ெசயற் ���ன் �க்�ய நன் ைமகள் யாைவ?
What are the main advantages of function?
19. தர� நிைலத்தன் ைம என் றால் என் ன?
What is data consistency?
20. next() ெசயற் ��ன் பயன் பா� என் ன?
What is use of next() function?
21. �ஸ்ேடாக்ராம் vd;why; vd;d?
What is histogram?
22. �ஸ்�ல் �ங் �ங் vd;why; vd;d?
Write note on wishful thinking.
23. �ங் �ள் டன் vd;why; vd;d?
What is singleton tuple?
24. xU ,dFOtpd; nghUis cUthf;Ftjw;fhd njhlupay; vOJf.
Write the syntax for creating objects.

PART – III
Note : Answer any Six questions. Question No. 33 is compulsory. 6 × 3= 18
25. Asymptotic ����-��ப்� வைரக.
Write a note on Asymptotic notation.
26. �ன் வ�பவனவற் ைற பற் � த�ந்த எ�த்�க்காட்�டன் ��ப்� வைரக.
(அ) capitalize( ) (ஆ) swapcase( )
Write a short about the followings with suitable example: (a) capitalize( ) (b) swapcase( )
27. Savepoint கட்டைள�ன் பயன் பாட்ைட ஒ� எ�த்�க்காட்�டன் எ��க.
Write the use of Savepoint command with an example.
28. MinGW என் றால் என் ன? அதன் பயன் யா�?
What is MinGW? What is its use?

3 Visit :http://csknowledgeopener.com CS KNOWLEDGE OPENER


KNOWLEDGE OPENING & KNOWLEDGE TRANSFORMATION

29. fetchone( ) மற் �ம் fetchmany( ) ேவ�ப�த்�க.


Mention the difference between fetchone() and fetchmany()
30. மா�ம் நீ ள ெசய���கள் vd;why; vd;d? vLj;Jfhl;L vOJf
What is variable-length arguments? Give an example.
31.CSV-ன் Reader ெசயற் ��
Write about CSV module’s reader() function.
32. ைபத்தான் ��ப்�ைர gw;wp vOJf
Write note on comments in python.
33. nfhLf;fgl;Ls;;s igj;jhd; epuypd; ntspaPl;il vOJf
N=[ ]
for x in range(1,11):
N.append(x)
Num=tuple(N)
print(Num)
for index, i in enumerate(N):
if(i%2==1):
del N[index]
print(N)

What will be the output of the following python program?


N=[]
for x in range(1,11):
N.append(x)
Num=tuple(N)
print(Num)
for index, i in enumerate(N):
if(i%2==1):
del N[index]
print(N)
PART – IV
Note : Answer all the qeustions 5 × 5= 25
34. (அ) ெதா��களின் ஐந்� பண்�யல் �கைள எ��க?

my;yJ
(ஆ) ��� வரிைசயாக்க ெந��ைறைய எ�த்�க்காட்�டன் �ளக்�க.
(a) Write any Five Characteristics of Modules.
OR
(b) Explain the Bubble sort algorithm with example.
35. (அ) ைபத்தானி�ள் ள பல் ேவ� set ெசயல் பா�கைள ெபா�த்தமான எ�த்�க் காட்�க�டன்
�ளக்�க.
my;yJ
(ஆ) ஓர் அட்டவைண�ல் �ன் வ�ம் SQL �ற் �கைள கட்டைமக்க�ம் .
(i) SELECT �ற் � GROUP BY clause பயன் ப�த்�:
(ii) SELECT �ற் � ORDER BY clause பயன் ப�த்�
(a) Explain the different set operations supported by python with suitable example.
OR
(b) Construct the following SQL statements in the student table:
(i) SELECT statement using GROUP BY clause.
(ii) SELECT statement using ORDER BY clause.

4 Visit :http://csknowledgeopener.com CS KNOWLEDGE OPENER


KNOWLEDGE OPENING & KNOWLEDGE TRANSFORMATION

36. (அ) ைபத்தானில் , sys,os,getopt ��நிைலகளின் ேதைவ என் ன என் பைத �ளக்�க.
my;yJ
(ஆ) CSV ேகாப்��ள் ள தரைவ வ�வைமப்பதற் � �ன் பற் ற ேவண்�ய ���ைறகைள எ��க.
(a) What is the purpose of sys, os, getopt module in Python. Explain
OR
(b) Write the rules to be followed to format the data in a CSV file
37. (அ) C++ kPJ igj;jhd; gz;Gf;$Wfis gw;wp vOJf.
my;yJ
(ஆ) gzpahsh;fSf;F VNjDk; Ie;J Gyq;fisf; nfhz;l Xh; ml;ltiz cUthf;f xU $w;wpid vOjp
me;j gzpahsh; ml;ltizf;F Xh; ml;ltiz fl;Lg;ghl;il cUthf;fTk;
(a) Write the features of python over C++.
OR
(b) Write a SQL statement to create a table for employee having any five fields and create a table
constraint for the employee table.
38. (அ)DBMS-ன் ��கள் tpthp.
my;yJ
(ஆ) nfhLf;fgl;Ls;;s igj;jhd; epuypd; ntspaPl;il vOJf
class Sample:
num=0
def __init__(self, var):
Sample.num+=1
self.var=var
print("The object value is = ", var)
print("The count of object created = ", Sample.num)
S1=Sample(15)
S2=Sample(35)
S3=Sample(45)

(a) Explain the components of DBMS.


OR
(b) Find the output of the following python code.
class Sample:
num=0
def __init__(self, var):
Sample.num+=1
self.var=var
print("The object value is = ", var)
print("The count of object created = ", Sample.num)
S1=Sample(15)
S2=Sample(35)
S3=Sample(45)

5 Visit :http://csknowledgeopener.com CS KNOWLEDGE OPENER

You might also like