G-8 Computer Worksheet Answerkey
G-8 Computer Worksheet Answerkey
Computer Worksheet
(Answer key)
Ch- 6 & 7
A. Tick ( ) the correct option.
1. Which of the following is a conditional statement in Python?
a. for statement b. while statement
c. if statement d. break statement
2. Which of the following statements are used when the number of repetitions
are known?
a. for statement b. while statement
c. if…else statement d. continue statement
2. Any ……… non-zero ….…… value in the while loop indicates an always true condition
whereas zero indicates ………False….…… condition.
4. The …… break …….…… and ……… continue ….…… are the jump statements in
Python.
The for statement executes a simple or compound statement for a fixed number of
times. The syntax of the statement is given below:
statement
The while statement executes a set of statements repeatedly, until the logical
expression evaluates to true.