KEMBAR78
Module 2 Question Bank | PDF | Python (Programming Language) | Computer Science
0% found this document useful (0 votes)
12 views3 pages

Module 2 Question Bank

This document is a question bank for Module 2 of the Introduction to Python Programming course, focusing on lists, dictionaries, and data structuring. It includes various questions related to Python methods, programming tasks, and concepts such as negative indexing, mutable vs immutable types, and dictionary methods. Each question is categorized by its learning outcome, cognitive level, and marks allocation.

Uploaded by

brobruhh86
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)
12 views3 pages

Module 2 Question Bank

This document is a question bank for Module 2 of the Introduction to Python Programming course, focusing on lists, dictionaries, and data structuring. It includes various questions related to Python methods, programming tasks, and concepts such as negative indexing, mutable vs immutable types, and dictionary methods. Each question is categorized by its learning outcome, cognitive level, and marks allocation.

Uploaded by

brobruhh86
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/ 3

Introduction to Python Programming (BPLCK205B) Question Bank – Module 2

MODULE - 2
Lists, Dictionaries and Structuring Data

Q. No. Questions COs CL Marks

1 Explain negative indexing, slicing, index( ), append( ), remove( ), CO2 L2 8M


pop( ), insert( ) and sort( ) with suitable example.

(Jan/Feb 2023) (June/July 2024)


2 Explain the use of in and not in operators in list with suitable CO2 L2 6M
examples.

(Jan/Feb 2023)(June/July 2024)


3 Develop a program to find mean, variance and standard deviation. CO2 L3 6M

(Jan/Feb 2023)
4 Explain the following methods in lists with an examples: CO2 L2 8M
i. len( )
ii. sum( )
iii. max( )
iv. min( )

(Jan/Feb 2023)
5 Explain set( ) and setdefault( ) method in a dictionary. CO2 L2 6M

(Jan/Feb 2023)
6 Develop a python program to swap cases of a given string CO2 L3 6M
Input: Java
Output: jAVA.

(Jan/Feb 2023)
7 Write about mutable and immutable data type in list. CO2 L2 6M

(June/July 2024)
8 Explain the following list methods with examples. CO2 L2 10M
i. index( )
ii. append( )
iii. insert( )
iv. sort( )

Department of AI & ML, Vemana IT Prepared by: Ms. Srujani J Page 1 of 3


Introduction to Python Programming (BPLCK205B) Question Bank – Module 2

v. reverse( )
vi. List concatenation and replication.

(June/July 2024)
9 Develop a program to read the student details like Name, USN, and CO2 L3 10M
Marks in three subjects. Display the student details, total marks and
percentage with suitable messages.

(June/July 2024)
10 What is a list? Explain append( ), insert( ) and remove( ) methods CO2 L2 8M
with examples.

(June/July 2023)
11 Explain the following methods with example: CO2 L2 12M
i. keys( )
ii. values( )
iii. items( ) in a dictionary.

(June/July 2023)
12 How is tuple different from a list and which function is used to CO2 L2 6M
convert list to tuple? Explain.

(June/July 2023)
13 List the merits of dictionary over the list. CO2 L1 4M

(June/July 2023)
14 Read N numbers from the console and create a list. Develop a CO2 L3 10M
program to compute and print mean, variance and standard deviation
with messages.

(June/July 2023) (Dec 2023/Jan 2024)


15 With suitable examples explain the list methods append( ), extend( ), CO2 L2 8M
sort( ), count( ) and pop( ).

(Dec 2023/Jan 2024)


16 Define tuple datatype? List out the difference between tuple and list. CO2 L2 6M

(Dec 2023/Jan 2024)


17 Identify and explain the dictionary methods like get( ), item( ), keys( CO2 L2 8M
) and values( ) in python with examples.

(Dec 2023/Jan 2024)


18 Develop a python program to swap two numbers without using CO2 L2 6M
intermediate variables. Prompt the user for input.

(Dec 2023/Jan 2024)


19 Read 10 numbers from a console and create a list. Develop a program CO2 L3 6M
to print the elements of created list, sorted list and reversed list.

(June/July 2024)

Department of AI & ML, Vemana IT Prepared by: Ms. Srujani J Page 2 of 3


Introduction to Python Programming (BPLCK205B) Question Bank – Module 2

20 Explain copy( ) and deepcopy( ) functions of copy module. CO2 L3 4M

(Dec 2023/Jan 2024)


21 Define dictionary. Explain the following methods of dictionary CO2 L2 10M
i. setdefault
ii. get
iii. keys
iv. items

(Dec 2023/Jan 2024)


22 Write a program to count the number of occurrences of each letter in CO2 L3 10M
a given string. Use pretty print to format your output.

(Dec 2023/Jan 2024)

Course Faculty
(Ms. Srujani J)

Department of AI & ML, Vemana IT Prepared by: Ms. Srujani J Page 3 of 3

You might also like