Python Programming QB
Python Programming QB
UNIT 2
1. Explain different loops available in python with syntax and suitable examples.
2. Illustrate the different types of conditional branching statements available in Python with
suitable example
3. Illustrate the different types of control flow statements available in Python with
flowcharts
4. Explain the range() function with example.
UNIT 3
1. Explain the different string functions available in Python with examples
2. What is the difference between list and tuples in Python?
3. What are the different operations that can be performed on a list? Explain with examples.
4. Explain the following list methods with an example. a) append() b) extend() c) insert() d)
index() e) pop() f) sort()
5. Write in brief about Tuple in python. Write operations with suitable examples.
6. Write in brief about Set in python. Write operations with suitable examples.
7. Write in brief about Dictionary in python. Write operations with suitable examples.
8. Explain different modes of file handling.
UNIT 4
1. Explain about functions with suitable examples or
2. What is a function? How to define a function in python? Write a program using function
to find out the given number is even or odd.
3. Write about the concept of scope of a variable in a function.(Global and Local variables)
4. Write about different types of arguments in a function
5. Explain lambda function with example.
6. Explain Recursion function with example.
7. How to create a module and use it in a python program explain with an example.
8. How to create a package and use it in a python program explain with an example.
UNIT 5
1. What is NumPy array? Why we use NumPy? Explain different types of array with
example
2. Define the Pandas/Python pandas? Define DataFrame in Pandas?
3. How to create series in Pandas? Explain different ways with example.
4. How to create dataframe in pandas? Explain different ways with example.
5. Explain different ways to cleaning empty cells in pandas with suitable example.
6 Explain binary search with example.
7 Write a python to find the max value with and without using built in functions.
8 What is database? What are tables and Fields?
9 Explain create,insert, update, select all, delete query with syntax and example.
10 What is the SELECT and SELECT ALL statement?
11
Table name: storeitem
Itemno Itemname Price Quantity
1 Ball pen 10 20
2 Eraser 8 30
3 Sharpener 7 40
4 Pencil 5 35
5 Notebook 23 20