python unitwise imp qus
python unitwise imp qus
UNIT 2
1. What is a function? Explain about function call, scope and lifetime of a variable
2. Explain about argument passing in functions
3. Write a program to display the Fibonacci sequences up to nth term where n is provided by the
user.
4. What is recursive function explain with an example
5. What is Lambda functions and use of filter, map reduce functions
6. How to split strings and what function is used to perform that operation?
7. What is String? How do u create a string in Python?
8. Explain about string slicing with examples.
9. Explain about string built-in methods
UNIT 3
1. Explain the following list methods with an example. a) append() b) extend() c) insert() d) index()
e) sort()
2. What are the advantages of Tuple over List?
3. How lists are updated in Python?
4. Explain about tuples in detail
5. What is a zip function with an example
6. What is packing and unpacking of tuples?
7. Explain in detail how to create a set and their operations.
8. What are nested dictionaries explain?
9. What is Dictionary? Explain Python dictionaries in detail discussing its operations and methods.
10. What is the difference between lists, tuples and dictionaries? Give an example for their usage.
UNIT 4
UNIT 5