WS-4 Grade 7 Conditional Statements
WS-4 Grade 7 Conditional Statements
2. print (a**b+c)=__________________________________________.
4. print(a>b or b>c)=______________________________________.
5. print(a//b-2+c) = _______________________________________.
12. In If…..else statement if the condition evaluates to False, the indented block
________________________________________________________________________________.
14. In the nested if statement, the second nested if indented block will run only when
__________________________________________________________________________________.
16. In the if….elif….else…ladder, as soon as the condition of the if evaluates to be true, the indented
block associated with their if is executed and the _____________________________is avoided.
17. In the if…elif…else ladder if the none conditions evaluates to true , then the final
____________________________________________.
19. The if….elif…elif..else ladder helps us to test multiple conditions and ___________________________.
Page 1 of 4
20. What is the answer of the expression, 3**2**2?____________________.
24. The __________________________block will be executed if and only if the provided condition evaluates to
false.
25. The conditional statements in Python decide the flow of program execution is also called
____________________________________.
If b>a :
Else :
( Output:_____________________________________.
(a) if (x > 10) { } (b) if x > 10: (c) if x > 10 then: (d) if (x > 10):
___________________________
(a) if x > 10 and y < 5: (b) if x > 10 && y < 5: (c) if (x > 10) && (y < 5):
(d) if x > 10 & y < 5:
____________________________
33. How would you write an if statement that executes when x is not equal to 10?
(a) if x != 10: (b) if x =! 10: (c) if x <> 10: (d) if x not 10:
______________________________
34. Which keyword is used for executing a block of code if the if condition is false?
Page 2 of 4
35. How do you implement multiple conditions that trigger different blocks of code?
(a) if … elif … else (b) if … else if … else
(c) if … then … else (d) if … or … else
________________________________.
43. Write the condition to check whether a number is divisible by 7 or not ________________________.
Page 3 of 4
44. Write a condition to check whether a number is even or odd _________________________.
47. Write a condition in which age greater than 23 and experience greater than 8 then eligible else not
eligible ____________________________________________________________________________.
48. Write a condition for checking if marks is greater than 50 then pass else fail
_____________________________________________________________________________.
____________________________________________________________________________________.
if '1':
Page 4 of 4