Python QB
Python QB
QUESTION BANK
Class: II BCA
UNIT I
2 MARKS
1. List out the features of Python.
2. Define variables in python.
3. What are the data types available in the python?
4. What is interpreter?
5. Why to use python.
6. Write short notes on comments in Python.
7. How to print a string in Python?
8. Write the syntax of if else statement in Python.
9. Define function in Python.
10. List any two built-in functions in Python.
11. Differentiate with and without lambda function.
12. Write syntax of user defined function.
5 MARKS
1. Explain the features of Python.
2. Discuss about Python data types.
3. How to use variables in Python?
4. Explain about Python input/output statement.
5. How to use break and continue in loops?
6. What is the purpose of if elif else statement in Python?
7. Explain user defined function in Python.
10 MARKS
1. Briefly discuss about Operators in Python.
2. Describe about the looping statement in Python.
3. Explain about data types in Python.
4. Write notes on lambda function in Python.
5. Explain about function and it’s argument types with example.
6. Write a Python program for find the factorial using recursion.
PYTHON PROGRAMMING
QUESTION BANK
Class: II BCA
UNIT II
2 MARKS
1. How to count string length in python?
2. What is string slicing?
3. List out any four string function in Python.
4. Define list in Python.
5. How remove list item?
6. List out any three methods in list.
7. What is the purpose of append method in list?
8. What is tuples in Python?
9. Define sets in Python.
10. What is the difference between sets and list?
11. Write short notes on dictionary in Python.
12. How to change values in dictionary?
13. What is the use of key in dictionary?
14. Define error.
15. What is an exception in Python?
16. How to use user defined exception in Python?
17. What is the purpose of module in Python?
18. List out the any two modules in Python.
19. Define package in Python.
5 MARKS
1. Write notes on string in Python.
2. How add and remove the items in list?
3. How to delete and change the values in dictionary?
4. Explain about user defined exception with example.
5. Discuss about package in Python.
6. How to use date module in Python?
7. Explain about modules in Python.
8. Discuss about tuples in Python.
10 MARKS
1. Briefly discuss about string functions in Python.
2. Write a Python program for string operations.
3. Describe about sets in Python.
4. Discuss about dictionary in Python.
5. Explain about try and catch blocks in Python with example.
6. Write a Python program print the calendar using module.
7. Explain about list in Python.