You are on page 1of 1

USN 1 S I 3MCA05

Siddaganga Institute of Technology, Tumakuru – 572 103


(An Autonomous Institution affiliated to VTU, Belagavi, Approved by AICTE, New Delhi, An ISO9001:2008 Certified Institution)

Summer Semester Master of Computer Applications Examinations July 2017


Programming with PYTHON
Time: 3 Hours Max. Marks: 100
Note : 1. Question No. 1 is Compulsory
2. Answer any 4 full questions from question No. 2 to Question No. 6

1 a) Differentiate between tuple and list.


b) What is garbage collections?
c) Show the use of triple quote.
d) How does continue statement work in python code.
e) Bring out the difference between method overloading and method overriding.
f) What is exception handling?
g) List out any four built in tuple functions.
h) Explain time module.
i) Name some options used for developing python graphical user interface.
j) Explain any two file object attributes. 2  10

2 a) Explain briefly python’s standard data types with necessary code segments and its outputs. 10
b) Write a python program to check the give number is prime or not. 6
c) How to access values in lists and tuples? 4

3 a) What is method overloading? Differentiate the ways of implementing the same with other
oops language. Write a program to implement method overloading in pythonic way. 10
b) Define class inheritance with an example. 5
c) With syntax, explain import statement. 5

4 a) Explain any 5 built-in methods to manipulate strings. 10


b) Write a python program to determine whether a given year is a leap year. 5
c) Write a python program to check whether a string is palindrome or not. 5

5 a) Differentiate between the except clause with no exceptions, with multiple exceptions and
try-finally clause. 6
b) Write a python program to count frequency of words in a file. 6
c) Explain different modes of opening files. 8

6 a) Write a python graphics program to construct a face from basic shapes. 10


b) Write a python interactive graphics program to draw a triangle according to mouse clicks. 10

________

You might also like