0% found this document useful (0 votes)
29 views4 pages

12-CS-EM-Revision 3

This document contains a computer science exam with multiple choice, short answer, and long answer questions. The exam covers topics like variables, abstraction, Python syntax, control structures, data types like lists and tuples, CSV files, and the matplotlib package. It tests knowledge of basic Python concepts like functions, operators, loops, file I/O, and data visualization. The exam is divided into four parts, with Part I containing multiple choice questions, Parts II and III containing short answer questions, and Part IV containing longer answer questions.

Uploaded by

Malathi Raja
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)
29 views4 pages

12-CS-EM-Revision 3

This document contains a computer science exam with multiple choice, short answer, and long answer questions. The exam covers topics like variables, abstraction, Python syntax, control structures, data types like lists and tuples, CSV files, and the matplotlib package. It tests knowledge of basic Python concepts like functions, operators, loops, file I/O, and data visualization. The exam is divided into four parts, with Part I containing multiple choice questions, Parts II and III containing short answer questions, and Part IV containing longer answer questions.

Uploaded by

Malathi Raja
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/ 4

CHENNAI DISTRICT

HIGHER SECONDARY – SECOND YEAR


3rd Revision Examination – May 2021
COMPUTER SCIENCE
Time Allowed: 2.30 Hours] [Maximum Marks: 70
PART – I
Choose the correct answer: 15 × 1 = 15
1. ........... are the basic building blocks of computer programs.
(A) Subroutines (B) Variables (C) Classes (D) Arrays

2. The process of providing only the essentials and hiding the details is known as ……..…
(A) Hiding (B) Abstraction (C) Providing (D) Calling

3. Which of the following is the command prompt symbol of Python?


(A) >> (B) << (C) >>> (D) <<<

4. Which of the following python built-in function is used to display result on the screen?
(A) display( ) (B) show( ) (C) output( ) (D) print( )

5. A program statement that causes a jump of control from one part of the program to another
is called ………..
(A) Control Statements (B) Control Structure
(C) Either (A) or (B) (D) Neither (A) nor (B)

6. ………….. statement allows to execute a statement or group of statements multiple times


(A) Branching (B) Conditional (C) Jumping (D) Loop

7. What is the positive index value of 56 in the list given below?


MyList=[45, 85, 36, 56]
(A) 4 (B) -4 (C) 3 (D) -1

8. The function used to create a tuple from a list


(A) tuple.list( ) (B) list.tuple( ) (C) tuple( ) (D) list( )

9. The elements in a tuple:


(A) can be change (B) cannot be change
(C) can be deleted (D) cannot be deleted

10. The human readable text file where each line has a number of fields, separated by
commas:
(A) txt files (B) py files (C) csv files (D) doc file

1
11. The file extension of Excel:
(A) exl (B) xls (C) cel (D) Ecl

12. C++ is a:
(A) Programming language (B) Scripting language
(C) Glue language (D) B or C

13. What does __name__ contains ?


(A) C++ filename (B) main( ) name
(C) Python filename (D) OS module name

14. Which is a python package used for 2D graphics?


(A) matplotlib.pyplot (B) matplotlib.pip
(C) matplotlib.numpy (D) matplotlib.plt

15. Identify the package manager for Python packages, or modules.


(A) Matplotlib (B) PIP (C) plt.show( ) (D) python package

PART – II
Answer any six questions.
Question No. 19 is compulsory. 6 × 2 = 12

16. Differentiate Parameters and Arguments


17. What is the use of constructor and selector?
18. List the normal token types of python.
19. What are the types of looping constructs used in Python?
20. Write down the syntax of for loop of Python
21. What is List in Python?
22. What is set in Python?
23. Mention the two ways to read a CSV file using Python.
24. Write the expansion of (i) SWIG (ii) MinGW

2
PART – III
Answer any six questions.
Question No. 29 is compulsory. 6 × 3 = 18
25. Answer to the following questions with the help of the function given below:
let rec pow (a: int) (b: int) : int :=
if b=0 then 1
else a * pow a (b-1)
(a) What is the name assigned to this function?
(b) What are the parameters defined to this function?
(c) What type of function is this?

26. Differentiate division, modulus and floor division operators of Python


27. Explain ternary operator with examples.
28. List the difference between break and continue statement.
29. What will be the output of the following python code?
x=20
while(x >= 5):
print (x, end='\t')
x-=5

30. What are the advantages of Tuples over a list?


31. Write a short note on pop( ) function in Python.
32. What is the difference between reader() and DictReader() function?
33. What will be the output of the following python code?
import matplotlib.pyplot as plt
plt.plot([1,2,3,4], [1,4,9,16])
plt.show( )

PART – IV
Answer all the questions. 5 × 5 = 25
34. Explain the types of parameters with suitable example annotations.
(OR)
Explain about the input( ) and print( ) functions in python with suitable example.

35. Write a short note on (i) Relational Operators (iii) Logical Operators.
(OR)
Explain about the while loop of python with suitable example.

36. Explain about the range( ) function of Python with suitable example.
(OR)
Explain the different set operations supported by python with suitable example.

3
37. Compare remove( ), pop( ) and clear( ) function in Python.
(OR)
Differentiate Excel file and CSV file.

38. Write the syntax for getopt( ) and explain its arguments and return values.
(OR)
What will be the output of the following python code?
import matplotlib.pyplot as plt
x = [1,2,3]
y = [5,7,4]
x2 = [1,2,3]
y2 = [10,14,12]
plt.plot(x, y, label='Line 1')
plt.plot(x2, y2, label='Line 2')
plt.xlabel('X-Axis')
plt.ylabel('Y-Axis')
plt.title('LINE GRAPH')
plt.legend( )
plt.show( )

*****

You might also like