0% found this document useful (0 votes)
28 views5 pages

PS Xii CSC

This document is a revision test for Class XII Computer Science at Pole Star Mat. Hr. Sec. School, consisting of multiple-choice questions, short answer questions, and detailed questions covering various topics in Python and database management. The test is structured into four parts with a total of 70 marks and includes questions on functions, data types, SQL, and data visualization.

Uploaded by

rnarasimhan265
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)
28 views5 pages

PS Xii CSC

This document is a revision test for Class XII Computer Science at Pole Star Mat. Hr. Sec. School, consisting of multiple-choice questions, short answer questions, and detailed questions covering various topics in Python and database management. The test is structured into four parts with a total of 70 marks and includes questions on functions, data types, SQL, and data visualization.

Uploaded by

rnarasimhan265
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/ 5

POLE STAR MAT. HR. SEC.

SCHOOL
NANMANGALAM, CHENNAI-129
REVISION TEST – I – JAN’25 MARKS:70
STD: XII COMPUTER SCIENCE TIME: 3.00 HRS
PART – I
CHOOSE THE CORRECT ANSWER: 15×1=15
1. The variable in a function definition are called as
A) Subroutines B) Function C) Definition D) Parameters
2. Which of the following functions that retrieve information from the data type?
A) Constructor B) Selectors C) Recursive D) Nested
3. Which scope refers in variables defined in current function?
A) Local Scope B) Global Scope C) Module Scope D) Function Scope
4. For i in range (2, 10, 2)
Print(i, end=’ ‘)
Find the output
A) 2 4 6 8 B) 8 6 4 2 C) 2 10 2 D) 2 2 2 5.
5. Find the output:
MyList = [25, 85, 15, 98]
print min(MyList)
A) 25 B) 85 C) 15 D) 98
6. The positive subscript is assigned to the first character is
A) 0 B) 1 C) n D) n–1
7. What is the use of type() function in Python?
A) To create a Tuple B) To known the type of an element in tuple C) To know the
data type of python object D) To create a list
8. The keys in Python, dictionary is specified by
A) = B) ; C) + D) :
9. Expansion of DBMS:
A) Database Management System B) Database Memory System
C) Database Model System D) Database Management Services
10. Which is a database management system?
A) SQL B) MYSQL C) DDL D) DML
11. Which of the following module is provided by Python to do several operations on
the CSV files?
A) py B) xls C) csv D) os
12. Which is an organized collection of data?
A) Database B) Sheadsheet C) SQL D) DBMS
13. A framework for interfacing Python and C++ is
A) Ctypes B) SWIG C) Cython D) Boost
14. Which of the following is called the master table?
A) sqlite_master B) sql_master C) main_master D) master_main
15. Which is a python package used for 2D graphics?
A) matplotlib.pyplot B) matplotlib.pip C) matplotlib.numpy D) matplotlib.plt
PART – II
Answer any six questions.
Question No. 21 is compulsory. 6×2=12
16. What do you mean by Namespaces?
17. What is Searching? Write its types.
18. Define Operator and Operand.
19. What are the types of looping supported by Python?
20. What is the use of the operator += in Python string operation?
21. What will be the output of the following Snippet?
alpha = list(range(65, 70))
for x in alpha:
print(chr(x), end=’\t’)
22. What is the use of WHERE clause in SQL?
23. What are the steps involved in file operation of Python?
24. Distinguish compiler and interpreter.
PART – III
Answer any six questions.
Question No. 21 is compulsory. 6×3=18
25. Why strlen is called pure function?
26. Which strategy is used for program designing? Define the strategy.
27. Which jump statement is used as placeholder? Why?
28. What are the points to be noted while defining a function?
29. Write a Python code to display the following chart.

30. What is the output of the following program?


class Greeting:
def__init__(self, name):
self.__name = name
def display(self):
print(“Good Morning”, self.__name)
obj=Greeting(‘Tamil Nadu’)
obj.display()
31. Explain Cartesian product with a suitable example.
32. Write a short note on: i) fetchall () ii) fetchone() iii) fetchmany
33. Write any three uses of data visualization.
PART – IV
Answer all the questions. 5×5=25
34. a) Write any five benefits in using modular programming. (OR)
b) Explain input() and print() functions of Python with example.
35. a) Write a detail note on for loop in Python. (OR)
b) Explain the different types of functions in Python with example.
36. a) Explain about the find() function in Python with example. (OR)
b) Compare remove(), pop() and clear() function in Python.
37. a) Explain the components of DBMS. (OR)
b) What are the components of SQL? Write the commands in each.
38. a) Explain the following operators in Relational Algebra with suitable example:
1) Union. (U) 2) Intersection (n) (OR)
b) Draw the output for the following data visualization plot.
import matplotlib.pyplot as plt
plt.bar([2,4,6,8,10],[5,2,7,8,2],label=“Example one”)
plt.bar([1,3,5,7,9],[8,6,2,5,6],label=“Example two”,
color=’g’)
plt.legend()
plt.xlabel(‘bar number’)
plt.ylabel(‘bar height’)
plt.title(‘Epic Graph\nAnother Line’)
plt.show()

You might also like