Page 334 - AI Ver 1.0 Class 9
P. 334
5. How can we create a multi-line string in Python?
6. What is a use of print( ) function? Give a few examples to support your answer.
7. What are variables? Why are they important in any programming language?
8. How is floor division different from normal division?
9. What are the rules for naming of variables and constants? [CBSE Handbook]
10. What is the meaning of Sequential Programming?
11. What is nested if statement?
12. Why is it necessary to give step value in while loop?
13. Why while loop is called entry-controlled loop?
14. What is the use of sort( ) function of a list?
15. What are the key features of python? Mention various applications along with it. [CBSE Handbook]
16. What is the difference between pop( ) and remove( ) functions?
17. What will be the output of the following statement?
print([1, 2, 6] < [1, 2, 5])
B. Long answer type questions:
1. Give three differences between an algorithm and a flowchart.
2. Explain three symbols used in flowcharts.
3. Explain the first two steps involved in Computer Problem Solving.
4. Explain with example the three control structures.
5. Explain mathematical operators with examples.
6. What are comments in python? List down the various types of comments. [CBSE Handbook]
7. Explain the three different numeric data types available in Python.
8. Explain three different types of errors in Python.
9. Define all the three important programming constructs.
10. What is type conversion? Explain the types of type conversion with the help of an example. [CBSE Handbook]
11. Differentiate between for loop and while loop.
12. List the important rules to remember when using range() function in for loop.
13. What is Iteration? Explain two different ways of using iteration in Python.
14. What are important features of lists in Python?
15. Name different ways of deleting an element in a list.
16. What is the use of * operator in a list.
17. Explain two different ways of indexing in a list.
332 Touchpad Artificial Intelligence-IX

