0% found this document useful (0 votes)
76 views3 pages

Preliminary Examination Paper

This document contains instructions and questions for a Python programming exam. It is divided into 6 sections with multiple choice and short answer questions. The questions cover various Python topics like data types, operators, control flow, functions, OOP concepts, file handling and exceptions. Students are instructed to answer all questions in sequential order within the allotted time of 3 hours. The exam is out of 100 marks and assesses understanding of fundamental and advanced Python concepts.

Uploaded by

Vaibhav Malkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views3 pages

Preliminary Examination Paper

This document contains instructions and questions for a Python programming exam. It is divided into 6 sections with multiple choice and short answer questions. The questions cover various Python topics like data types, operators, control flow, functions, OOP concepts, file handling and exceptions. Students are instructed to answer all questions in sequential order within the allotted time of 3 hours. The exam is out of 100 marks and assesses understanding of fundamental and advanced Python concepts.

Uploaded by

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

Marathwada Mitra Mandal’s Polytechnic

Thergaon,Pune

Preliminary Examination
Course Title: Programming with Python

Marks: 100 Time: 3 Hrs.

……………………………………………………………………………………………………………………………………………………

Instructions:

(1) All questions are compulsory.

(2) 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.

Q1. Attempt all of the following. (16 Marks)

a) Name different modes of Python

b) List identity operators

c) Describe Dictionary

d) State use of namespace in Python

e) List different Object Oriented features supported by Python.

f) Write steps involved in creation of a user defined exception?

g) Describe Python Interpreter

h) List features of Python

Q.2) Attempt all of the following. (16 Marks)

a) Explain two Membership and two logical operators in python with appropriate examples.
b) Describe any four methods of lists in Python

c) Comparing between local and global variable

d) Write a python program to print Fibonacci series up to n terms

Q.3) Attempt all of the following. (16 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) Illustrate the use of method overriding? Explain with example

Q.4) Attempt all of the following. (16 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

c) Show how try…except blocks is used for exception handling in Python with example

d) Write the output for the following if the variable fruit=’banana’:

>>>fruit[:3]

>>>fruit[3:]

>>>fruit[3:3]

>>>fruit[:]

Q.5) Attempt all of the following. (18 Marks)

a) Determine various data types available in Python with example

b) Write a python program to calculate factorial of given number using function

c) Show the output for the following:

1. >>> a=[1,2,3]

>>>b=[4,5,6]
>>> c=a+b

2. >>>[1,2,3]*3

3. >>>t=[‘a’,’b’,’c’,’d’,’e’,’f’]

>>>t[1:3]=[‘x’,’y’]

>>>print t

Q.6) Attempt all of the following. (18 Marks)

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

BEST OF LUCK

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy