C20 CM WD 505 Julyinst 2023
C20 CM WD 505 Julyinst 2023
C20 CM WD 505 Julyinst 2023
IN
7639
C20-CM-WD–505
*
7639
BOARD DIPLOMA EXAMINATION (Inst.), (C-20)
JULY—2023
DCME – FIFTH SEMESTER EXAMINATION
PYTHON PROGRAMMING
Time : 3 hours ] [ Total Marks : 80
PART—A 3×10=30
PART—B 8×5=40
*
Instructions : (1) Answer all questions.
(2) Each question carries eight marks.
(3) Answers should be comprehensive and criterion for
valuation is the content but not the length of the answer.
11. (a) Explain any four data types of Python with an example.
(OR)
12. (a) Write the syntax for for in loop in Python. Write a Python program
to find the prime numbers between the range 10-100.
(OR)
(OR)
(OR)
(b) Explain sets. Write a Python program to read two sets and display
the union of two sets.
15. (a) Write the syntax for opening and closing a file. Write a Python
program to read a file and print first 4 lines of the file.
(OR)
*
(b) Explain Python classes and objects with a sample Python program.
*
/7639 2 [ Contd...
WWW.COMPETITORSACADEMY.IN
PART—C 10×1=10
*
Instructions : (1) Answer the following question.
(2) The question carries ten marks.
(3) Answer should be comprehensive and the criterion for
valuation is the content but not the length of the answer.
16. (a) What is the error in following code? Rewrite the correct code.
weather = ‘raining’
if weather = ‘sunny’:
Print (‘wear sunblock’)
el if weather = ‘snow’:
Print (‘going skiing’)
else :
Print (“None of the above”)
*
/7639 3 AA23(013)-PDF