UNIT 3_Python programming _QUESTION BANK_2023-24
UNIT 3_Python programming _QUESTION BANK_2023-24
Unit-3
QUESTION BANK
SUBJECT NAME: PYTHON PROGRAMMING
SUBJECT CODE: BCC-302
Q.No Description CO BL
Explain the concept of string indexing & slicing and provide an
1 CO3 K2
example in Python.
Differentiate between mutable and immutable objects in Python
2 CO3 K2
language with example.
Explain the difference between function arguments and function
3 parameters. Discuss the concept of variable scope within functions in CO3 K2
Python.
Write a Python program to add 'ing' at the end of a given string (length
should be at least 3). If the given string already ends with 'ing', add
4 CO3 K3
'ly' instead. If the string length of the given string is less than 3, leave
it unchanged.
When to Use Python Lists and when to Use Tuples, Dictionaries or
5 CO3 K2
Sets.
6 Explain Tuples and Unpacking Sequences in Python Data Structure. CO3 K2
Describe the difference between append () and extend () methods in
7 Python lists. CO3 K2