0% found this document useful (0 votes)
38 views1 page

Model Paper cm-505

Uploaded by

pamidi.prameela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

Model Paper cm-505

Uploaded by

pamidi.prameela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

HNDU COLLEGE OF ENGINEERING AND TECHNOLOGY

C20 : PYTHON PROGRAMMING : CM-505

MODEL PAPER

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. Write in brief applications of Python.


2. Explain the importance of pass in python.
3. Write a Python program to read age of citizen and check whether citizen is eligible for voting or not.
4. List different type of arguments in python.
5. Can a python function return multiple values? Explain
6. List methods of python lists.
7. What are the different modes of opening a file in python?
8. List object oriented features supported by python.
9. Explain dictionary comprehension
10. List built in exceptions of python.

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 arithmetic and logical operations.


(OR)
(b) Explain various data types in Python with 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)
(b) Write the Syntax for if-elif-else statement in Python. Write a Python program to read weak number and
print week day (1- Monday, 2-Tuesday,..)
13. (a)
(OR)
(b)
14.(a)
(OR)
(b)
15.(a) Explain method overloading and method overriding.
(OR)
(b) write the steps to create user defined exceptions in python.

You might also like