This quiz works best with JavaScript enabled. Home > Cbse > Class 11 > Science > Computer Science > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 7 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 7 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Write the negation of the statement "The dog is brown" . A) The dog is not brown. B) The dog is black. C) Some dogs are golden. D) The dog is not black. Show Answer Correct Answer: A) The dog is not brown. 2. A block used to trigger an action only if another action happens first; cause and effect ..... A) Sensing block. B) Event. C) If then block. D) Animation. Show Answer Correct Answer: C) If then block. 3. Is the given statement true:If the chair is empty, then class is not in session. A) True. There are no chairs here, so the hypothesis is true. B) True. Nobody sits down so we don't do work. C) True. Class can't happen if a chair isn't occupied. D) False. Someone could be absent. Show Answer Correct Answer: D) False. Someone could be absent. 4. How many point are required to name a specific plane A) 2. B) 3. C) 1. D) $\infty$. E) 0. Show Answer Correct Answer: B) 3. 5. We use the (a) to create the thesis statement. A) Conclusion. B) A. Prompt. C) Background. D) Thesis. Show Answer Correct Answer: B) A. Prompt. 6. A point in the first quadrant has two positive coordinates.What is the hypothesis of the given sentence? A) A point is in the first quadrant. B) If a point is in the first quadrant. C) Then it has two positive coordinates. D) It has two positive coordinates. Show Answer Correct Answer: A) A point is in the first quadrant. 7. Write the converse of the statement:If an animal is a dog then it does not moo. A) If an animal is not a dog then it does moo. B) If an animal can moo then it is not a dog. C) If an animal does not moo then it is a dog. D) An animal is a dog if and only if it can moo. Show Answer Correct Answer: C) If an animal does not moo then it is a dog. 8. What is the negation of the hypothesis (~p) of the statement:If two angles are congruent, then they have the same degree. A) They have the same degree. B) They do not have the same degree. C) Two angles are congruent. D) Two angles are not congruent. Show Answer Correct Answer: D) Two angles are not congruent. 9. Conditional:If you are a duck, then you drive a red car.What is this statement called:If you do not drive a red car, then you are not a duck. A) Conditional. B) Contrapositive. C) Inverse. D) Converse. Show Answer Correct Answer: B) Contrapositive. 10. Write this statement as a conditional statement."Thanksgiving in the United States falls on the fourth Thursday of November." A) If it is Thanksgiving, then it is in the United States. B) If it is the fourth Thursday of November, then it is Thanksgiving in the United States. C) If it is a Thursday, then it is Thanksgiving in the United States. D) If it is a Thursday, then it is November. Show Answer Correct Answer: B) If it is the fourth Thursday of November, then it is Thanksgiving in the United States. 11. Converse:If an object is a strawberry, then it has seeds. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 12. What will be the output of the following statement? print(str(int(float(int(5.6))))) A) '5'. B) 5. C) 5.6. D) '5.6'. Show Answer Correct Answer: B) 5. 13. Consider the statement:If Ed lives in Texas, then he lives South of Canada.Is the statement TRUE/FALSE/Cannot be determined? A) True. B) False. C) Cannot be determined. D) None of the above. Show Answer Correct Answer: A) True. 14. Identify the hypothesis 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: B) An angle is bisected. 15. A concluding statement reached using inductive reasoning is called a ..... A) Compound statement. B) Conjecture. C) Condition. D) Counterexample. Show Answer Correct Answer: B) Conjecture. 16. ..... is an act of sending an email to a user, misleading him to believe that it is from a trusting person or organization. A) Phishing. B) Spamming. C) Hacking. D) All of these. Show Answer Correct Answer: A) Phishing. 17. Conditional Statement:If an animal is a dog, then it has four legs.What is the conclusion? A) It does not have four legs. B) An animal is a dog. C) An animal is not a dog. D) It has four legs. Show Answer Correct Answer: D) It has four legs. 18. Suppose we want to stop current iteration in a loop, what would be used? A) Break. B) Continue. C) Pass. D) All of the above. Show Answer Correct Answer: B) Continue. 19. Identify the hypothesis of the statement:A number that does not end with 3 is divisible by 2 A) A number does not end with 3. B) A number is divisible by 2. C) All the above. D) None of the above. Show Answer Correct Answer: A) A number does not end with 3. 20. Check the output.k=3 while k<6:print(k) k=k+1 A) 3456. B) 345. C) 45. D) 35. Show Answer Correct Answer: B) 345. 21. What Javascript code matches this statement:The score is not 0 A) If (score not 0). B) If (score !! 0). C) If (score =! 0). D) If (score != 0). Show Answer Correct Answer: D) If (score != 0). 22. What is the purpose of using conditionals in programming? A) To make decisions based on certain conditions. B) To repeat a block of code multiple times. C) To store and organize data. D) To perform mathematical calculations. Show Answer Correct Answer: A) To make decisions based on certain conditions. 23. Select the conditional statement of the biconditional statement:I am a junior if and only if I am in 11th grade. A) I am a junior. B) If I am a junior, then I am in 11th grade. C) I am in 11th grade. D) None of the above. Show Answer Correct Answer: B) If I am a junior, then I am in 11th grade. 24. If it is a triangle then it has three sides.What is the hypothesis? A) It has three sides. B) It is a polygon. C) It is a triangle. D) A triangle is a polygon. Show Answer Correct Answer: C) It is a triangle. 25. If a figure is a rhombus, then the figure is a parallelogram.If a figure is a parallelogram, then the figure is a quadrilateral. A) If a figure is a rhombus, then the figure is a quadrilateral. B) If a figure is a quadrilateral, then the figure is a rhombus. C) Not possible. D) None of the above. Show Answer Correct Answer: A) If a figure is a rhombus, then the figure is a quadrilateral. 26. A contrapositive statement is formed by ..... they hypothesis and conclusion A) Negating. B) Switching. C) Negating and switching. D) None of the above. Show Answer Correct Answer: C) Negating and switching. 27. What is the inverse of this statement:If it is Wednesday, then we do not have Geometry class. A) If it is not Wednesday, then we have Geometry class. B) If it is not Wednesday, then we do not have Geometry class. C) If we do not have Geometry class, then it is Wednesday. D) If we have Geometry class, then it is not Wednesday. Show Answer Correct Answer: A) If it is not Wednesday, then we have Geometry class. 28. What is a counterexample? A) A specific case that help to prove a conjecture. B) A generalism that cannot be applied to a specific case. C) A specific case for which a conjecture is false. D) A general case that is supported by specific examples. Show Answer Correct Answer: C) A specific case for which a conjecture is false. 29. Conditional:If Mary gets married, then the reception will be at the country club.What is this statement:If the reception is at the country club, then Mary will be getting married. A) Negation. B) Inverse. C) Converse. D) Contrapositive. Show Answer Correct Answer: C) Converse. 30. "If the boy is smart, then he is talented" . What is the hypothesis? A) If the boy is smart. B) The boy is smart. C) He is talented. D) Then he is talented. Show Answer Correct Answer: B) The boy is smart. 31. The sum of two consecutive numbers is always an odd number. A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 32. What does (~) mean? A) To make negative. B) To make positive. C) To be nuetral. D) None of the above. Show Answer Correct Answer: A) To make negative. 33. Identify the conclusion to the following:If Spencer wins his soccer game, then he will be happy. A) Spencer lost his game. B) Spencer is not happy if he does not win his soccer game. C) Spencer is happy. D) Spencer is not happy. Show Answer Correct Answer: C) Spencer is happy. 34. It describe an ordered set of values in Python A) List. B) Tuple. C) String. D) All of these. Show Answer Correct Answer: D) All of these. 35. Conditional statements which has two parts, the hypothesis and the conclusion. A) If-Then statement. B) Statement. C) Then statement. D) If statement. Show Answer Correct Answer: A) If-Then statement. 36. Which of these would move the sprite down on the stage? A) Change x by-10. B) Change y by 10. C) Change x by 10. D) Change y by-10. Show Answer Correct Answer: D) Change y by-10. 37. Conditional Statement:If you are in California, then you are in Los Angeles.What is the hypothesis? A) You are not in California. B) You are in Los Angeles. C) You are not in Los Angeles. D) You are in California. Show Answer Correct Answer: D) You are in California. 38. Name the two types of loops. A) While, if. B) For, While. C) If, if else. D) For, if. Show Answer Correct Answer: B) For, While. 39. What is the hypothesis of the following statement: "If Johnny is late to school, then his mom will have to drive him." A) Johnny is late to school. B) His mom will have to drive him. C) Then his mom will have to drive him. D) If Johnny is late to school. Show Answer Correct Answer: A) Johnny is late to school. 40. The 'else' statement is optional in Python A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 41. Given, "If angles are congruent, then the measures of the angles are equal." Identify the inverse. A) If the measures of the angles are not equal, then the angles are not congruent. B) If the measures of the angles are equal, then the angles are congruent. C) If the angles are not congruent, then the measure of the angles are equal. D) "If angles are not congruent, then the measures of the angles are not equal.". Show Answer Correct Answer: D) "If angles are not congruent, then the measures of the angles are not equal.". 42. True or False:This is a good example of a thesis statement:In this essay I will discuss the crime rate in Mountain City. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 43. Let p represent:Two angles are supplementary.Let q represent:The angles have a sum of 180$^\circ$What is the symbolic representation of the following statement;If two angles have a sum of 180$^\circ$, then the angles are supplementary. A) ~q $\rightarrow$ ~p. B) Q $\rightarrow$ p. C) P $\rightarrow$ q. D) ~p $\rightarrow$ q. Show Answer Correct Answer: B) Q $\rightarrow$ p. 44. Conditional: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) Inverse. B) Negation. C) Contrapositive. D) Converse. Show Answer Correct Answer: C) Contrapositive. 45. If my son ..... (not/want) to go out, I ..... (cook) dinner at home. A) Don't want, will cook. B) Is not going to cook, cook. C) Doesn't want, cooked. D) Doesn't want, will cook. Show Answer Correct Answer: D) Doesn't want, will cook. 46. The two membership operators in Python are ..... A) If ElIF. B) In and not in. C) In and range. D) Range and Between. Show Answer Correct Answer: B) In and not in. 47. Give a counter example to the following statement:"If candy is crunchy, then it contains nuts." A) Almond Joy. B) Pixy Stix. C) Snickers Bar. D) Nerds. Show Answer Correct Answer: D) Nerds. 48. How many times print statement will execute? i=0For i in range(1, 100, 2):print(i) A) 50. B) 101. C) 100. D) 49. Show Answer Correct Answer: A) 50. 49. What is the format for the contrapositive of a conditional statement? A) If ~q, the ~p. B) If q, then p. C) If ~p, then q. D) If p, then q. Show Answer Correct Answer: A) If ~q, the ~p. 50. What is the converse ( $q\rightarrow p$ A) If you are not 13, then you are a teenager. B) If you are a teenager, then you are 13. C) If you are 13, then you are not a teenager. D) If you are not a teenager, then you are not 13. Show Answer Correct Answer: B) If you are a teenager, then you are 13. 51. If it snows, ..... still drive to the coast? A) Will you. B) Would you. C) Would you have. D) None of the above. Show Answer Correct Answer: A) Will you. 52. The ..... statements cause the program control to transfer to a specific location depending on the outcome of the conditional expression. A) Sequential. B) Conditional. C) Iterative. D) All of these. Show Answer Correct Answer: B) Conditional. 53. What is the purpose of a while loop in Python? A) To repeatedly execute a block of code as long as a certain condition is true. B) To terminate the program immediately. C) To skip a block of code. D) To execute a block of code only once. Show Answer Correct Answer: A) To repeatedly execute a block of code as long as a certain condition is true. 54. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you feed your turtle, then it will grow."you feed your turtle A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis. 55. 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) $\therefore p\longleftrightarrow q$. B) $\sim q\\longrightarrow\sim p$. C) $\sim p\\longrightarrow\sim q$. D) $\sim p\\longrightarrow q$. Show Answer Correct Answer: B) $\sim q\\longrightarrow\sim p$. 56. 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. 57. 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. 58. Given, "If I have a Siberian Husky, then I have a dog." Identify the inverse. #18 A) If I have a dog, then I have a Siberian Husky. B) If I do not have a dog, then I do not have a Siberian Husky. C) If I do not have a Siberian Husky, then I have a dog. D) If I do not have a Siberian Husky, then I do not have a dog. Show Answer Correct Answer: D) If I do not have a Siberian Husky, then I do not have a dog. 59. 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. 60. 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) Contrapositive. B) Inverse. C) Converse. D) Negation. Show Answer Correct Answer: A) Contrapositive. ← PreviousNext →Related QuizzesScience QuizzesClass 11 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 8Class 11 Computer Science Chapter 1 Computer Fundamentals Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books