Python Unit Wise Question Bank
Python Unit Wise Question Bank
5. Define the following terms: i. Identifier ii Comments iii. Keyword iv. 04 S-22,W-19,W-
Variable 23
6. What do you mean by variable? Does Python allow explicit declaration of 04 W-19,S-22
variables? Justify your answer.
a)Simple
MSBTE
Sr
Questions Marks question
No
paper year
b)Platform independent
c)Interactive
d)Object oriented
10 Explain about the need for learning Python programming and its importance. 04 S-22,W-19,W-23
14 Write the steps to install Python and to run Python code. 04 S-19,W-18,S-22
17 What is variable ? What are the rules and conventions for declaring a 04 W-19,W-18
Variable?
18 What are the Various data types available in Python Programming? 04 S-19,W-23
19 What are four built in numeric data types in Python ? Explain 04 S-22,W-19,S-24
20 What is the Difference between interactive mode and script mode of Python? 04 W-18,W-23
21 Python has developed as an open source project .Justify this Statement. 04 S-19,W-18,S-22
Sr MSBTE question
Questions Marks
No paper year
(iii)(200-70)*10/5 (iv)5*1**2
4. Write a Python Program to print all prime numbers less than 256? 04 S-19,W-19
7. Explain following loop control statements:-break, continue, pass with proper 04 W-18,W-23
syntax.
8. Draw a flowcharts and write pseudo codes for following decision control 04 S-19,W-18,S-22
statements
Sr MSBTE question
Questions Marks
No paper year
If
If….else
Nested if
If-elif ladder
20 Write a Python Program to Print factorial of a number. Take input from user? 04 W-19,W-18
21 Write a Python program to calculate area of a triangle and circle and print the 04 S-19,W-23
result ?
24 Write a Python Program to print all prime numbers less than 256? 04 W-18,W-23
Sr MSBTE question
Questions Marks
No paper year
25 Write a Python program to find the best of two average marks out of three 04 S-19,W-23
test’s marks accepted from the user.
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
3. Write a program to input any two tuples and interchange the tuple 02 S-19,S-22,W-
variable. 24
5 How to declare Tuple? Can we change or update Tuple elements? Jutify 04 S-19,W-18,S-
your answer. 22
MSBTE
Sr
Questions Marks question
No
paper year
6 How to declare Set? Can we iterate through Set by using while-Loop? 04 W-19,W-18,S-
Justify your answer. 22
16 04 S-22,S-19,W-
Write short note on slicing operator
23
17 How to declare List? Can we change or update List elements? justify 04 W-18,S-22
your answer
18 Explain different ways and functions to remove key:value pair from 04 S-19,W-19
Dictionary.
19 Can we iterate through Set by using for-loop? Justify your answer. 04 S-22,W-23
23 Describe set difference and set symmetric difference operations on set 04 S-19,W-23
24 Write a program in python to traverse through string using for loop 04 W-18,W-23
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
1 02 W-18,W-23
What is function?
2 02 W-19,S-22
What is module?
Sr Mark MSBTE question
Questions
No s paper year
3 04 W-19,S-19,W-23
What is package?
4 04 S-22,S-19,W-23
Define function. Write syntax to define function. Give example of function
definition.
5 04 W-18,W-19,S-22
Can a python function return a multiple values? If yes, how it works.
6 04 S-22,W-23
How function is defined and called in Python.
7 04 W-18,S-22
What is actual and formal parameter? Explain it with example.
8 04 W-19,S-22
Write difference between local and global variable.
9 04 W-19,W-23
Explain type conversion of variable in Python.
10 04 S-22,S-19,W-23
Define module. What are advantages of module?
11 04 W-18,W-23
How to create module and used it in Python program with an example.
12 04 W-19,S-22
Explain concept of name space with example.
13 04 W-19,S-19,W-23
Explain scope of variable in Python.
14 04 S-22,S-19,W-23
Write in brief anonymous function in Python.
15 04 W-18,W-19,S-22
List out built in packages from python and explain Numpy with example.
16 04 S-22,W-23
Difference between array and List. Explain how to create array with
example.
17 04 W-18,S-22
Write short note on Scipy.
4. Design a class Employee with data members: name, department and 04 S-19,W-18
salary. Create suitable
methods for reading and printing employee information
14 Python does not allow method overloading the explain alternate way 04 S-22,S-19,W-23
to perform method overloading
CO 6: - Handle exceptions.
UNIT 6: File I/O handling and Exception Handling (12 Marks)
MSBTE
Sr
Questions Marks question paper
No
year
2. What are the different ways of printing data to screen? Explain it with 04 S-19,S-22
example.(Explain print function with its argument)
3. What is file? Explain the concept of Relative and Absolute path. 04 S-22,W-19
6. What is file? Explain how to perform file read and write operations in 04 S-22,W-18
Python.
8 Explain seek() and tell() functions for file pointer manipulation. 04 S-19,S-22
example.
12 Explain the use of raise statement in Python with suitable example. 04 W-18,W-23
13 Explain how to create and use the user defined exception 04 S-19,S-22,W-23