23518 C23-CAI-AIM-402/CCB-AI–404
23518
BOARD DIPLOMA EXAMINATION, (C-23)
MARCH/APRIL—2026
COMMON – FOURTH SEMESTER EXAMINATION
PYTHON PROGRAMMING
Time : 3 Hours ] [ Total Marks : 80
PART—A 3×10=30
Instructions : (1) Answer all questions.
(2) Each question carries three marks.
(3) Answers should be brief and straight to the point and shall
not exceed five simple sentences.
1. List membership operators with an example.
2. Write syntax and example of type () function in python.
3. Write a program to print factorial of a given number.
4. Write a function to return true if given string is in uppercase else return
false.
5. Write a code to reverse a string using slicing.
6. Write differences between pop and remove methods in a list.
7. How to join two sets using union()?
8. Difference between ‘r’ and ‘r+’ modes in file handlings.
9. How is a protected variable declared in a class?
10. Write the importance of raise statement in exceptional handling.
/23518 1 [ Contd...
PART—B 10×5=50
Instructions : (1) Answer any five questions.
(2) Each question carries ten marks.
(3) Answers should be comprehensive and criterion for
valuation is the content but not the length of the answer.
11. Explain arithmetic operators and relational operators in python with
examples.
12. Explain input, output statements with examples.
13. Explain break and continue statements with a program.
14. Write a python function to return prime factors for a given number.
15. Write a function to add any number of given values.
16. Write a program to implement list cloning, list aliasing.
17. Explain dictionary methods with suitable examples.
18. Explain method overriding with a suitable example.
/23518 2 AA26/2(291)—PDF