0% found this document useful (0 votes)
130 views

22 PLC15 Bset 1

This document contains 10 multiple choice questions from 5 modules related to the Introduction to Python Programming course. The questions assess different cognitive levels including remembering, understanding and applying concepts based on Bloom's taxonomy. Students must answer 5 full questions by choosing at least one from each module. The modules cover topics like flow control statements, data structures, file handling, object-oriented programming, and working with different file formats.

Uploaded by

Himanshu Chouhan
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)
130 views

22 PLC15 Bset 1

This document contains 10 multiple choice questions from 5 modules related to the Introduction to Python Programming course. The questions assess different cognitive levels including remembering, understanding and applying concepts based on Bloom's taxonomy. Students must answer 5 full questions by choosing at least one from each module. The modules cover topics like flow control statements, data structures, file handling, object-oriented programming, and working with different file formats.

Uploaded by

Himanshu Chouhan
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/ 2

22PLC15B/25B

Model Question Paper-sem I/II with effect from 2022-23 (CBCS


Scheme)

USN
First/Second Semester B.E. Degree Examination
Introduction to Python Programming
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.

Bloom’s
Module -1 Taxonomy Marks
Level
Q.01 a What is an arithmetic expression? . What is the output of this statement? CO2-L3 6
‘hello world’ + 100 + ’how are you’ explain the reason if the statement
produces an error.
b Discuss various methods of importing modules in Python programs. CO1 – L1 7
Which method is best?. Explain.
c What is the lambda function? Explain with an example of addition of two CO2 – L1 7
numbers.
OR
Q.02 a What is a flow control statement?. Discuss if and if else statements with CO1 - L1 7
flow chart.
b Write a python program to add n numbers accepted from the user. CO2 – L3 7
c How can you prevent a python program from crashing? discuss different CO2 – L2 6
ways to avoid crashing.
Module-2
Q. 03 a Discuss list and dictionary data structure with example for each. CO2 – L1 6
b write a python program to accept n numbers and store them in a list. Then CO2 – L2 6
print the list without ODD numbers in it.
c For a=[‘hello’, ‘how’, [1,2,3], [[10,20,30]]] what is the output of following CO2 – L3 8
statement (i) print( a[ : : ] ) (ii) print(a[-3][0]) (iii) print(a[2][ : -1])
(iv) print(a[0][ : : -1])
OR
Q.04 a write a python program to read dictionary data and delete any given key CO3 – L23 7
entry in the dictionary.
b Explain different clipboard functions in python used in wiki markup CO2 – L2 6
c Using string slicing operation write python program to reverse each word CO2 – L3 8
in a given string (eg: input: “hello how are you”, output: “olleh woh era
uoy”)
Module-3
Q. 05 a Discuss different paths of file system. CO3 – L2 6
b Explain how to read specific lines from a file?. illustrate with python CO5 – L2 6
program
c What is logging? how this would be used to debug the python program? CO3 – L3 8
OR
Q. 06 a What is the use of ZIP? how to create a ZIP folder explain. CO3 – L2 6

Page 01 of 02
22PLC15B/25B
b wite an algorithm for implement multi clipboard functionality CO5 – L2 6
c Discuss how lists would be written in the file and read from the file? CO3 – L3 8
Module-4
Q. 07 a Define the terms with example: (i) class (ii) objects (iii) instance variables CO3 – L1 6
b create a Time class with hour, min and sec as attributes. Demonstrate how CO3 – L3 8
two Time objects would be added.
c Discuss __str__() and __init__() methods used in class definition. CO3 – L2 6
OR
Q. 08 a What is Encapsulation? Discuss with an example in which access CO3 – L2 4
specifiers are used in class definition.
b What is a class diagram? Create empty class and corresponding class CO3 – L3 8
diagram for following statements (i) class A derives from class B and
Class C (ii) Class D derived from Class A defined in statement (i)
c discuss polymorphism and demonstrate with and python program. CO3 – L2 8
Module-5
Q. 09 a write python program to read cell 2C from sheet 2 of workbook CO4 – L2 6
b explain how pdf pages would created in a pdf document with example. CO4 – L2 6
c What is JSON? discuss with example. Compare it with dictionary CO4 – L3 8
OR
Q. 10 a compare and contrast Excel and CSV files. CO4 – L2 6
b Demonstrate how a Class would be converted into JSON object with an CO4 – L3 8
example.
c Explain how a page from different PDFs files would be merged into a new CO4 – L3 6
PDF file?

Page 02 of 02

You might also like