7639
C20-CM/WD–505
7639
BOARD DIPLOMA EXAMINATION, (C-20)
MARCH/APRIL—2026
COMMON – FIFTH 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
should not exceed five simple sentences.
1. List any three features of Python.
2. Write the Syntax of for loop.
3. Write a Python program to check the given number is positive or not.
4. Write any three differences between local and global variables.
5. What are anonymous functions?
6. Define Python dictionaries.
7. List any three set methods.
8. Define data abstraction in Python.
9. Write the differences between method overloading and overriding.
10. List the operations of a file.
/7639 1 [ Contd...
PART—B 8×5=40
Instructions : (1) Answer all questions.
(2) Each question carries eight marks.
(3) Answers should be comprehensive and the criterion for
valuation is the content but not the length of the answer.
11. (a) Explain various operators in Python with examples.
( OR )
(b) Explain the steps involved in developing and executing a simple
Python program with an example.
12. (a) Write a Python program to check whether the given number is
palindrome or not.
( OR )
(b) Explain various loop statements in Python with examples.
13. (a) Explain function arguments in Python with suitable examples.
( OR )
(b) Explain the concept of variable scope in Python with examples.
14. (a) Explain basic list operations and built-in list functions with examples.
( OR )
(b) Write a program to count the frequency of each character in a given
string using a dictionary.
15. (a) Explain the concept of classes and objects in Python with an example.
( OR )
(b) Explain the use of try, except, finally and raise with examples.
/7639 2 [ Contd...
PART—C 10×1=10
Instructions : (1) Answer the following question.
(2) The question carries ten marks.
(3) Answer should be comprehensive and criterion for valuation
is the content but not the length of the answer.
16. Write a Python program to create a class employee with attributes id,
name and salary.
--Add a method to calculate bonus as 10% of salary.
--Create objects and display details.
/7639 3 AA26/2(291)—PDF