This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 18 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 18 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Consider the following statements. p:The sum of two angles is 180 degreesq:The two angles are supplementsWhich of the following is a symbolic representation of:If two angles are not supplements, then the sum of the two angles is not 180 degrees. A) $\sim p\\longrightarrow\sim q$. B) $\sim q\\longrightarrow\sim p$. C) $\sim p\\longrightarrow q$. D) $\therefore p\longleftrightarrow q$. Show Answer Correct Answer: B) $\sim q\\longrightarrow\sim p$. 2. When using an if-else statement, what happens if the condition is false? A) The code inside the else block is executed. B) The code inside the if block is executed. C) The code inside both the if and else blocks is executed. D) The code inside neither the if nor else block is executed. Show Answer Correct Answer: A) The code inside the else block is executed. 3. Original:If Emily is not late to class, then she will not be marked tardy.What is this? If Emily is late to class, then she will be marked tardy. A) Converse. B) Inverse. C) Contrapositive. D) Negation. Show Answer Correct Answer: B) Inverse. 4. Given, "If I have a Siberian Husky, then I have a dog." Identify the inverse. #18 A) If I do not have a Siberian Husky, then I do not have a dog. B) If I have a dog, then I have a Siberian Husky. C) If I do not have a dog, then I do not have a Siberian Husky. D) If I do not have a Siberian Husky, then I have a dog. Show Answer Correct Answer: A) If I do not have a Siberian Husky, then I do not have a dog. 5. When can a biconditional statement be true? A) When the inverse and the converse are both true. B) When the original statement (conditional statement) & the contrapositive are both true. C) When the converse is true. D) When the original statement (conditional statement) and the converse are both true. Show Answer Correct Answer: D) When the original statement (conditional statement) and the converse are both true. 6. Original:If Jenny buys a guitar, then she will not buy a keyboard.What is this? If Jenny does buy a keyboard, then she will not buy a guitar. A) Converse. B) Inverse. C) Contrapositive. D) Negation. Show Answer Correct Answer: C) Contrapositive. 7. Which of the following is a biconditional of the following statements?If segments are congruent, then they have equal lengths.If segments of equal lengths, then they are congruent. A) If segments are congruent, then they have equal lengths. B) If segments of equal lengths, then they are congruent. C) Segments are congruent if and only if they have equal lengths. D) None of the above. Show Answer Correct Answer: C) Segments are congruent if and only if they have equal lengths. 8. Given the conditional statement;"If it is Wednesday, then Jane doesn't have baseball practice."What is the hypothesis of this statement. A) It is Wednesday. B) Jane doesn't have baseball practice. C) If it is Wednesday. D) Then Jane doesn't have baseball practice. Show Answer Correct Answer: A) It is Wednesday. 9. Identify the hypothesis and conclusion:If $3x-7=32$ $x=13.$ A) Hypothesis:$3x-7=32$ $x=13$. B) Hypothesis:$x=13$ $3x-7=32$. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis:$3x-7=32$ $x=13$. 10. The ..... loop is used when you are sure about how many times a loop body will be executed. A) While. B) For. C) While else. D) None of these. Show Answer Correct Answer: B) For. 11. If they ..... (wait) here, they ..... (be) late. A) Waited, are. B) Waits, will be. C) Wait, are. D) Wait, will be. Show Answer Correct Answer: D) Wait, will be. 12. Conditional Statement:If you are in California, then you are in Los Angeles.What is the conclusion? A) You are in California. B) You are not in California. C) You are in Los Angeles. D) You are not in Los Angeles. Show Answer Correct Answer: C) You are in Los Angeles. 13. What do you call the second part of a conditional statement that follows the word "then" ? A) Hypothesis. B) Conclusion. C) Conjecture. D) Hypoallergenic. Show Answer Correct Answer: B) Conclusion. 14. Given the conditional statement;"If Max gets good grade, then he won't be grounded"Which of the following is the contrapositive? A) If Max isn't grounded then he gets good grades. B) If Max doesn't get good grade then he will be grounded. C) If Max gets grounded then he doesn't get good grades. D) If Max gets good grades, the he will get grounded. Show Answer Correct Answer: C) If Max gets grounded then he doesn't get good grades. 15. Which of the following is the BICONDITIONAL of the statement below?If there is lightning, then there is thunder. A) If there is not lightning, then there is not thunder. B) If there is thunder, then there is lightning. C) There is lightning if and only if (iff) there is thunder. D) There is no biconditional statement. Show Answer Correct Answer: C) There is lightning if and only if (iff) there is thunder. 16. When writing a biconditional statement, we use the phrase ..... between the hypothesis and conclusion. A) If. B) Then. C) If and only if. D) Always. Show Answer Correct Answer: C) If and only if. 17. What phrase does a biconditional statement use? A) If, then. B) If, when. C) If and only if. D) Then, if. Show Answer Correct Answer: C) If and only if. 18. We ..... (be) late if we ..... (not/hurry). A) Will be, don't hurry. B) Will be, doesn't hurry. C) Are, not hurry. D) Are, won't hurry. Show Answer Correct Answer: A) Will be, don't hurry. 19. Identify the conclusion of the statement:Two congruent angles are created when an angle is bisected A) Two congruent angles are created. B) An angle is bisected. C) All the above. D) None of the above. Show Answer Correct Answer: A) Two congruent angles are created. 20. What will be the output of the following code?name = "maria"if name == "melissa":print("usa")elif name == "mary":print("ireland")else:print("colombia") A) Usa. B) Ireland. C) Colombia. D) None of the above. Show Answer Correct Answer: C) Colombia. 21. Determine the truth value of the conditional statement. If true, explain your reasoning. If false, give a counterexample.If I roll two six-sided dice and sum of the numbers is 11, then one die must be a five. A) True. 5 plus 6 is the only way to get 11. B) False. 8 + 3 = 11. C) True. D) False. Two different numbers could add to 11. Show Answer Correct Answer: A) True. 5 plus 6 is the only way to get 11. 22. In programming iteration is often referred to as ..... A) Variable. B) Loop. C) Constant. D) Run. Show Answer Correct Answer: B) Loop. 23. In a Boolean expression, what value is returned when both conditions are true? A) True. B) False. C) Null. D) Undefined. Show Answer Correct Answer: A) True. 24. Determine the truth value of the following8 is a prime number and 6 is an even number A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 25. Consider the statement:If Ed lives in Texas, then he lives South of Canada.What is the CONVERSE of this statement? A) If Ed lives in Texas, then he lives South of Canada. B) If Ed lives South of Canada, then he lives in Texas. C) Ed lives in Texas. D) Ed lives South of Canada. E) None of these. Show Answer Correct Answer: B) If Ed lives South of Canada, then he lives in Texas. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 1Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 2Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 3Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 4Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 5Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 6Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 7Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 8Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 9Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books