Download as pdf
Download as pdf
You are on page 1of 2
Sample Question Paper: Scheme -1 Programme Name: Computer/Information Technology Engineering Programme code: CO/F Semester: VI Sem Course Title: Programming with Python Marks: 70 Instructions: (1) All questions are compulsory. Q) Illustrate your answers with neat sketches wherever necessary, (3) Figures to the right indicate full marks. (4) Assume suitable data if necessary. (5) Preferably, write the answers in Sequential order. Qi. Attempt any FIVE of the following. (10 Marks) a) Name different modes of Python b) List identity operators c) Describe Dictionary 4) State use of namespace in Python ¢) List different Object Oriented features supported by Python. £) Write steps involved in creation of a user defined exception? 8) Describe Python Interpreter Q.2) Attempt any THREE of the following. (12 Marks) a) Explain two Membership and two logical operators in python with appropriate examples, b) Describe any four methods of lists in Python ©) Comparing between local and global variable 4) Write a python program to print Fibonacci series up to n terms Q.3) Attempt any THREE of the following. (12 Marks) a) Write a program to input any two tuples and interchange the tuple variable. b) Explain different loops available in python with suitable examples. c) Describe various modes of file object? Explain any two in detail d) Mlustrate the use of method overriding? Explain with example Q.4) Attempt any THREE of the following. (12 Marks) a) Use of any four methods of tuple in python? b) Write a python program to read contents of first.txt file and write same content in second.txt file ¢) Show how try...except blocks is used for exception handling in Python with example 4d) Write the ouput for the following if the variable fru : >>> fruit{:3] >>> fruit(3:] >>>fiuit[3:3] >>>fruit{:] Q.5) Attempt any TWO of the following. (12 Marks) a) Determine various data types available in Python with example b) Write a python program to calculate factorial of given number using function ©) Show the output for the following: 1, >>> a=[1,2,3] 2, >>e[1,2,3]°3 3, >oote[al’b'/c,/d'e’, peat: 3]1'x'/V] >o>print t Q.6) Attempt any TWO of the followin; a) Describe Set in python with suitable examples. b) Illustrate class inheritance in Python with an example c) Design a class Employee with data members: name, department and salary. Create suitable methods for reading and printing employee information (12 Marks)

You might also like