Thinking Programming with Python
Important two mark questions
PART B Answer any FIVE questions: 5X2 = 10
1. What is decomposition in computational thinking? Explain with one example.
2. Explain what a searching problem is and give one example.
3. What is syntax in programming? Give one example.
4. Name any two types of conditional statements used in Python.
5. Define a syntactical error in Python.
6. Give one example of a semantic error.
7. Name any two types of import statements used in Python.
8. What is a module in Python?
9. What is decomposition in the context of computational thinking?
10. Define abstraction in the context of problem-solving.
11. What are tokens in Python programming?
12. Name two loop control statements in Python.
13. Which function in Python helps you display output for debugging?
14. How would you define a syntax error in Python?
15. List two advantages of using functions in Python.
16. Name the two types of functions in Python.
17. Define algorithmic thinking.
18. Mention any two types of problems where algorithmic solutions are commonly used.
19. Define a variable in programming
20. What is a loop in programming?
21. Name any two tools or techniques used for debugging in Python.
22. What is the difference between compile-time and run-time errors in Python?
23. Define a function in the context of Python programming.
24. What is modular programming?