0% found this document useful (0 votes)
4 views2 pages

Python

Question bank of python

Uploaded by

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

Python

Question bank of python

Uploaded by

shriharivb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Bapuji Educational Association ®

Bapuji Institute of Engineering and Technology, Davangere – 577 004

VTU Affiliated Autonomous Institute

Common to All Branches

Course Title/Type/Category Python Programming (Integrated, PLC) Course Code BCSPLC215P

Course Coordinator Priya S, shinila H S, Sindhushree Semester/Section 1st year/2nd sem

MODULE 3-QUESTION BANK


[Link]. Questions Marks COs RBT

Lists 5.3,5.4. Dictionaries and Numpy 6.1-6.5

1 What are lists? Lists are mutable. Justify the statement with examples 6 CO3 L3

2 Explain the concept of slicing and indexing with proper examples 6 CO3 L2

3 Discuss the list handling Functions in python with example 6 CO3 L3

4 Describe any two operations and list methods. 6 CO3 L2

Explain i) list concatenation and replication ii) in and not in operators 6 CO3 L3
5
iii) Aliasing and copying
Write a python program to create a list and perform the following
operations
6 6 CO3 L3
• Inserting an element • Removing an element • Appending an
element • Displaying the length of the list • Popping an element
• Clearing the list

7 Explain append (), insert () and remove () methods with example in list. 6 CO3 L3

8 Explain dictionaries. Demonstrate with a python program. 6 CO3 L3

9 Explain the difference between a list and a dictionary 6 CO3 L2

Discuss get () , item (), keys () and values () dictionary methods in 6 CO3 L3
10
python with examples

11 List merits of dictionary over list. 6 CO3 L2

Differentiate between pop and remove methods and insert and append 6 CO3 L2
12
methods on lists.
What is NumPy? Why is it used instead of Python lists? What is a 6 CO3 L3
13
NumPy array (ndarray)?
Explain the important features of NumPy such as shape, slicing, 6 CO3 L2
14
masking, broadcasting, and dtype with suitable examples.
Bapuji Educational Association ®

Bapuji Institute of Engineering and Technology, Davangere – 577 004

VTU Affiliated Autonomous Institute

Common to All Branches

[Link]. Questions Marks COs RBT

Lists 5.3,5.4. Dictionaries and Numpy 6.1-6.5

Read a multi-digit number (as chars) from the console. Develop a 6 CO3 L2
15
program to print the frequency of each digit with a suitable message.
Develop a program to print 10 most frequently appearing words in a 6 CO3 L3
16
text file.

Course Instructor Course Co-ordinator Co-ordinator-DAAC Program Co-ordinator

You might also like