U 217303 Name: .......................................
(Pages: 2) Reg. No. ....................................
THIRD SEMESTER (CBCSS) DEGREE EXAMINATIONS,
NOVEMBER 2021
(Regular / Supplementary / Improvement)
Common Course – B.Sc. Computer Science, B.Sc. Electronics & B.C.A.
A11: Python Programming
Time: 2.5 Hours Max. Marks: 80
I. Answer the following questions in two or three sentences
(Each question carries 2 Marks): (Ceiling 25 Marks)
1. Why is python called an interpreted language?
2. What are statements in python? Give example.
3. What are python identifiers? Give example.
4. What is the purpose of datetime module in python?
5. Explain the purpose, syntax and usage of the built-in tuple method index( ). Ilustrate with
suitable examples.
6. Explain the simple if-elif-else statement in python.
7. What are the different general categories of functions in python?
8. How can you define and access lists in python? Ilustrate with examples.
9. Explain the purpose, syntax and usage of ceil( ) built-in function with an example.
10. How can you remove elements from dictionary? Ilustrate with suitable examples.
11. How can you create a tuple with single element in python? Ilustrate with example.
12. How can you add and remove elements in sets in python?
13. Explain how you can create complex boolean expressions using logical operators.
14. Explain how you can perform multi-way selection in python.
15. Explain the syntax, purpose and usage of the built-in string function capitalize( ) with
suitable examples.
II. Answer the following questions in a paragraph
(Each question carries 5 Marks): (Ceiling 35 Marks)
16. How python accepts user inputs? Explain with example.
17. List and explain various operators available in python.
18. What is meant by scope in python? What is meant by global scope? Illustrate its
significance with suitable example.
19. Describe the syntactic rules and usage of break and continue statements in python.
U 217303
20. Describe the purpose, syntax, usage of atleast five methods of the time module in python.
21. What is meant by scope in python? What is meant by local scope? Illustrate its
significance with suitable example.
22. What are the strings in python? How are strings defined and accessed in python?
23. What is meant by selection statements in python?
III. Write essays on any two of the following: (2 x 10 = 20 Marks)
24. Describe the syntactic rules and usage of while statement in python with example.
25. Describe python’s datatype.
26. What are dictionaries in python? How can you define and access dictionary elements?
Describe different methods of dictionaries in python.
27. Describe different types of arguments in python. Illustrate with examples.