Page 38 - Touchcode_C8_Flipbook
P. 38
TEST SHEET 1
Based on chapter 1 and 2
A. Tick ( ) the correct option.
1. Which of the following can create conditional statements?
a. IF b. IF-ELSE
c. Nested IF-ELSE d. All the above
2. Which of the following is less than or equal to the operator?
a. = b. >=
c. <= d. ==
3. Which of the following loop executes a group of statements till a given condition is true?
a. While b. For
c. Nested d. If-else
4. Which of the following is the correct syntax to calculate the square of the number?
a. sq= x + x b. sq= x - x
c. sq= x * x d. sq= x % x
B. State whether the following statements are true (T) or false (F).
1. Operator with the lowest precedence is grouped with its operands first.
2. In Python AND operator is denoted by ‘and’ keyword.
3. Loops do not repeat a portion of code.
4. A looping condition must not get false at a certain point of time.
C. Fill in the blanks.
1. Logical operators work like ........................... variables and return either TRUE or FALSE.
2. If all the conditions false, the ........................... operator returns FALSE.
3. Loops make the code more manageable and ........................... .
4. ........................... criteria is a condition that must be met before completing a specific task.
36 Touchcode-VIII

