Understanding Conditionals Quiz 6 (30 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code:if (5 > 3) { print('True'); }?
2. What is the purpose of using nested if statements?
3. Provide a situation where you would use the first conditional.
4. Choose the correct zero conditional:'If you (press/presses) the button, the machine starts.'
5. What happens if the condition in an if statement is false?
6. Identify the correct form:If it rains, the ground ..... wet.
7. Choose the correct form:'If you (heat) water to 100 degrees, it (boil).'
8. Which of the following is an example of the zero conditional? A) If you heat ice, it melts. B) If I were you, I would take the job. C) If it rains, I will take an umbrella.
9. Which of the following is a looping structure?
10. Which of the following sentences is NOT a second conditional?
11. In which situation would you use a first conditional?
12. What is the effect of using 'would have' in third conditionals?
13. What is the purpose of a broadcast in programming?
14. If it were sunny, we would go to the beach. (Second or Third?)
15. Choose the correct form:'If you (mix) yellow and blue, you (get) green.'
16. Identify the if-then statement:If I finish my homework, then I can watch TV.
17. In a second conditional sentence, which tense is used in the main clause?
18. Fill in the blank:If she studies hard, she ..... (pass) the exam.
19. Complete the sentence:If I ..... (have) more time, I would learn a new language.
20. What is the main purpose of using the second conditional?
21. How can you exit a loop prematurely?
22. If she had studied harder, she would have passed. (Second or Third?)
23. When do we use 'if' in the first conditional?
24. Choose the correct form for the first conditional:'If it (rains/rain), we will cancel the picnic.'
25. Choose the correct zero conditional:'If you mix red and blue, you (get/getting) purple.'
26. We ..... the buried remains if we hadn't got lost.
27. What is the purpose of the break statement in loops?
28. What is the purpose of the 'continue' statement?
29. Identify the zero conditional in this list:'If you freeze water, it turns to ice.' or 'If I go to the party, I will have fun.'
30. If I go to the party, what will happen?