This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 12 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 12 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What will be the output of the following code?if 'bar' in \{'foo':1, 'bar':2, 'baz':3\}:print(1) print(2)if 'a' in 'qux':print(3) print(4) A) It doesn't generate any output. B) 1 2. C) 1 2 3 4. D) 1 2 3. Show Answer Correct Answer: B) 1 2. 2. What is the contrapositive ( $\sim q\rightarrow\sim p$ A) If you are not 13, then you are a teenager. B) If you are 13, then you are not a teenager. C) If you are a teenager, then you are 13. D) If you are not a teenager, then you are not 13. Show Answer Correct Answer: D) If you are not a teenager, then you are not 13. 3. Given the conditional;"If Ty'Shawn is late then he will get a tardy"What is the inverse? A) If Ty'Shawn is on time, then we won't get a tardy. B) If Ty'Shawn gets a tardy, then he is late. C) If Ty'Shawn is late then he won't get a tardy. D) If Ty'Shawn doesn't get a tardy, then he is on time. Show Answer Correct Answer: A) If Ty'Shawn is on time, then we won't get a tardy. 4. Determine the truth value of the followinga bisector divides an angle into two congruent parts and complementary angles have a sum of 180 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 5. Write the contrapositive of the following statement."If a figure is a triangle, then the angles add to 180. A) If a figure is not a triangle, then the angles do not add to 180. B) If the angles of a figure do not add to 180, then it is not a triangle. C) If a figure has angles that add to 180, then it is a triangle. D) None of the above. Show Answer Correct Answer: B) If the angles of a figure do not add to 180, then it is not a triangle. 6. If I have a black lab, then I have a dog. Identify the hypothesis. A) I have a black lab. B) I have a dog. C) All the above. D) None of the above. Show Answer Correct Answer: A) I have a black lab. 7. Conditional Statement:If a doctor suspects her patient has a broken bone, then she should take an X-ray."If a doctor does not take an X-ray, then she does not suspect her patient has a broken bone" is the??? of the conditional. A) Converse. B) Inverse. C) Contrapositive. D) Biconditional. Show Answer Correct Answer: C) Contrapositive. 8. If a whole number has two as a factor, then it is even.What is the conclusion of the given conditional statement? A) Then it is even. B) If a whole number has two as a factor. C) A whole number has two as a factor. D) It is even. Show Answer Correct Answer: D) It is even. 9. For a conditional statement to be false the simple statements must be ..... followed by ..... A) False followed by True. B) True followed by True. C) False followed by False. D) True followed by False. Show Answer Correct Answer: D) True followed by False. 10. What is the maximum choices will we have in 2 level nested if else hierarchy? A) 3. B) 4. C) 5. D) 6. Show Answer Correct Answer: D) 6. 11. An if statement must evaluate to: A) Right or Wrong. B) True or False. C) All the above. D) None of the above. Show Answer Correct Answer: B) True or False. 12. Complete the conjecture. Think of examples to help.The product of any two odd numbers is ..... A) Even. B) Odd. C) Zero. D) Positive. Show Answer Correct Answer: B) Odd. 13. Choose the output.for i in range (10, 13):print (i*i) A) 100121144. B) 100121144169. C) 100121. D) 100169. Show Answer Correct Answer: A) 100121144. 14. Conditional Statement:If a whole number ends in 8, then it is divisible by 2.What is the contrapositive of the conditional statement? A) If a whole number is divisible by 2, then it ends in 8. B) If a whole number does not end in 8, then it is not divisible by 2. C) If a whole number is not divisible by 2, then it does not end in 8. D) A whole number ends in 8 if and only if it is divisible by 2. Show Answer Correct Answer: C) If a whole number is not divisible by 2, then it does not end in 8. 15. Given the conditional statement;"If I am hungry, then I eat."Which of the following is the inverse? A) If I eat, then I am hungry. B) If I don't eat then I am not hungry. C) If I am not hungry, then I don't eat. D) If I am not hungry, then I eat. Show Answer Correct Answer: C) If I am not hungry, then I don't eat. 16. Identify the hypothesis of the conditional statement:A four sided figure is a rectangle A) A four sided figure is a rectangle. B) A shape has four sides. C) A shape is a rectangle. D) A rectangle has four sides. Show Answer Correct Answer: B) A shape has four sides. 17. A statement that contains the phrase "if and only if" A) Converse. B) Inverse. C) Biconditional. D) Contrapositive. Show Answer Correct Answer: C) Biconditional. 18. What is the converse of the following statement?If it is Saturday, then the school is closed A) If the school is closed, then it is Saturday. B) If it is not Saturday, then the school is not closed. C) If the school is not closed, then it is not Saturday. D) None of the above. Show Answer Correct Answer: A) If the school is closed, then it is Saturday. 19. "If the cloud is dark, then it will rain" . What is the hypothesis? A) Then it will rain. B) If the cloud is dark. C) It will rain. D) The cloud is dark. Show Answer Correct Answer: D) The cloud is dark. 20. Write the conditional in if-then form:A four sided figure is a rectangle A) A four sided figure is a rectangle. B) If a shape has four sides then it is a rectangle. C) If a shape is a rectangle then it has four sides. D) A rectangle has four sides. Show Answer Correct Answer: B) If a shape has four sides then it is a rectangle. 21. The for loop is used when we are sure about how many times a loop body will be executed. It is also known as ..... A) Definite loop. B) Indefinite loop. C) All the above. D) None of the above. Show Answer Correct Answer: A) Definite loop. 22. Given, "If angles are congruent, then the measures of the angles are equal." Identify the converse. A) If the measures of the angles are equal, then the angles are congruent. B) "If angles are not congruent, then the measures of the angles are not equal.". C) If the measures of the angles are not equal, then the angles are not congruent. D) If the angles are not congruent, then the measure of the angles are equal. Show Answer Correct Answer: A) If the measures of the angles are equal, then the angles are congruent. 23. Jim ..... (not/get) a better job if he ..... (not/pass) that exam. A) Don't get, doesn't pass. B) Won't get, doesn't pass. C) Doesn't get, won't pass. D) Won't get, don't pass. Show Answer Correct Answer: B) Won't get, doesn't pass. 24. For a conditional statement to be FALSE ..... A) It must have a TRUE hypothesis and a FALSE conclusion. B) It must have a TRUE hypothesis and a TRUE conclusion. C) It must have a FALSE hypothesis and a FALSE conclusion. D) It must have a FALSE hypothesis and a TRUE conclusion. Show Answer Correct Answer: A) It must have a TRUE hypothesis and a FALSE conclusion. 25. A ..... is a fixed position in space and has no dimensions or size. A) Point. B) Line. C) Plane. D) Cube. Show Answer Correct Answer: A) Point. ← 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