0% found this document useful (0 votes)
19 views2 pages

12 Cs-Half Yearly-2

This document is an examination paper for Computer Science for students at Zigma Matric Hr. Sec. School, detailing instructions, question formats, and topics covered. It includes multiple-choice questions, short answer questions, and programming tasks related to Python and SQL. The exam is structured into four parts, with varying marks allocated for each section.

Uploaded by

Devanathan V
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

12 Cs-Half Yearly-2

This document is an examination paper for Computer Science for students at Zigma Matric Hr. Sec. School, detailing instructions, question formats, and topics covered. It includes multiple-choice questions, short answer questions, and programming tasks related to Python and SQL. The exam is structured into four parts, with varying marks allocated for each section.

Uploaded by

Devanathan V
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ZIGMA MATRIC HR. SEC.

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

Instructions : 7. Which of the following keyword is used to begin


1) Check the question paper for fairness of the function block?
printing. If there is any lack of fairness, (a) define (b) def
inform the Hall Supervisor immediately. (c) finally (d) for
2) Use Blue or Black ink to write and underline 8. In Python, which operator is used to display a
and pencil to draw diagrams string in multiple number of times?
PART - I (a) * (multiplication) (b) + (addition)
Note : (i) Answer all the questions.  (c) –(subtraction) (d) / (division)
(ii) Choose the most appropriate answer from 9. Marks = [20, 40, 60, 80, 100]
the given four alternatives and write print(Marks[–2])
the option code and the corresponding
What will be the outpur?
answer. [15 × 1 = 15]
(a) 60 (b) 100 (c) 40 (d) 80
1. Which is the basic building block of computer 10. In Python, which of the following class
programs? declaration is correct?
(a) Argument (b) Parameter (a) class class_name : (b) class class_name< >
(c) Subroutine (d) Interface (c) class class_name (d) class class_name[ ]
2. Which functions build the abstract data type? 11. The Relational Database model was first
(a) Constructors (b) Data proposed by :

(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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy