12 Cs-Half Yearly-2
12 Cs-Half Yearly-2
SCHOOL
VEERABATHRA NAGAR, MEDAVAKKAM, CH-100
12
COMMON HALF YEARLY EXAMINATION DEC-2022
th
in n
Reg. No. ips.ps.i
SESt Eti
STD
Time Allowed : 3.00 Hours] COMPUTER SCIENCE
SEt
ips.
in
tips
.in
[Maximum
E Marks
s.in
Etip : 70
CBS CBS
(c) List (d) Tuple (a) C.D. Darween (b) Chris Date
(c) E.F. Codd (d) Hugh Darween
3. The process of binding a varible name with an
12. Which is a Data Control Language command in SQL?
object is called :
(a) Alter (b) Grant
(a) Scope (b) Mapping
(c) Truncate (d) Commit
(c) Namespaces (d) Memory
13. CSV is expanded as :
4. Which one of the following is not a factor to
(a) Comma Separated Values
measure the execution time of an algorithm?
(b) Condition Separated Values
(a) Speed of the machine
(c) Comma Special Values
(b) Operating system
(d) Condition Special Values
(c) Programming language used
(d) Selection 14. Which of the following is not a scripting language?
(a) Ruby (b) DBMS
5. Which key is pressed to execute Python Script?
(c) Perl (d) JavaScript
(a) F5 (b) F2
(c) F1 (d) F3 15. Which SQL function returns the number of
rows in a table?
6. Which statement is used to skip the remaining
(a) SUM( ) (b) MAX( )
part of the loop and start with next iteration?
(c) CHECK( ) (d) COUNT( )
(a) break (b) pass
(c) continue (d) null
PART - II 35. (a) Write the output for the following Python
Answer any six from the following questions. programs.
Question No. 24 is compulsory. 6 × 2 = 12
(i) j = 15
16. List the characteristics of interface.
while(j>=10):
17. What are the characteristics of modules?
print(j, end='\t')
18. What are tokens in Python? List the types. j=j-1
19. What is the use of replace() in Python? Write the else:
general format of replace(). print("\t End of the loop")
20. Write the syntax to create list with suitable (ii) k = 5.
example in Python. while(k<=9):
21. What are the advantages of DBMS? for i in range (1, k):
22. What are the two ways to read a CSV file in print(i, end='\t')
Python? print(end='\n')
23. List the types of visualizations in Matplotlib. k=k+1
24. What are the advantages of user-defined (OR)
functions? (b) Write about the following Python
PART - III string functions.
Answer any six from the following questions. (i) capitalize( ) (ii) swapcase()
Question No. 33 is compulsory. 6 × 3 = 18 (iii) center() (iv) islower()
(v) title()
25. (a) What is selector?
36. (a) Debug the following Python program to get
(b) What are the parts of a program? the given output :
26. Write note on Dynamic Programming. Output :
27. Write the syntax of Nested if..elif...else statement Inside add() function x value is : 10
with example. In main x value is : 10
Program :
28. Write short note on public and private data
x=0
members in Python.
define add :
29. Write note on types of DBMS users. globally x:
30. Write short note on DELETE, TRUNCATE, x = x + 10
DROP command in SQL. Print ("Inside add() function x
value is :")
31. What are the applications of scripting languages?
add
32. Write short note on : (a) GROUP BY (b) ORDER print ("In main x value is :")
BY clause - in SQL. (OR)
33. What will be the output of the given Python (b) What is set in Python? Explain the
following set operations with suitable
program?
example.
a = "Computer" (i) Union, (ii) Intersection, (iii) Difference
b = "Science" 37. (a) Explain about constructors and destructors
x = a[:4] +b[len(b)-3:] in Python with suitable example.
print(x) (OR)
PART - IV (b) Explain the types of data model.
Answer the following questions: 5 × 5 = 25
38. (a) Explain the types of constraints in SQL
34. (a) Explain the types of variable scope. with suitable example.
(OR) (OR)
(b) Explain data types in Python with suitable (b) List the differences between CSV and
example. excel sheets (XLS)file.