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 3 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 3 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. If there is an angle, then it is acute. What is an appropriate counterexample? A) 120$^\circ$. B) 70$^\circ$. C) True. There is no counterexample. D) 45$^\circ$. Show Answer Correct Answer: A) 120$^\circ$. 2. The valid combination of both the operands and operators makes an ..... which returns a computer result. A) Argument. B) Looping. C) Expression. D) Operands. Show Answer Correct Answer: C) Expression. 3. Check the output.Print(10 in [1, 2, 3, 4, 10, 12]) A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 4. Which property states that 4 = 4? A) Symmetric Property. B) Reflexive Property. C) Transitive Property. D) Substitution Property. Show Answer Correct Answer: B) Reflexive Property. 5. I ..... (not/go) if you ..... (not/come) with me. A) Won't go. doesn't come. B) Am not going, am not coming. C) Won't go, don't come. D) Don't go, don't come. Show Answer Correct Answer: C) Won't go, don't come. 6. Write the inverse 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: A) If a figure is not a triangle, then the angles do not add to 180. 7. Which statement is logically equivalent to the conditional statement? A) Contrapositive. B) Reverse. C) Inverse. D) Converse. Show Answer Correct Answer: A) Contrapositive. 8. What is the result of the code:team = ("Cowboys")if team == "Cowboys":print("Dallas is #1") A) Error. B) Cowboys. C) Team. D) Dallas is #1. Show Answer Correct Answer: D) Dallas is #1. 9. "I do my homework, then I get my allowance." What is the hypothesis? A) I get my allowance. B) I do my homework. C) No answer. D) All of the above. Show Answer Correct Answer: B) I do my homework. 10. Accessing the elements of a sequence one by one is called ..... A) Traversal. B) Debugging. C) Initialization. D) None of these. Show Answer Correct Answer: A) Traversal. 11. What is the conclusion in the conditional statement below?If a rectangle has 4 equal sides, then it is a square A) If. B) It is a square. C) Then. D) A rectangle has 4 equal sides. Show Answer Correct Answer: B) It is a square. 12. Given the conditional;"If our class earns ten trucks, then we get a treat."What is the contrapositive? A) If our class doesn't get a treat, then we didn't earn ten trucks. B) Trucks!. C) If out class earns ten trucks then we don't get a treat. D) If our class doesn't earn ten trucks then we don't get a treat. Show Answer Correct Answer: A) If our class doesn't get a treat, then we didn't earn ten trucks. 13. What is the contrapositive 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: C) If the school is not closed, then it is not Saturday. 14. What is printed when this program is run:days = 5 if days > 6:print( "Month" ) else:print( "Week" ) A) Week. B) Month. C) 4. D) Day. Show Answer Correct Answer: A) Week. 15. Move from one track to another, say after the first lap they move to next lap, and so on. This is called the ..... A) Initialisation. B) Testing. C) Non of these. D) Increment stage. Show Answer Correct Answer: D) Increment stage. 16. Write a definition of congruent angles as a biconditional statement. A) Angles are congruent if they have the same size and shape. B) If angles are congruent, then they have the same size and shape. C) Congruent angles are the same. D) Angles are congruent if and only if they have the same size and shape. Show Answer Correct Answer: D) Angles are congruent if and only if they have the same size and shape. 17. What is the if-then form of the statement: "A triangle is a polygon" ? A) If a shape is a triangle, then it is a polygon. B) If a triangle, then it is a polygon. C) If a polygon, then it is a triangle. D) If it has three sides, then it is a polygon. Show Answer Correct Answer: A) If a shape is a triangle, then it is a polygon. 18. Refer to the following statement: "If a polygon is a quadrilateral, then it is a trapezoid."What is the inverse of this statement? A) If the polygon is not a trapezoid, then it is not a quadrilateral. B) A rectangle is also a quadrilateral. C) If the polygon is a trapezoid, then it is a quadrilateral. D) If the polygon is not a quadrilateral, then it is not a trapezoid. Show Answer Correct Answer: D) If the polygon is not a quadrilateral, then it is not a trapezoid. 19. A biconditional of two true conditional statement is formed by ..... A) Exchanging the words of the hypothesis with those of the conclusion. B) Dropping "if" and replacing "then" with "if and only if". C) Keeping the true hypothesis and changing the conclusion to something different. D) None of the above. Show Answer Correct Answer: B) Dropping "if" and replacing "then" with "if and only if". 20. For loop in python will work on? A) Range. B) Iteration. C) Both. D) None. Show Answer Correct Answer: A) Range. 21. Write the if-then form of the statement:It always rains when it is cloudy A) When it rains it is cloudy. B) If it rains then it is cloudy. C) If it is cloudy then it will always rain. D) None of the above. Show Answer Correct Answer: C) If it is cloudy then it will always rain. 22. If the conditional statement was "If an angle is acute, then it has a measure less than 90$^\circ$.", which type of statement is the following?An angle is acute if and only if (iff) it has a measure less than 90$^\circ$. A) Biconditional. B) Inverse. C) Contrapositive. D) Converse. Show Answer Correct Answer: A) Biconditional. 23. Identify the hypothesis of the statement:Three coplanar points are also colinear A) Coplanar points are colinear. B) There are three coplanar points. C) There are three colinear points. D) None of the above. Show Answer Correct Answer: B) There are three coplanar points. 24. What is the syntax for an if statement in Python? A) If condition:. B) If [condition]. C) If (condition). D) If {condition}. Show Answer Correct Answer: A) If condition:. 25. The code inside 'If' statement is executed only once A) FALSE. B) TRUE. C) All the above. D) None of the above. Show Answer Correct Answer: B) TRUE. 26. What is the Hypothesis of this conditional statement:If you live in Nashville, then you live in Tennessee A) You live in Nashville. B) You live in Tennessee. C) All the above. D) None of the above. Show Answer Correct Answer: A) You live in Nashville. 27. Re-write the statement "A triangle contains exactly three angles" into if-then form. A) If a figure is a triangle, then it has exactly three angles. B) If a triangle, then it has exactly three angles. C) If there are three angles, then it is a triangle. D) If a figure is a triangle with three angles. Show Answer Correct Answer: A) If a figure is a triangle, then it has exactly three angles. 28. If Tracey goes on vacation, then she will go to Orlando. Identify the conclusion. A) Tracey goes on vacation. B) She will go to Orlando. C) All the above. D) None of the above. Show Answer Correct Answer: B) She will go to Orlando. 29. Which of the following is true about the conditional statement below?If you are flying, then you are in ajet. A) Hypothesis:you are flyingConclusion:you are in ajet. B) Hypothesis:you are in ajetConclusion:you are flying. C) Hypothesis:THEN you are in ajetConclusion:IF you are flying. D) Hypothesis:IF you are flyingConclusion:THEN you are in ajet. Show Answer Correct Answer: A) Hypothesis:you are flyingConclusion:you are in ajet. 30. How do you write a nested if statement in Python? A) Use the 'for' loop to nest if statements. B) Use the 'elif' keyword to nest if statements. C) Include an if statement within the body of another if statement. D) Use the 'else' keyword to nest if statements. Show Answer Correct Answer: C) Include an if statement within the body of another if statement. 31. Mr. Anton ..... (go) on holiday if he ..... (have) time. A) Go, will have. B) Goes, will have. C) Will go, have. D) Will go, has. Show Answer Correct Answer: D) Will go, has. 32. In a Python program, a control structure: A) Directs the order of execution of the statements in the program. B) Manages the input and output of control characters. C) Defines program-specific data structures. D) Dictates what happens before the program starts and after it terminates. Show Answer Correct Answer: A) Directs the order of execution of the statements in the program. 33. Given, "If I have a Siberian Husky, then I have a dog." Identify the contrapositive. A) If I do not have a dog, then I do not have a Siberian Husky. B) If I do not have a Siberian Husky, then I have a dog. C) If I have a dog, then I have a Siberian Husky. D) If I do not have a Siberian Husky, then I do not have a dog. Show Answer Correct Answer: A) If I do not have a dog, then I do not have a Siberian Husky. 34. Logical OperatorsWhat is &&? A) And. B) Or. C) Not. D) Less than. Show Answer Correct Answer: A) And. 35. For checking some condition, What do we need to use? A) Iterative statements. B) Jumping statements. C) Conditional statements. D) None of the above. Show Answer Correct Answer: C) Conditional statements. 36. Consider the statement:If Ed lives South of Canada, then he lives in Texas.Which of the following is a COUNTEREXAMPLE to this false statement? A) If Ed lives South of Canada, then he lives in Minnesota. B) If Ed lives North of Canada, then he lives in Texas. C) All the above. D) None of the above. Show Answer Correct Answer: A) If Ed lives South of Canada, then he lives in Minnesota. 37. What is the output of the following code snippet: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) 4. C) 124. D) 1234. Show Answer Correct Answer: C) 124. 38. Original:If Tiffany buys a guitar, then she will not buy a keyboard.What is this? If Tiffany does buy a keyboard, then she will not buy a guitar. A) Contrapositive. B) Negation. C) Converse. D) Inverse. Show Answer Correct Answer: A) Contrapositive. 39. Which one of the following if statements will not execute successfully: A) If (1, 2):print('foo'). B) If (1, 2):print('foo'). C) If (1, 2):print('foo'). D) If (1, 2):print('foo'). Show Answer Correct Answer: A) If (1, 2):print('foo'). 40. When taking the converse we ..... the hypothesis and conclusion. A) Switch. B) Don't change. C) Delete. D) Highlight. Show Answer Correct Answer: A) Switch. 41. John ..... (stay) in London if he ..... (get) a job. A) Stays, gets. B) Will stay, gets. C) Will stay, will get. D) Stays, will get. Show Answer Correct Answer: B) Will stay, gets. 42. Check the output. i=10while i<=1:print(i) i=+1 A) 123456789. B) No output will be shown. C) 12345678910. D) None of the above. Show Answer Correct Answer: B) No output will be shown. 43. If Hendry ..... (come), his family ..... (be) surprised. A) Come, will be. B) Comes, will be. C) Come, is. D) Comes, are. Show Answer Correct Answer: B) Comes, will be. 44. Given, "If I have a Siberian Husky, then I have a dog." Identify the converse. A) If I do not have a Siberian Husky, then I do not have a dog. B) If I do not have a Siberian Husky, then I have a dog. C) If I have a dog, then I have a Siberian Husky. D) If I do not have a dog, then I do not have a Siberian Husky. Show Answer Correct Answer: C) If I have a dog, then I have a Siberian Husky. 45. Which of the following is a valid conditional statement for the following phrase:An acute angle has a measure less than 90$^\circ$. A) If an angle does not measure less than 90$^\circ$, then it is not acute. B) If an angle is acute, then it is acute. C) If an angle is acute, then it has a measure less than 90$^\circ$. D) If an angle is not acute, then it does not have a measure less than 90$^\circ$. Show Answer Correct Answer: C) If an angle is acute, then it has a measure less than 90$^\circ$. 46. If Ron ..... (eat) all this cake, he ..... (feel) sick. A) Eats, feels. B) Will eat, eat. C) Will eat, feels. D) Eats, will feel. Show Answer Correct Answer: D) Eats, will feel. 47. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If a square is inscribed in a circle, then a diagonal of the square is a diameter of the circle. a square is inscribed in a circle A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis. 48. If a number is a natural number, then it is a whole number.If a number is a whole number, then it is a natural number. A) Converse. B) Inverse. C) Contrapositive. D) Biconditional Statement. Show Answer Correct Answer: A) Converse. 49. What is value of this expression:'a' + 'x' if '123'.isdigit() else 'y' + 'b' A) 'ab'. B) 'axb'. C) 'ax'. D) 'axyb'. Show Answer Correct Answer: C) 'ax'. 50. Identify the hypothesis of the statement "A parallelogram whose diagonals are congruent is a rectangle" . A) The parallelogram is a rectangle. B) The diagonals of a parallelogram are congruent. C) Parallelogram whose diagonals are congruent. D) Is a rectangle. Show Answer Correct Answer: C) Parallelogram whose diagonals are congruent. 51. Original:If angles are congruent, then the measures of the angles are equal. What is this? If angles are not congruent, then the measures of the angles are not equal. A) Inverse. B) Conditional. C) Converse. D) Converse. Show Answer Correct Answer: A) Inverse. 52. Which of the following is the CONVERSE of the statement below?If an object is a ring, then it ismade of gold. A) If an object is not a ring, then it is not made of god. B) If an object is made of gold, then it is a ring. C) If an object is not made of gold, then it is not a ring. D) There is no converse of the statement. Show Answer Correct Answer: B) If an object is made of gold, then it is a ring. 53. Determine if the statement is true or false:Three coplanar points are also colinear A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 54. Which code block is an example of conditional statement in Scratch? A) If else. B) Forever. C) Move 10 steps. D) Change size by 10. Show Answer Correct Answer: A) If else. 55. Determine if the statement is true or false:It always rains when it is cloudy A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 56. Given, "If angles are congruent, then the measures of the angles are equal." Identify the conclusion. A) Then the measures of the angles are equal. B) The measures of the angles are equal. C) If the angles are congruent. D) The angles are congruent. Show Answer Correct Answer: B) The measures of the angles are equal. 57. The following if/elif/else statement will raise a KeyError exception:1 d = {'a':0, 'b':1, 'c':0}23 if d['a'] > 0:4 print('ok')5 elif d['b'] > 0:6 print('ok')7 elif d['c'] > 0:8 print('ok')9 elif d['d'] > 0:10 print('ok')11 else:12 print('not ok') A) False. B) True. C) All the above. D) None of the above. Show Answer Correct Answer: A) False. 58. Give a counter example to the following statement:"All odd numbers are prime numbers." A) 15. B) 11. C) 7. D) 3. Show Answer Correct Answer: A) 15. 59. What symbol represents the or operator in JavaScript? A) ||. B) |. C) OR. D) Or. Show Answer Correct Answer: A) ||. 60. Check the outputi=10print(i in range(100, 200)) A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. ← 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 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 1 Computer Fundamentals Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books