0% found this document useful (0 votes)
298 views4 pages

Sample Question Paper (Msbte Study Resources)

Uploaded by

html backup
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)
298 views4 pages

Sample Question Paper (Msbte Study Resources)

Uploaded by

html backup
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/ 4

Sample Question Paper:

Scheme – I
Programme Name: Computer/Information Technology Engineering
Programme code: CO/IF
Semester: VI Sem 22616
Course Title: Programming with Python
Marks : 70 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 any FIVE of the following. (10 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

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
c) Comparing between local and global variable
d) 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) Illustrate the use of method overriding? Explain with example

1
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
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 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
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 any TWO of the following. (12 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

2
Sample Test Paper I

MSBTE Outcome based Curriculum


Scheme – I

Programme Name: Computer Engineering/Information Technology


Programme Code: CO/IF
22616
Semester: Sixth
Course: Programming with Python
Marks: 20 Time:1 hour
Instructions: All questions are compulsory
 Illustrate your answers with neat sketches wherever necessary
 Figures to the right indicate full marks
 Assume suitable data if necessary
 Preferably, write the answers in sequential order

Q1. Attempt Any FOUR (08 Marks)


a) List different data types in Python
b) State how to perform comments in Python
c) Explain why tuples are called as immutable
d) Mention the use of //, **, % operator in Python
e) Explain variable in Python with its rules and conventions for declaration?
f) List features of Python

Q2. Attempt any THREE (12 Marks)


a) Explain any 4 built-in numeric data types in Python?
b) Describe any two identity operators and two relational operators in Python
c) Design a python program to calculate area of triangle and circle and print the result
d) Write the steps to install Python and to run Python code

3
Sample Test Paper II

MSBTE Outcome based Curriculum


Scheme – I

Programme Name: Computer Engineering/Information Technology


Programme Code: CO/IF
Semester: Sixth
22616
Course: Programming with Python
Marks: 20 Time: 1 hour
Instructions: All questions are compulsory
 Illustrate your answers with neat sketches wherever necessary
 Figures to the right indicate full marks
 Assume suitable data if necessary
 Preferably, write the answers in sequential order

Q1. Attempt Any FOUR (08 Marks)


a) Define function in Python
b) Write the syntax of fopen?
c) Use of any four methods in math module
d) List built in class attributes
e) Use of NumPy
f) Explain use of namespace in python

Q2. Attempt any THREE (12 Marks)


a) Describe module in Python with its advantages?
b) Explain different modes of opening a file
c) Design a python program which will throw exception if the value entered by user is less than
zero
d) Write a Python program to concatenate two strings

You might also like