0% found this document useful (0 votes)
23 views3 pages

Section - A Choose The Correct Answer:-15 X 1 15

Uploaded by

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

Section - A Choose The Correct Answer:-15 X 1 15

Uploaded by

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

Section – A

Choose the correct Answer:- 15 x 1 = 15


1. The variables in a function definition are called as
(A) Subroutines (B) Function (C) Definition (D) Parameters
2. The data type whose representation is known are called
(A) Built in datatype (B) Derived datatype
(C) Concrete datatype (D) Abstract datatype
3. This symbol is used to print more than one item on a single line.
A) Semicolon(;) B) Dollor($) C) comma(,) D) Colon(:)
4. What plays a vital role in Python programming?
A) Statements B) Control C) Structure D) Indentation
5. While defining a function which of the following symbol is used.
(a) ; (semicolon) (b) . (dot) (c) : (colon) (d) $ (dollar)
6. What is stride?
(a) index value of slide operation (b) first argument of slice operation
(c) second argument of slice operation (d) third argument of slice operation
7. A private class variable is prefixed with
(a) __ (b) && (c) ## (d) **
8. The expansion of CRLF is
(A) Control Return and Line Feed (B) Carriage Return and Form Feed
(C) Control Router and Line Feed (D) Carriage Return and Line Feed
9. All functions are __________ definitions.
A. Static B. Dynamic C. Algorithmic D. None
10. List can also be called as
A. Functions B. Class C. Structure D. Pairs
11. Which of the following is not a type of arguments used to call a function?
A. Required B. Keywords C. Default D. Module
12. Which part of the loop is not executed if a loop is left by break?
A. If B. Else C. Break D. For

13. Range (30, 3 -3) – will start the range of values from ______ and end at _______
A. 30,3 B. 30,-3 C. 30,6 D. 30,0
14. In Python, the class method must name the first argument named as ______
A. this B. new C. self D. var
15. CSV dictreader ( ) works with
A. List B. Tuple C. Set D. Dictionary

Section-B
Answer any 6 of the following questions: 6 x 2 = 12
Q.No. 22 is compulsory
16. Differentiate interface and implementation.
17. What is abstract data type?
18. Write short notes on Exponent data?
19. Define control structure.
20. What is base condition in recursive function.
21. What is slicing?
22. What is instantiation?
23. What is use of next() function?
Section-C
Answer any 6 of the following questions: 6 x 3 = 18
Q.No. 31 is compulsory.
24. Differentiate pure and impure function.
25. Identify Which of the following are List, Tuple and class ?
(a) arr= [1, 2, 34] (b) arr= (1, 2, 34) (c) student= [rno, name, mark]
(d) day= (‘sun’, ‘mon’, ‘tue’, ‘wed’) (e) x= [2, 5, 6.5, [5, 6], 8.2]
(f) employee [eno, ename, esal, eaddress]
26. Explain Ternary operator with examples.
27. Write the syntax of while loop.
28. Differentiate ceil() and floor() function?
29. Write a short about the followings with suitable example:
(a) capitalize( ) (b) swapcase( )
30. What are class members? How do you define it?
31. What is the difference between reader() and DictReader() function?

Section-D
Answer the following in Detail:- 5 x 5 = 25

31. Identify in the following program


let rec gcd a b := if b <> 0

then gcd b (a mod b) else return a

i) Name of the function

ii) Identify the statement which tells it is a recursive function

iii) Name of the argument variable

iv) Statement which invoke the function recursively

v) Statement which terminates the recursion

(or)
What are called Parameters and write a note on
(i) Parameter without Type (ii) Parameter with Type

32. How will you facilitate data abstraction. Explain it with suitable example
(or)
Explain input() and print() functions with examples.

33. Write a detail note on for loop


(or)
Explain the scope of variables with an example.

34. Explain about string operators in python with suitable example.


(or)
Explain about constructors and destructors.

35. Differentiate Excel file and CSV file.


(or)
Tabulate the different mode with its meaning.

*****

You might also like