Course: Python Programming
Course Code:1BPLU205B
MODULE 1 Question Bank
1. Define debugging. Explain types of errors with examples.
2. Explain data types with examples.
3. What is a variable? Write rules for naming variables in Python.
4. Explain operators with examples.
5. Explain order of operations with example.
6. Explain string operations with examples.
7. Explain for loop with example.
8. Explain while loop with example.
9. Explain break statement & continue statement with example Program?
10. Write a program to print numbers from 1 to 10.
11. Write a program to check whether a number is even or odd using modulus operator.
12. Explain nested loops with example.
13. Define function and Write a function to add two numbers & explain its syntax.
14. Write a program to take name and age as input and display formatted output.
15. Write a program to check whether a number is even or odd.
16. Write a program to find the largest of two numbers.
17. Write a program to print multiplication table of a given number.
18. Write a program to generate Collatz sequence (3n + 1).
19. Write a program to find sum of first N natural numbers.
20. Write a program to print a 3x3 multiplication table using nested loops.
21. Write a program to print elements of a matrix: [[5,6],[3,4]].
22. Write a program to print star pattern:
*
**
***
****
23. Write a program to print student names and marks using two lists.
24. Write a function to add two numbers and return the result.
25. Write a function to calculate factorial of a number.