Section - A Choose The Correct Answer:-15 X 1 15
Section - A Choose The Correct Answer:-15 X 1 15
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
(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.
*****