12-CS-EM-Revision 3
12-CS-EM-Revision 3
2. The process of providing only the essentials and hiding the details is known as ……..…
(A) Hiding (B) Abstraction (C) Providing (D) Calling
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)
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
PART – II
Answer any six questions.
Question No. 19 is compulsory. 6 × 2 = 12
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?
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( )
*****