KLE INDEPENDENT PU COLLEGE
NAGARBHAVI, BENGALURU-72
DATE: 20-6-2025 Class: II PUC Total Marks: 70
SUBJECT: COMPUTER SCIENCE (41)-UNIT TEST
PART A
I. Answer all the questions. Each question carries one mark. Choose the correct answer from
the following options. 1*20=20
1. What is exception in python?
a)A syntax error b) A runtime error c) A logical error d) A warning
2. What does try block do in exception handling?
a) Execute code normally b) Catches exceptions
c) Defines exceptions d) Raises an exception
3. Which block executes, no matter whether an exception occurs or not?
a)try b) except c)finally d) else
4. which of the following is correct way to raise the exception?
a) raise TypeError (“Invalid datatype”) b) raise (TypeError, “Invalid datatype”)
c) raise TypeError [“Invalid datatype”] d) raise TypeError, “Invalid datatype”
5. ________Exception occurs when specified module name is not found.
a) AssertionError b) ModuleError c) ImportError d) NameError
6. What statistical technique is most affected by outliners?
a) Mean b) Mode c)Median d) standard deviation
7. What does ‘csv’ stand for?
a) comma separated view b) comma separated values
c) comma separate values d) commonly stored values
8. Median of the data set is [4,15,7,2,8,6,3,9,4,12]
a) 7.5 b) 7 c) 6.5 d) 4
9. Which of the following is not a digital storage device?
a) SSD b) DVD c) DBMS d) HDD
10. What is the primary purpose of collecting data?
a) To decorate web pages b) To store data indefinitely
c) To make decisions based on analysis d) To reduce computer memory usage
11. A snapshot of data at the particular time is called________
a) database schema b) database constraint c) database instance d)database model
1
12. A set of fields that uniquely identifies a row is called a ________
a) key b)query c)schema d)domain
13. A candidate key which is not a primary key is called____
a)foreign key b)composite key c) secondary key d)reference key
14. Which operation is not considered as a part of data manipulation?
a) Insert b) Creation c) Update d)Delete
15. A tuple is a ______
a) column b) data file c) attribute d) row
II. Fill in the blanks choosing the appropriate words from those given in the bracket.
( redundancy , table , call stack, meta data, else)
16. The _____clause in python is executed only if the try block completes successfully without
any exceptions.
17. The python runtime system searches the ______to find an appropriate handler for the raised
exception.
18. The data about data is called ______
19. The structured data is generally stored in a _______format in computers
20. _____refers to repeating the same data in multiple places, leading to wastage of space.
PART B
II. Answer any four questions. Each question carries two marks. 2*4=08
21. What is syntax error? What is other name of syntax error?
22. Define mode, mean in measures of central tendency.
23. Differentiate between degree and cardinality of a relation
24. Expand DBMS. Give an example of DBMS software.
25. Mention two real time applications of data base.
PART C
III. Answer any four questions. Each question carries three marks 3*4=12
26. Briefly explain try-except-else clause with syntax and example.
27. What is ‘assert’ statement in python? Give its syntax and example.
28. Briefly explain different types of data with example.
29. Define primary key, candidate key and foreign key
30. What are three properties of a relation in relational data database?
PART D
Answer any four questions. Each question carries five marks 5*4=20
31. Explain any five built in exceptions.
32. What is exception handling? Give syntax and example of try-except block.
33. Explain data processing cycle
2
34. Explain any five limitations of file system.
35. Define: a) Relation b)Tuple c) Attribute d) Domain e)Data base
PART E
Answer any two questions. Each question carries five marks 5*2=10
36. Explain the steps of handling exceptions.
37. Find the standard deviation of the following set of values :
5,9,10,14,12,14
38. Find the type of data being generated in the following scenarios:
i. Marking attendance by teacher
ii. Recording a video.
Mention the statistical technique is used in the following situations:
iii. Find number of students whose both parents are alumni of this college
iv. Average performance of the whole class in test
v. How varied are the age of parents of the students of college.