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 2 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 2 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. If the weather ..... (not/improve), we ..... (not/have) a picnic. A) Doesn't improve, won't have. B) Don't improve, don't have. C) Isn't improve, will have. D) Doesn't improve, doesn't have. Show Answer Correct Answer: A) Doesn't improve, won't have. 2. Conditional Statement:If you are in Pacoima, then you are in Los Angeles County. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 3. Re-write the statement "An angle that measures 70$^\circ$ is an acute angle" into if-then form A) If it is an acute angle, then it measures 70$^\circ$. B) If it has 70$^\circ$, then it is acute. C) If an angle measures 70$^\circ$, then it is an acute angle. D) If acute angle is given, then it has 70$^\circ$. Show Answer Correct Answer: C) If an angle measures 70$^\circ$, then it is an acute angle. 4. Name the two membership operators in python. A) In, in not. B) In, not in. C) All the above. D) None of the above. Show Answer Correct Answer: B) In, not in. 5. If you are resting, then you will be relaxed.If your heartbeat is normal, then you are relaxed. A) If you are resting, then your heartbeat is normal. B) If your heartbeat is normal, then you are resting. C) Not possible. D) None of the above. Show Answer Correct Answer: C) Not possible. 6. Equilateral triangles have 3 congruent sides. Write in "if-then" form. A) If equilateral, then triangle. B) If it has 3 sides, then it is a triangle. C) If it has 3 congruent sides, then it is an equilateral triangle. D) If it is an equilateral triangle, then it has 3 congruent sides. Show Answer Correct Answer: C) If it has 3 congruent sides, then it is an equilateral triangle. 7. What does "==" represent in Python programming? A) Not equal to. B) Greater than. C) Less than. D) Equal to. Show Answer Correct Answer: D) Equal to. 8. What is the conclusion of the given statement "A quadrilateral is a figure with four sides" ? A) Figure is a quadrilateral. B) It has four sides. C) A figure has four sides. D) . it is a quadrilateral. Show Answer Correct Answer: B) It has four sides. 9. Which property says that if k = 3, then 3 = k? A) Substitution Property. B) Transitive Property. C) Symmetric Property. D) Reflexive Property. Show Answer Correct Answer: C) Symmetric Property. 10. Identify the conclusion 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: B) A number is divisible by 2. 11. Conditional Statement:If an animal is a dog, then it has four legs.What is the hypothesis? A) An animal is not a dog. B) It does not have four legs. C) An animal is a dog. D) It has four legs. Show Answer Correct Answer: C) An animal is a dog. 12. Write the statement in if-then form:A number that does not end with 3 is divisible by 2 A) If a number does not end with 3 then it is divisible by 2. B) If a number is divisible by 2 then it does not end with 3. C) All the above. D) None of the above. Show Answer Correct Answer: A) If a number does not end with 3 then it is divisible by 2. 13. What is the output of the following code?x = 5if x > 10:print('Greater than 10')else:print('Less than or equal to 10') A) Greater than or equal to 10. B) Greater than 10. C) Less than or equal to 10. D) Equal to 10. Show Answer Correct Answer: C) Less than or equal to 10. 14. Identify the conclusion of the statement:It always rains when it is cloudy A) It always rains. B) It is cloudy. C) All the above. D) None of the above. Show Answer Correct Answer: A) It always rains. 15. Which best describes the hypothesis of the statement "If tomorrow is Monday, then today is Sunday." ? A) If tomorrow is Monday. B) Then today is Sunday. C) Tomorrow is Monday. D) Today is Sunday. Show Answer Correct Answer: C) Tomorrow is Monday. 16. These sentences are in the Present Real Conditional or in the Future Real Conditional? Check the correct answer. A) PRESENT REAL CONDITIONAL. B) FUTURE REAL CONDITIONAL. C) FUTURE REAL CONDITIONAL. D) PRESENT REAL CONDITIONAL. Show Answer Correct Answer: A) PRESENT REAL CONDITIONAL. 17. If you square a number, then the answer is positive. What would be an appropriate counterexample? A) $\left(-50\right)^2$. B) $\left(2\right)^2$. C) True. There is no counterexample. D) $\left(-2\right)^2$. Show Answer Correct Answer: C) True. There is no counterexample. 18. The program generates an error message if the "else" statement is not defined A) FALSE. B) TRUE. C) All the above. D) None of the above. Show Answer Correct Answer: A) FALSE. 19. What is the purpose of using Boolean variables in programming? A) To store complex data structures. B) To store text data. C) To store true or false values. D) To store numeric data. Show Answer Correct Answer: C) To store true or false values. 20. Which is the best conclusion of the hypothesis:If you are 15 years old and below, A) Then you can go out. B) Then you are not allowed to go out. C) Then you can vote in the election. D) Then you are college student. Show Answer Correct Answer: B) Then you are not allowed to go out. 21. Refer to the following statement: "If a polygon is a quadrilateral, then it is a trapezoid."What is the converse of this statement? A) A rectangle is also a quadrilateral. B) If a polygon is not a trapezoid, then it is not a quadrilateral. C) If a polygon is a trapezoid, then it is a quadrilateral. D) If a polygon is not a quadrilateral, then it is not a trapezoid. Show Answer Correct Answer: C) If a polygon is a trapezoid, then it is a quadrilateral. 22. Given the hypothesis and the conclusion respectively, transform into an if-then statement.Hypothesis:two lines are parallelConclusion:they do not intersect A) If it does not intersect, then it is parallel. B) If two lines are parallel, then they do not intersect. C) Two lines are parallel, if they do not intersect. D) If they do not intersect, they are lines. Show Answer Correct Answer: B) If two lines are parallel, then they do not intersect. 23. What is the hypothesis of the given statement "A quadrilateral is a figure with four sides" ? A) It has four sides. B) It is a quadrilateral. C) A figure has four sides. D) Figure is a quadrilateral. Show Answer Correct Answer: D) Figure is a quadrilateral. 24. If I ..... (go) out tonight, I ..... (go) to the cinema. A) Go, goes. B) Goes, goes. C) Go, will go. D) Went, went. Show Answer Correct Answer: C) Go, will go. 25. Negating both the hypothesis and conclusion of the original conditional is the ..... A) Converse. B) Inverse. C) Contrapositive. D) Conditional. Show Answer Correct Answer: B) Inverse. 26. What is the syntax for an if statement in most programming languages? A) Condition { if (code) }. B) If (condition) { code }. C) If (code) { condition }. D) Code { if (condition) }. Show Answer Correct Answer: B) If (condition) { code }. 27. A counterexample is an example that proves a conjecture to be true. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 28. Given the conditional;"If Jose eats fish, then he has an allergic reaction"Which of the following is the converse? A) None of these. B) If Jose doesn't have an allergic reaction, then he didn't eat fish. C) If Jose doesn't eat fish, then he doesn't have an allergic reaction. D) If Jose has an allergic reaction, then he ate fish. Show Answer Correct Answer: D) If Jose has an allergic reaction, then he ate fish. 29. I=10while(i<=15):print(i)i=i+1 A) Output will be-101112131415. B) Output will be-1011121314. C) #value error. D) None of these. Show Answer Correct Answer: A) Output will be-101112131415. 30. Write the conclusion of the statement, "If you are Anthony Rizzo, then you are a Chicago Cub." A) You are Anthony Rizzo. B) You are a Chicago Cub. C) The Cubs are the best. D) None of the above. Show Answer Correct Answer: B) You are a Chicago Cub. 31. Determine whether the stated conclusion is valid.Given:If an animal is a dog, then they like biscuits.Sammy is a dog.Conclusion:Sammy likes biscuits. A) Invalid. B) Valid. C) Sammy is a Great Dane. D) Sammy is really a cat. Show Answer Correct Answer: B) Valid. 32. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you are reading a book on antigravity, then you can't put it down."you can't put it down A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: B) Conclusion. 33. What is the syntax for a switch statement in programming? A) Switch (expression) { case value1:code block; case value2:code block; default:code block }. B) Switch (expression) { case value1:code block break; case value2:code block }. C) Switch (expression) { case value1:code block break; case value2:code block break; }. D) Switch (expression) { case value1:code block break; case value2:code block break; default:code block }. Show Answer Correct Answer: D) Switch (expression) { case value1:code block break; case value2:code block break; default:code block }. 34. It is possible to execute both the statements under if and else at the same time. A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: B) FALSE. 35. What are the two parts of a conditional statement? A) Hypothesis & Conclusion. B) Cause & Effect. C) Hippopotamus & Canary. D) Hypothesis & Condition. Show Answer Correct Answer: A) Hypothesis & Conclusion. 36. The relational operators cannot be used within a if condition A) FALSE. B) TRUE. C) All the above. D) None of the above. Show Answer Correct Answer: A) FALSE. 37. Total how many different type of loops are there in python? A) 3. B) 0. C) 2. D) 1. Show Answer Correct Answer: C) 2. 38. Which of the following is the CONTRAPOSITIVE of the statement below?If a gem is a ruby, then it is red. A) If a gem is not red, then it is not a ruby. B) If a gem is not a ruby, then it is not red. C) If a gem is red, then it is a ruby. D) There is no contrapositive statement. Show Answer Correct Answer: A) If a gem is not red, then it is not a ruby. 39. Identify the conclusion of the statement:Three coplanar points are also colinear A) Coplanar points are colinear. B) There are three coplanar points. C) The points are colinear points. D) None of the above. Show Answer Correct Answer: C) The points are colinear points. 40. What is the converse statement of "If a number is divisible by 3, then it is divisible by 9." ? A) If a number is divisible by 3, then it is divisible by 9. B) If a number is not divisible by 9, then it is divisible by 3. C) If a number is divisible by 9, then it is divisible by 3. D) If a number is not divisible by 3, then it is not divisible by 9. Show Answer Correct Answer: C) If a number is divisible by 9, then it is divisible by 3. 41. If possible, use the Law of Detachment to draw a conclusion from the two given statements. If not possible, write not possible.Conditional:If there is lightning, then it is not safe to out in the open. Premise:Mary sees lightning from her home A) There is lightening. B) No conclusion can be made. C) It is not safe for the lightening. D) It is not safe for Marty to be out in the open. Show Answer Correct Answer: D) It is not safe for Marty to be out in the open. 42. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you fill your sink with water, then you can wash the dishes."you can wash the dishes A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: B) Conclusion. 43. Which of the following makes the best thesis statement? A) Even though marriage is a strong and respected institution in Russia, more and more people are choosing to live together before marriage, despite the cultural pressures. B) I am going to explain why many couples in Russia are choosing to live together rather than get married. C) Marriage in Russia. D) None of the above. Show Answer Correct Answer: A) Even though marriage is a strong and respected institution in Russia, more and more people are choosing to live together before marriage, despite the cultural pressures. 44. Which statement is used to execute a block of code only if a condition is true? A) Switch statement. B) While statement. C) For statement. D) If statement. Show Answer Correct Answer: D) If statement. 45. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If a figure has seven sides, then it is a heptagon."it is a heptagon A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: B) Conclusion. 46. Conditional statement symbol A) $\sim$ $\longrightarrow$ $\sim$. B) $\sim p\longrightarrow\sim q$. C) Q $\longrightarrow$. D) P $\longrightarrow$. Show Answer Correct Answer: D) P $\longrightarrow$. 47. Which two statements should both be true to have a biconditional statement? A) Conditional and converse. B) Conditional and inverse. C) Conditional and contrapositive. D) Converse and inverse. Show Answer Correct Answer: A) Conditional and converse. 48. If we ..... (not/see) each other tomorrow, we ..... (see) each other next week. A) Doesn't see, will see. B) Not see, see. C) Don't see, will see. D) Didn't see, see. Show Answer Correct Answer: C) Don't see, will see. 49. What is the biconditional statement of the following conditional statement? "If Shelly lives in Texas, then she lives in the United States." A) If Shelly lives in Texas, then she lives in the United States. B) If Shelly lives in the United States, then she lives in Texas. C) Shelly lives in Texas if and only if she lives in the United States. D) If Shelly does not live in Texas, then she does not live in the United States. Show Answer Correct Answer: C) Shelly lives in Texas if and only if she lives in the United States. 50. What is the conclusion to this statement?If Susan gives us Mountain Dew, then she will be the coolest. A) Susan gives us Mountain Dew. B) Susan will be the coolest. C) Susan will not give us Mountain Dew. D) Susan will not be the coolest. Show Answer Correct Answer: B) Susan will be the coolest. 51. Given, "If I have a Siberian Husky, then I have a dog." Identify the hypothesis. A) If I have a Siberian Husky. B) Then I have a dog. C) HI have a dog. D) I have a Siberian Husky. Show Answer Correct Answer: D) I have a Siberian Husky. 52. Write each statement as a conditional statement."Two angles are always equal when they are vertical." A) If two angles are always equal, then they are vertical. B) If two angles are vertical, then they are always equal. C) Two angles are always vertical when they are equal. D) If two angles are equal, then they are always vertical. Show Answer Correct Answer: B) If two angles are vertical, then they are always equal. 53. If it is a number, then it is either positive or negative. What is an appropriate counterexample? A) 10. B) -2. C) True. There is no counterexample. D) 0. Show Answer Correct Answer: D) 0. 54. "If this month is October, then the following month is November" . What is the conclusion? A) If this month is October. B) The following month is November. C) Then the following month is November. D) This month is October. Show Answer Correct Answer: B) The following month is November. 55. Write each statement as a conditional statement."All healthy dogs have four paws." A) Dogs with four paws are healthy. B) Dogs are healthy if they have four paws. C) If a dog is healthy, then it has four paws. D) If a dog has four paws, then it is healthy. Show Answer Correct Answer: C) If a dog is healthy, then it has four paws. 56. Which sentence would be the better thesis statement for the introductory paragraph of an essay? A) The iPad has revolutionized the mobile-computing landscape and created a huge profit stream for Apple. B) The iPad, with its relatively large high-definition screen, has helped to revitalize the comic book industry. C) All the above. D) None of the above. Show Answer Correct Answer: B) The iPad, with its relatively large high-definition screen, has helped to revitalize the comic book industry. 57. Identify the hypothesis of this conditional:If Sally goes to the park, then she will fall off the swing. A) Sally goes to the park. B) Sally will fall off the swing. C) Parks don't have swings that Sally goes to. D) If Sally falls off the swing, she goes to the park. Show Answer Correct Answer: A) Sally goes to the park. 58. What is the format for the inverse of a conditional statement? A) If ~p, then ~q. B) If q, then p. C) If p, then q. D) If ~q, the ~p. Show Answer Correct Answer: A) If ~p, then ~q. 59. Describe the validity of the conditional statement?If Jake lives in New Jersey, then he lives in Ramsey. A) Always True. B) Sometimes True. C) Never True. D) None of the above. Show Answer Correct Answer: B) Sometimes True. 60. What is the negation of "x > 3" ? A) $x=3$. B) $x\le3$. C) $x<3$. D) None of the above. Show Answer Correct Answer: B) $x\le3$. ← 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 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 1 Computer Fundamentals Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books