JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 1: Display message on screen using Python script on IDE.
UNIT 1: Introduction and syntax of Python program (08 Marks)
MSBTE
Sr
Questions Marks question
No
paper year
1. Explain any 4 features of Python programming 02 W-19,W-
18,W-23,S-22
2. Write steps to install Python and to run Python code. 02 S-22,S-19,S-24
3. List and Explain different data types used in Python. 02 W-18,S-22
4. Describe the role of indentation in Python. 02 W-18,S-18,W-
23
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.
7. What is comment? How to apply comments in Python? 04 S-19,W-23
8. Explain numeric data-types in Python. 04 S-19,W-18,W-
23
9 Explain the following features of Python programming: 04 S-19,W-23
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
11 Describe the internal working of Python diagrammatically. 04 W-18,W-23
12 Write brief about characters set of Python 04 S-19,W-18,S-22
13 Write in brief about any five Keyboard in Python. 04 W-19,W-18,S-22
14 Write the steps to install Python and to run Python code. 04 S-19,W-18,S-22
15 What is the role of indentation in Python? 04 S-22,S-19,W-23
16 How to comment Specific lines in Python Program? 04 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
22 Define the Following terms: 04 S-22,W-19,S-24
a)Identifier b)Literal c)Data Types d)Tuple e)List
23 Explain dictionary data types in details. 04 S-19,W-18,S-22
Subject Teacher HOD
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 2: Develop Python program to demonstrate use of operators.
UNIT 2: Python operators and control flow statements (10 Marks)
Sr MSBTE question
Questions Marks
No paper year
1. Explain about membership operators in Python. 02 S-22,W-23
2. What is Operator? Which Operators used in Python? 02 W-19,W-18
3. Predict output and justify your answer (I)-11%9 (ii)7.7/7 02 S-19,S-22
(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
5. Explain about Arithmetic Operators in Python? 04 S-22,W-23
6. Explain various decision controls with proper syntax? 04 S-22,W-19,S-24
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
9. Explain about membership operators in Python. 04 W-19,W-18,S-22
10. What is Operator? Which Operators used in Python? 04 S-19,W-23,S-22
11 List the Different conditional statements in Python? 04 W-19,W-18
12 What are the different nested loops Available in Python? 04 S-19,W-23
13 What are the different loop control (manipulation)statements available in 04 S-22,W-19,W-23
Python? Explain with suitable examples
14 Explain if else statement with an examples? 04 W-18,W-23
15 Explain continue statements with an examples? 04 S-19,W-18,S-22
16 Explain use of break statement in a loop with example? 04 W-19,W-18,S-22
17 Predict output and justify your answer (I)-11%9(ii)7.7/7(iii)(200- 04 S-19,W-18,S-22
70)*10/5(iv)5*1**2
18 What the difference in between == and is operator in Python? 04 S-22,S-19,W-23
19 List different Operators in Python , in the order of their precedence ? 04 W-18,S-22
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 ?
22 Write a Python program to check Whether a string is palindrome? 04 S-22,W-19,W-23
23 Write a Python program to print Fibonacci series up to in terms? 04 W-19,S-22
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.
Subject Teacher HOD
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 3: Perform Operations on Data Structures in Python.
UNIT 3: Data Structure inPython (14 Marks)
MSBTE
Sr
Questions Marks question
No
paper year
1. Describe Dictionary 02 W-18,W-23
2. Describe any four methods of lists in Python 02 W-18,W-19,S-
22
3. Write a program to input any two tuples and interchange the tuple 02 S-19,S-22,W-
variable. 24
4 How to declare Dictionary in Python? 04 W-18,W-23
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
7 Explain how to delete List element? 04 S-19,W-18,S-
22
8 Explain following functions w.r.t. List. 04 S-22,S-19,W-
23
i)append() ii) insert()
9 Explain the use of keyword del w.r.t. List. 04 W-18,S-22
10 Explain how to access Dictionary elements using index/key with W-19,W-18
example.
11 Use of any four methods of tuple in python? 02 S-19,W-23
12 Determine various data types available in Python with example 02 S-22,W-19,W-
23
13 Describe Set in python with suitable examples. 04 W-19,S-22
14 Explain why Tuples are called as immutable? 04 W-18,W-23
15 Explain any four numeric data types in python. 04 S-19,W-18,S-
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
20 Explain use of update() function w.r.t. dictionary. 04 S-22,W-19,S-
24
21 Can we add new elements in set? Justify with example. 04 W-18,W-23
22 Explain following set operations: 04 S-19,W-18,S-
MSBTE
Sr
Questions Marks question
No
paper year
i)set union ii) set intersection 22
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
Subject Teacher HOD
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 4: Develop functions for given problem
UNIT 4: Python Functions, Modules and packages (14 Marks)
Sr Mark MSBTE question
Questions
No s paper year
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.
Subject Teacher HOD
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 5: - Design Classes for given problem.
UNIT 5: Object Oriented Programming in Python (12 Marks)
MSBTE
Sr
Questions Marks question paper
No
year
1. List different Object Oriented features supported by Python. 02 W-18
2. Illustrate the use of method overriding? Explain with example 04 W-18,W-19
3. Illustrate class inheritance in Python with an example 04 S-22
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
5. List Built in class attributes 04 S-22,S-19
6 What is class? Explain with example 04 W-18,W-22
7 How to declare class in python? 04 S-22,W-23
8 State the use of parameter “self” in python class. 04 S-19,W-23
9 Explain constructor function in python class with example. 04 S-22,S-19
10 Explain can we overload constructor function in python with example. 04 W-23,S-22
11 Describe how to call constructor and destructor functions in python? 04 W-18,S-22
MSBTE
Sr
Questions Marks question paper
No
year
12 Write a program to demonstrate parameterized constructor in base 04 W-19,S-22
class and derived class.
13 Explain how to create abstract methods in python with example 04 W-19,W-23
14 Python does not allow method overloading the explain alternate way 04 S-22,S-19,W-23
to perform method overloading
15 Write short note on method overriding. 04 W-18,W-23
16 Explain the use of _str_() _repr() function in python. 04 S-22,S-19,W-23
17 Difference between method overloading and method overriding 04 W-18,W-23
18 How to create class and object? 04 W-19,S-22
19 How to achieve data hiding in python explain with example. 04 W-19,S-19,W-23
20 What is data abstraction? 04 S-22,S-19,W-23
21 What is inheritance ? explain with example. 04 W-18,W-19,S-22
22 Describe composition in python. 04 S-22,W-23
23 Write a short note on-customization via inheritance. 04 S-22,S-19,W-23
24 Difference between class and object 04 W-18,W-23
25 Difference between procedural and object oriented programming 04 W-19,S-22
languages
Subject Teacher HOD
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2024-25
UNIT WISE QUESTION BANK
Subject: Programming with Python Subject Code: 22616
Course &Code:CO6I Class: TYCO
Semester: Sixth Name of the Faculty: Mrs. V.A.Rajgiri
CO 6: - Handle exceptions.
UNIT 6: File I/O handling and Exception Handling (12 Marks)
MSBTE
Sr
Questions Marks question paper
No
year
1. Write a python program to read some input using keyboard 04 W-18
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
4. Explain the file open methods. 04 W-18
5. Explain different functions used with respect to file positions. 04 W-19,S-19
6. What is file? Explain how to perform file read and write operations in 04 S-22,W-18
Python.
7 Explain any four modes in Python. 04 W-18,S-22
8 Explain seek() and tell() functions for file pointer manipulation. 04 S-19,S-22
9 Explain following python functions : 04 S-22,W-19
1. getcwd() 2.mkdir() 3.chdir() 4.listdir() 5.exist()
10 What is exception? Explain with example. 04 W-18,S-22
11 Explain exception handling mechanism in Python with suitable 04 S-22,W-18
MSBTE
Sr
Questions Marks question paper
No
year
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
14 Explain except block without any exception name to it. 04 S-22,W-19,W-23
15 Write a program to demonstrate try with multiple except block to 04 W-18,S-22
handle multiple exceptions.
16 Explain the use of try except block with example. 04 S-22,W-18
17 Explain rename and remove function with respect to dictionary. 04 W-18
Subject Teacher HOD