0% found this document useful (0 votes)
7 views1 page

Module 2 Question Bank

Uploaded by

sk3673364
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)
7 views1 page

Module 2 Question Bank

Uploaded by

sk3673364
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

Department of CSE-AIML

Programming in Python-25BEPHY104
AY-2025-26 Sem-II
Question Bank

MODULE-2
RBT
[Link] Question COs Marks
Level
1. Define a string in Python. Explain any two properties of strings. L1 CO2 5
2. Differentiate between positive and negative indexing with examples. L2 CO2 5

What is string slicing? Explain with syntax and example. L2 CO2 5


3.

4. What are list data structures? Mention any four key properties. L1 CO2 5
5. Explain the use of the len() function for strings and lists with examples. L3 CO2 5
Explain string immutability. How can strings be modified indirectly? Give
6. L2 CO2 8
examples.
7. Describe string methods: upper(), lower(), strip(), and replace() with L3 CO2 8

8. Explain list slicing and slice assignment with suitable examples. L3 CO2 8
Discuss the difference between append(), insert(), and extend() methods in
9. L3 CO2 8
lists.
10. Explain the use of in and not in operators in strings and lists with examples. L2 CO2 8
Explain string literals in Python. Discuss single quotes, double quotes, triple
11. L2 CO2 10
quotes, and raw strings with examples.
Describe string concatenation and repetition. Write a program demonstrating
12. L3 CO2 10
both.
Explain F-strings in detail. Demonstrate formatting numbers and expressions
13. L3 CO2 10
using examples.
Discuss indexing and slicing in strings. Write a Python program to reverse a
14. L3 CO2 10
string and check palindrome.
Explain various string searching methods (find(), count(), startswith(),
15. L3 CO2 10
endswith()) with examples.
Explain list indexing (positive and negative) with examples. Also
16. L3 CO2 10
demonstrate accessing nested lists.
Discuss list operations: concatenation, replication, and deletion using del.
17. L3 CO2 10
Provide examples.
Explain different ways of copying lists. Why is direct assignment not
18. L3 CO2 10
recommended?
Explain iteration over lists using for loop, enumerate(), and zip() with
19. L3 CO2 10
examples.
Describe list methods (remove(), pop(), sort(), reverse(), count(), index())
20 L3 CO2 10
with examples and use cases.

Page 1 of 1

You might also like