0% found this document useful (0 votes)
3 views1 page

Python Question Bank

The document is a question bank for a Python Programming course, covering various topics such as debugging, data types, variables, operators, loops, functions, and programming exercises. It includes definitions, explanations, and programming tasks to reinforce learning. The questions range from basic concepts to practical programming challenges.

Uploaded by

navyashetty918
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python Question Bank

The document is a question bank for a Python Programming course, covering various topics such as debugging, data types, variables, operators, loops, functions, and programming exercises. It includes definitions, explanations, and programming tasks to reinforce learning. The questions range from basic concepts to practical programming challenges.

Uploaded by

navyashetty918
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like