Conditionals Quiz 40 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is wrong with the following code? if(key == g)\{ stroke(255, 0, 255); fill(255, 0, 0); rect(30, 400, 50, 310);\}
2. What is the correct structure for the second conditional?
3. If I had studied harder, I ..... the exam.
4. If you ..... (not be) so shy, you would have introduced yourself to her last week.
5. The first conditional is used when the outcome is more likely, the second when it is less likely
6. What is the correct form of the first conditional sentence:If she ..... hard, she will pass the exam.
7. What is the key idea when using mixed conditionals?
8. Which is the structure of an imaginative or unreal conditional in the past context?
9. A conditional sentence that expresses a condition that is likely to happen in the future.
10. Identify the second conditional sentence:If I were a bird, I would fly in the sky.
11. What are the two parts of a conditional sentence?
12. She will do the exercise again if she ..... a lot of mistakes.
13. How could you use the Bumper Sensor in the Wall Maze challenge?
14. What is the result form for future unreal conditionals?
15. I would have passed the test if I ..... more.
16. If you ..... two, you will get the third for free.
17. If you plant a seed and water it, it .....
18. Plants can't survive if you ..... them.
19. Both parents and teachers (feel) pleased if students studied harder and got higher grades.
20. IDENTIFY THE CONDITIONAL:If it is sunny tomorrow, we will go to the beach.
21. The supplier will ship the goods as soon as the payment is processed.
22. If we had taken her advice, we ..... into this mess.
23. Why should comments be used in code?
24. If I ..... (be) immortal, I would be very rich by now.
25. What is the purpose of using functions in JavaScript?