Understanding Conditionals Quiz 2 (30 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. How many times will a loop with a condition of 'i < 5' run if 'i' starts at 0?
2. What is the purpose of an "if" statement in programming?
3. What happens if you don't water a plant?
4. Which of the following is a first conditional sentence? 'If it rains, I will stay home.' or 'If you mix red and blue, you get purple.'
5. When do we use 'if' in the zero conditional?
6. Identify the structure of a second conditional sentence.
7. What keyword is used to exit a loop prematurely?
8. Choose the correct form:'If she (study) hard, she (pass) the exam.'
9. Can conditionals be used in loops? Explain how.
10. In a while loop, what condition is checked?
11. How do you create a for loop in Python?
12. Explain the difference between if and elif in Python.
13. If you touch a hot stove, then you will get burned. What is the consequence?
14. What does 'if' do in a conditional statement?
15. Can second conditionals be used for future possibilities?
16. How do you write an if statement in Python?
17. How can broadcasting be useful in games?
18. What is a conditional statement?
19. When do we use the zero conditional in real life?
20. Identify the conditional type:'If I finish my homework, I will go out.'
21. What will the following code output:for i in range(3):print(i * 2)?
22. Luna is learning about word formation in her English class. What is the suffix in the word "friendship" ?
23. What is the purpose of the continue statement in loops?
24. Which of the following is a type 0 conditional?
25. What verb tense is used in the 'if' clause (ACTION)of a zero conditional?
26. What verb tense is used in the if-clause of a first conditional?
27. What's an example of an "If ..... then" statement?
28. How do you handle exceptions in conditional logic?
29. What is a nested loop?
30. Is the following sentence a real or unreal conditional? 'If she studies, she will pass the exam.'