This quiz works best with JavaScript enabled. Home > English Grammar > Grammar > Parts Of Speech > Verbs > Moods > Understanding Conditionals – Quiz 5 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Understanding Conditionals Quiz 5 (51 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. In coding, conditionals tell a computer to do which of the following? A) How to do it. B) When to do it. C) To do it faster. D) Where to do it. Show Answer Correct Answer: B) When to do it. 2. Can you give a real-life example of a zero conditional? A) If you heat ice, it melts. B) If you freeze water, it turns to ice cream. C) If you water plants, they will grow. D) If it rains, the ground get wet. Show Answer Correct Answer: A) If you heat ice, it melts. 3. Mia asked, "You're coming to the meeting, aren't you?" A) To the meeting. B) Aren't you. C) You're coming. D) Coming to the meeting. Show Answer Correct Answer: B) Aren't you. 4. Identify the first conditional:'If they invite me, I (will go/go).' or 'If you heat water, it boils.' A) If you heat water, it will boil. B) If they invite me, I go. C) If it rains, the ground is wet. D) If they invite me, I will go. Show Answer Correct Answer: D) If they invite me, I will go. 5. How do you check if a number is even using a conditional statement? A) If (number / 2 == 0) { // number is even }. B) If (number % 2 !== 0) { // number is odd }. C) If (number % 2 === 0) { // number is even }. D) If (number == 2) { // number is even }. Show Answer Correct Answer: C) If (number % 2 === 0) { // number is even }. 6. True or false:A conditional statement must have all the following:If, then, else A) False. B) True. C) All the above. D) None of the above. Show Answer Correct Answer: A) False. 7. Formulate a type 0 conditional sentence about water. A) If water is exposed to sunlight, it turns to ice. B) If water is mixed with salt, it boils. C) If water reaches 0 degrees Celsius, it freezes. D) If water is heated, it evaporates. Show Answer Correct Answer: C) If water reaches 0 degrees Celsius, it freezes. 8. Which conditional is used for real situations? A) Third conditional. B) Second conditional. C) Zero conditional. D) First conditional. Show Answer Correct Answer: D) First conditional. 9. What is the output of the following code:x = 0; while x < 3:print(x); x += 1? A) 1.5. B) 3. C) -1. D) 012. Show Answer Correct Answer: D) 012. 10. Match the sentence to its type:A) If you touch a flame, it burns. B) If I go to the party, I will have fun. (1. first coditional, 2. Zero Conditional) A) A:2, B:2. B) A:2, B:1. C) A:1, B:1. D) A:1, B:2. Show Answer Correct Answer: B) A:2, B:1. 11. What is the purpose of the else clause? A) To create a loop in a program. B) To execute code when the if condition is true. C) To execute code when the if condition is false. D) To define a function in Python. Show Answer Correct Answer: C) To execute code when the if condition is false. 12. If Aria studies hard, what will happen? A) If Aria had a car, she would drive to work. B) If Aria studies hard, she will pass the exam. C) If Aria were taller, she would play basketball. D) If it had rained, Aria would have stayed home. Show Answer Correct Answer: B) If Aria studies hard, she will pass the exam. 13. What is the difference between 'while' and 'for' loops? A) 'While' loops are faster than 'for' loops. B) The main difference is that 'while' loops are condition-based, while 'for' loops are count-based. C) 'For' loops can only iterate over arrays. D) 'While' loops require a specific number of iterations. Show Answer Correct Answer: B) The main difference is that 'while' loops are condition-based, while 'for' loops are count-based. 14. Complete the sentence:If it is sunny tomorrow, we ..... (go) to the park. A) Will go. B) Are going. C) Might go. D) Could go. Show Answer Correct Answer: A) Will go. 15. How do you implement a default case in a switch statement? A) Implement a 'catch' block for unmatched cases. B) Leave the switch statement empty for default behavior. C) Use 'default:' followed by the code to execute when no cases match. D) Use 'else' to handle unmatched cases. Show Answer Correct Answer: C) Use 'default:' followed by the code to execute when no cases match. 16. If she were the president, she would change the law. (Second or Third?) A) Third. B) Second. C) First. D) None of the above. Show Answer Correct Answer: B) Second. 17. What is the condition in this statement:If you wake up early, then you can have breakfast? A) Waking up late. B) Waking up early. C) Having breakfast. D) Skipping breakfast. Show Answer Correct Answer: B) Waking up early. 18. Which of the following is a first conditional? 'If you touch a flame, it burns.' or 'If I finish my homework, I will go out.' A) If I finish my homework, I will go out. B) If you heat ice, it melts. C) If it rains, I will stay inside. D) If I eat too much, I get hungry. Show Answer Correct Answer: A) If I finish my homework, I will go out. 19. If I were you, I would apologize. (Second or Third?) A) Fourth. B) Fifth. C) Second. D) First. Show Answer Correct Answer: C) Second. 20. How do you write a basic if statement in Python? A) If condition do something. B) If (condition) { do something }. C) If:condition then do something. D) If condition:do something. Show Answer Correct Answer: D) If condition:do something. 21. What is the correct way to write a nested loop? A) For (int i = 0; i < outerLimit; i++) { while (j < innerLimit) { // code to execute }}. B) For (int i = 0; i < outerLimit; j++) { for (int j = 0; j < innerLimit; i++) { // code to execute }}. C) For (int i = 0; i < outerLimit; i++) { for (int j = 0; j < innerLimit; j++) { // code to execute }}. D) For (int i = 0; i < outerLimit; i++) { for (int j = 0; j < innerLimit; j++) // code to execute }. Show Answer Correct Answer: C) For (int i = 0; i < outerLimit; i++) { for (int j = 0; j < innerLimit; j++) { // code to execute }}. 22. Lily is planning her evening. Which of the following sentences is a first conditional? A) If I finish my homework, I will watch TV. B) If I had a dog, I would walk it every day. C) If I were you, I would study more. D) If it had snowed, we would have stayed home. Show Answer Correct Answer: A) If I finish my homework, I will watch TV. 23. Choose the correct option:If I were you, I ..... (would/will) apologize. A) Can. B) Should. C) Would. D) Might. Show Answer Correct Answer: C) Would. 24. If it is sunny, then we can play outside. What is the opposite condition? A) If it is sunny, then we cannot play outside. B) If it is raining, then we can play outside. C) If it is cloudy, then we can play outside. D) If it is not sunny, then we cannot play outside. Show Answer Correct Answer: D) If it is not sunny, then we cannot play outside. 25. How do you iterate over a list using a for loop? A) For each item in my list:. B) For item in my list:. C) For item from my list:. D) Foreach item in my list do. Show Answer Correct Answer: B) For item in my list:. 26. How do you use a while loop to count from 1 to 10? A) Do { console.log(counter); counter++; } while (counter <= 10);. B) If (counter <= 10) { console.log(counter); counter++; }. C) For (counter = 1; counter < 10; counter++) { console.log(counter); }. D) While (counter <= 10) { console.log(counter); counter++; }. Show Answer Correct Answer: D) While (counter <= 10) { console.log(counter); counter++; }. 27. What happens if the condition in a conditional statement is false? A) The code block for the 'true' case executes. B) The code block for the 'false' case executes. C) The condition is re-evaluated until it becomes true. D) The program terminates immediately. Show Answer Correct Answer: B) The code block for the 'false' case executes. 28. Which conditional uses 'if' and the present simple? A) Second conditional. B) Third conditional. C) Zero conditional. D) First conditional. Show Answer Correct Answer: D) First conditional. 29. Which keyword is used to create a loop in Python? A) Loop. B) Repeat. C) Iterate. D) For, while. Show Answer Correct Answer: D) For, while. 30. If he had asked me, I would have helped him. (Second or Third?) A) Third. B) Both. C) Neither. D) First. Show Answer Correct Answer: A) Third. 31. Which of the following is NOT a zero conditional? 'If you mix sugar in water, it dissolves.' or 'If I finish my homework, I will watch TV.' A) If you heat ice, it melts. B) If I finish my homework, I will watch TV. C) If it rains, the ground gets wet. D) If you touch fire, it burns. Show Answer Correct Answer: B) If I finish my homework, I will watch TV. 32. Which of the following is NOT a characteristic of first conditional? A) It talks about real or possible situations in the future. B) It talks about imaginary or impossible situations. C) All the above. D) None of the above. Show Answer Correct Answer: B) It talks about imaginary or impossible situations. 33. Emma found a word "unhappy" in her book. What is the prefix in the word "unhappy" ? A) Un. B) Happy. C) Hap. D) Ppy. Show Answer Correct Answer: A) Un. 34. What does a type 2 conditional express? A) Hypothetical situations in the present or future. B) General truths and facts. C) Certainty in future outcomes. D) Real events in the past. Show Answer Correct Answer: A) Hypothetical situations in the present or future. 35. What is a common error in using 'were' in second conditionals? A) Using 'were' only in past tense scenarios. B) Using 'was' in all conditional sentences. C) Using 'was' instead of 'were' with singular subjects. D) Using 'were' with plural subjects incorrectly. Show Answer Correct Answer: C) Using 'was' instead of 'were' with singular subjects. 36. What happens in a first conditional if the condition is met? A) The condition will not affect the outcome. B) The result will be the opposite. C) The result will happen. D) The result is uncertain. Show Answer Correct Answer: C) The result will happen. 37. Fill in the blank:'If you (not eat) breakfast, you (feel) hungry later.' A) Do not eat, feel hungry. B) Eat breakfast, will feel. C) Do not eat, will feel. D) If you do not eat, you will hungry. Show Answer Correct Answer: C) Do not eat, will feel. 38. Which of the following is a type 2 conditional? A) If I had a million dollars, I would travel the world. B) If I had a million dollars, I travel the world. C) If I have a million dollars, I will travel the world. D) If I had a million dollars, I would have traveled the world. Show Answer Correct Answer: A) If I had a million dollars, I would travel the world. 39. Can you name a programming language that uses conditional statements? A) HTML. B) Scratch. C) JavaScript. D) CSS. Show Answer Correct Answer: B) Scratch. 40. What is a ternary operator? A) The ternary operator is represented as 'valueIfTrue:condition? valueIfFalse'. B) The ternary operator is a type of loop. C) The ternary operator is represented as 'condition? valueIfTrue:valueIfFalse'. D) The ternary operator is used for defining functions. Show Answer Correct Answer: C) The ternary operator is represented as 'condition? valueIfTrue:valueIfFalse'. 41. What is the difference between 'if' and 'else' in a conditional statement? A) 'if' checks a condition; 'else' executes if the condition is false. B) 'if' executes a block of code; 'else' checks a condition. C) 'if' is used for loops; 'else' is for functions. D) 'if' and 'else' are interchangeable in syntax. Show Answer Correct Answer: A) 'if' checks a condition; 'else' executes if the condition is false. 42. What type of situations do first conditionals describe? A) First conditionals describe past events. B) First conditionals describe hypothetical situations. C) First conditionals describe real and possible future situations. D) First conditionals describe universal truths. Show Answer Correct Answer: C) First conditionals describe real and possible future situations. 43. Can you give an example of a nested for loop? A) For (int i = 0; i < 3; i++) { for (int j = 0; j < 2; j++) { System.out.println(i + '' '' + j); }}. B) For (int i = 0; i < 5; i++) { System.out.println(i); }. C) For (int i = 0; i < 2; i++) { for (int j = 2; j < 0; j ) { System.out.println(i + j); }}. D) For (int j = 0; j < 3; j++) { for (int i = 0; i < 1; i++) { System.out.println(j); }}. Show Answer Correct Answer: A) For (int i = 0; i < 3; i++) { for (int j = 0; j < 2; j++) { System.out.println(i + '' '' + j); }}. 44. How can you combine multiple if statements into one? A) By using a single if statement with multiple conditions connected by logical operators. B) By using a switch statement instead. C) By using only one condition at a time. D) By writing each if statement separately without any connection. Show Answer Correct Answer: A) By using a single if statement with multiple conditions connected by logical operators. 45. What happens in the first conditional if the condition is true? A) The condition will be ignored. B) The result may not happen. C) The outcome is uncertain. D) The result will happen. Show Answer Correct Answer: D) The result will happen. 46. Grace found an unbelievable story in the newspaper. What is the prefix in the word "unbelievable" ? A) Liev. B) Able. C) Believ. D) Un. Show Answer Correct Answer: D) Un. 47. Which of these is a true conditional statement? A) Because the light is red, stop. B) I stopped at the red light. C) If the light is red, then stop. D) Stop when the light is red. Show Answer Correct Answer: C) If the light is red, then stop. 48. What is a conditional statement in Python? A) A conditional statement is a function that always returns true. B) A conditional statement in Python is a statement that executes code based on whether a condition is true or false, using 'if', 'elif', and 'else'. C) A conditional statement is a type of variable that stores boolean values. D) A conditional statement is a loop that repeats code until a condition is met. Show Answer Correct Answer: B) A conditional statement in Python is a statement that executes code based on whether a condition is true or false, using 'if', 'elif', and 'else'. 49. Match the sentence to its type:A) If you drop an object, it falls. B) If it snows tomorrow, we will go skiing. A) A) 1. Zero Conditional, B) 2. First Conditional. B) A) 1. First Conditional, B) 2. Zero Conditional. C) All the above. D) None of the above. Show Answer Correct Answer: A) A) 1. Zero Conditional, B) 2. First Conditional. 50. Which of the following is NOT a characteristic of zero conditional? A) B) It uses 'will' in the result clause. B) It uses 'if' in the condition clause. C) Both parts of the sentence use the present simple. D) None of the above. Show Answer Correct Answer: A) B) It uses 'will' in the result clause. 51. When do we use the first conditional in real life? A) We use the first conditional for hypothetical situations that are unlikely to happen. B) We use the first conditional to talk about past events. C) We use the first conditional to discuss real and possible future situations. D) We use the first conditional to express wishes and desires. Show Answer Correct Answer: C) We use the first conditional to discuss real and possible future situations. ← PreviousRelated QuizzesVerbs QuizzesParts Of Speech QuizzesUnderstanding Conditionals Quiz 1Understanding Conditionals Quiz 2Understanding Conditionals Quiz 3Understanding Conditionals Quiz 4Advanced Conditionals QuizConditional And Subjunctive Mood QuizConditional Mood QuizConditional Sentences Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books