Understanding Conditionals Quiz 9 (30 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code:x = 5; if x < 10:print('Less than 10') else:print('10 or more')?
2. What is the main difference between type 1 and type 2 conditionals?
3. How can the second conditional express unreal situations?
4. Complete the sentence:If I were you, I ..... (take) that job.
5. What type of conditional expresses a hypothetical situation in the past?
6. If they had studied, they would have done better. (Second or Third?)
7. Fill in the blank:If they ..... (be) more careful, they wouldn't have made that mistake.
8. Provide a situation where you would use the second conditional.
9. Were it not for the work of archaeologists, we ..... a good understanding of ancient civilizations.
10. What does a 'for' loop do?
11. What is the syntax for a 'for' loop in Python?
12. Identify the error:'If it rains, the ground gets wet.'
13. What does 'break' do in a loop?
14. How do you use a conditional statement in a program?
15. Differentiate between zero and first conditional sentences.
16. Identify the conditional in this sentence:If it rains, we will stay inside.
17. Fill in the blank:If you ..... water to 0 degrees, it freezes.
18. What is the result of the following code:x = 10; if x == 10:print('Equal')?
19. Fill in the blank:If I ..... hard, I will pass the exam.
20. Which of the following sentences is NOT a first conditional?
21. If you touch fire, what happens? (Zero Conditional)
22. True or False:The first conditional is used for situations that are always true.
23. Give an example of a conditional statement.
24. In coding, conditionals tell a computer to do which of the following?
25. What will the following code output:for i in range(3):print(i)?
26. Can you give a real-life example of a zero conditional?
27. Mia asked, "You're coming to the meeting, aren't you?"
28. Identify the first conditional:'If they invite me, I (will go/go).' or 'If you heat water, it boils.'
29. Which of the following sentences is an example of zero conditional?
30. How do you check if a number is even using a conditional statement?