Page 260 - Ai_V1.0_Class9
P. 260
Exercise
SECTION A (Objective Type Questions)
uiz
A. Tick ( ) the correct option.
1. Which of the following is not the conditional statement in Python?
a. if Statement b. if...elif...else Statement
c. if…else Statement d. for Statement
2. Which of the following is a looping statement in Python?
a. for statement b. while statement
c. Both a and b d. None of these
3. Which of the following statements allows to repeat a task for a fixed number of times?
a. for statement b. if…else statement
c. while statement d. continue statement
4. Which of the following can be a part of a list?
a. String values b. Integer values
c. List d. All of these
5. If a list named L1 contains 4 elements, then which of the following can be used to access the last element of the L1 list?
a. L1[4-1] b. L1[4]
c. L1[-1] d. Both a and c
B. Fill in the blanks.
1. An ………………………. uses simple English-like statements.
2. If A = 10 then the statement: if A > 5: print(A); will display ………………………. as an output.
3. ………………………. uses symbols for writing a set of instructions.
4. ………………………. is used for preparing documentation of an application.
5. ………………………. designed Python and released it in 1991 can be freely downloaded from the website ………………………..
6. Examples of assignment operators are ………………………. and ………………………..
7. ………………………. is a special literal.
8. In ………………………. programming, the program instructions are executed one after the other in a sequence.
9. ………………………. means visiting each element and processing it as required by a program.
10. ………………………. indexing begins with -1.
11. ………………………. refers to the rules for writing code in the Python language.
12. ………………………. function will delete all the elements in a list.
C. State whether these statements are true or false.
1. Modification of the program through a flowchart is sometimes time-consuming. ……….……
2. It is easy to represent branching and looping in an algorithm. ……….……
258 Artificial Intelligence Play (Ver 1.0)-IX

