This quiz works best with JavaScript enabled. Home > English Grammar > Grammar > Parts Of Speech > Verbs > Moods > Understanding Conditionals – Quiz 2 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books 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? A) 4. B) 5. C) 6. D) 10. Show Answer Correct Answer: B) 5. 2. What is the purpose of an "if" statement in programming? A) To repeat a block of code. B) To define a function. C) To declare a variable. D) To execute a block of code based on a condition. Show Answer Correct Answer: D) To execute a block of code based on a condition. 3. What happens if you don't water a plant? A) The plant will produce more flowers without water. B) The plant will thrive in dry conditions. C) The plant will wilt, suffer from dehydration, and may eventually die. D) The plant will grow faster without water. Show Answer Correct Answer: C) The plant will wilt, suffer from dehydration, and may eventually die. 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.' A) If you heat ice, it melts. B) If it is sunny, I will wear a coat. C) If it snows, I will go skiing. D) If it rains, I will stay home. Show Answer Correct Answer: D) If it rains, I will stay home. 5. When do we use 'if' in the zero conditional? A) We use 'if' in the zero conditional to indicate future possibilities. B) We use 'if' in the zero conditional to express general truths or facts. C) We use 'if' in the zero conditional to express personal opinions. D) We use 'if' in the zero conditional to ask hypothetical questions. Show Answer Correct Answer: B) We use 'if' in the zero conditional to express general truths or facts. 6. Identify the structure of a second conditional sentence. A) Unless + past simple, might + base form of the verb. B) If + past simple, would + base form of the verb. C) If + present simple, will + base form of the verb. D) If + past perfect, would have + past participle. Show Answer Correct Answer: B) If + past simple, would + base form of the verb. 7. What keyword is used to exit a loop prematurely? A) Return. B) Break. C) Continue. D) Exit. Show Answer Correct Answer: B) Break. 8. Choose the correct form:'If she (study) hard, she (pass) the exam.' A) If she studies hard, she passed the exam. B) If she studies hard, she will pass the exam. C) If she study hard, she pass the exam. D) If she studied hard, she will passed the exam. Show Answer Correct Answer: B) If she studies hard, she will pass the exam. 9. Can conditionals be used in loops? Explain how. A) Yes, conditionals can be used in loops to control execution based on conditions. B) Conditionals cannot be used in loops at all. C) Loops are only for iterating over arrays, not for conditionals. D) Conditionals can only be used outside of loops. Show Answer Correct Answer: A) Yes, conditionals can be used in loops to control execution based on conditions. 10. In a while loop, what condition is checked? A) A string that describes the loop's purpose. B) An integer that counts the iterations. C) A variable that stores the loop's output. D) A boolean expression that determines if the loop continues. Show Answer Correct Answer: D) A boolean expression that determines if the loop continues. 11. How do you create a for loop in Python? A) For i in range(5):print(i). B) For i in range(0, 5, 2):print(i). C) For (i = 0; i < 5; i++):print(i). D) For i in 5:print(i). Show Answer Correct Answer: A) For i in range(5):print(i). 12. Explain the difference between if and elif in Python. A) 'elif' is used to define loops in Python. B) The 'if' statement checks the first condition, while 'elif' checks subsequent conditions if the previous ones are false. C) 'if' can only be used once in a program. D) 'if' and 'elif' are interchangeable and mean the same thing. Show Answer Correct Answer: B) The 'if' statement checks the first condition, while 'elif' checks subsequent conditions if the previous ones are false. 13. If you touch a hot stove, then you will get burned. What is the consequence? A) You will feel cold. B) You will get a reward. C) You will become stronger. D) You will get burned. Show Answer Correct Answer: D) You will get burned. 14. What does 'if' do in a conditional statement? A) The 'if' statement checks a condition and executes code if the condition is true. B) The 'if' statement always executes regardless of the condition. C) The 'if' statement is used to define variables in programming. D) The 'if' statement is a loop that repeats code multiple times. Show Answer Correct Answer: A) The 'if' statement checks a condition and executes code if the condition is true. 15. Can second conditionals be used for future possibilities? A) Yes, second conditionals can be used for future possibilities. B) No, second conditionals are not typically used for future possibilities. C) Second conditionals are used for hypothetical situations in the past. D) Second conditionals are primarily used for present situations. Show Answer Correct Answer: B) No, second conditionals are not typically used for future possibilities. 16. How do you write an if statement in Python? A) If (condition) { do something }. B) If condition do something. C) If:condition then do something. D) If condition:do somethingelif another condition:do something elseelse:do fallback. Show Answer Correct Answer: D) If condition:do somethingelif another condition:do something elseelse:do fallback. 17. How can broadcasting be useful in games? A) Broadcasting is useful in games for real-time communication of game state to multiple players. B) Broadcasting is only useful for single-player games. C) Broadcasting reduces the need for player interaction. D) Broadcasting limits the number of players in a game. Show Answer Correct Answer: A) Broadcasting is useful in games for real-time communication of game state to multiple players. 18. What is a conditional statement? A) A conditional statement is a rule that applies to all situations. B) A conditional statement is a statement that has no outcome. C) A conditional statement is a statement that expresses a condition and its corresponding outcome. D) A conditional statement is a type of question. Show Answer Correct Answer: C) A conditional statement is a statement that expresses a condition and its corresponding outcome. 19. When do we use the zero conditional in real life? A) We use the zero conditional for general truths and facts. B) We use the zero conditional for future predictions. C) We use the zero conditional for hypothetical situations. D) We use the zero conditional for personal opinions. Show Answer Correct Answer: A) We use the zero conditional for general truths and facts. 20. Identify the conditional type:'If I finish my homework, I will go out.' A) Zero conditional. B) Third conditional. C) Second conditional. D) First conditional. Show Answer Correct Answer: D) First conditional. 21. What will the following code output:for i in range(3):print(i * 2)? A) 246. B) 123. C) 024. D) 012. Show Answer Correct Answer: C) 024. 22. Luna is learning about word formation in her English class. What is the suffix in the word "friendship" ? A) Frien. B) End. C) Ship. D) Friend. Show Answer Correct Answer: C) Ship. 23. What is the purpose of the continue statement in loops? A) The continue statement ends the loop immediately. B) The continue statement repeats the current iteration of the loop. C) The purpose of the continue statement in loops is to skip the current iteration and proceed to the next one. D) The continue statement pauses the loop for a specified time. Show Answer Correct Answer: C) The purpose of the continue statement in loops is to skip the current iteration and proceed to the next one. 24. Which of the following is a type 0 conditional? A) If you mix red and green, you get brown. B) If you mix red and blue, you get purple. C) If you mix blue and yellow, you get green. D) If you mix red and yellow, you get orange. Show Answer Correct Answer: B) If you mix red and blue, you get purple. 25. What verb tense is used in the 'if' clause (ACTION)of a zero conditional? A) Simple present tense. B) Future simple tense. C) Past simple tense. D) Present continuous tense. Show Answer Correct Answer: A) Simple present tense. 26. What verb tense is used in the if-clause of a first conditional? A) Simple present tense. B) Future perfect tense. C) Simple past tense. D) Present continuous tense. Show Answer Correct Answer: A) Simple present tense. 27. What's an example of an "If ..... then" statement? A) I like playing games outside. B) Playing outside is fun. C) Because I finished my homework, I played outside. D) If you finish your homework, then you can play outside. Show Answer Correct Answer: D) If you finish your homework, then you can play outside. 28. How do you handle exceptions in conditional logic? A) Throw exceptions without a catch block. B) Log exceptions without handling them. C) Use try-catch blocks to manage exceptions in conditional logic. D) Use if-else statements to ignore exceptions. Show Answer Correct Answer: C) Use try-catch blocks to manage exceptions in conditional logic. 29. What is a nested loop? A) A nested loop is a loop that contains another loop within it. B) A loop that runs in parallel with another loop. C) A loop that skips all iterations. D) A loop that runs only once. Show Answer Correct Answer: A) A nested loop is a loop that contains another loop within it. 30. Is the following sentence a real or unreal conditional? 'If she studies, she will pass the exam.' A) Unreal conditional. B) Mixed conditional. C) Hypothetical conditional. D) Real conditional. Show Answer Correct Answer: D) Real conditional. ← PreviousNext →Related QuizzesVerbs QuizzesParts Of Speech QuizzesUnderstanding Conditionals Quiz 1Understanding Conditionals Quiz 3Understanding Conditionals Quiz 4Understanding Conditionals Quiz 5Understanding Conditionals Quiz 6Understanding Conditionals Quiz 7Understanding Conditionals Quiz 8Understanding Conditionals Quiz 9 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books