This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 4 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 4 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. 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. 2. Which best describes the hypothesis of the statement "If tomorrow is Monday, then today is Sunday." ? A) Tomorrow is Monday. B) If tomorrow is Monday. C) Then today is Sunday. D) Today is Sunday. Show Answer Correct Answer: A) Tomorrow is Monday. 3. 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. 4. If you square a number, then the answer is positive. What would be an appropriate counterexample? A) $\left(-2\right)^2$. B) $\left(2\right)^2$. C) $\left(-50\right)^2$. D) True. There is no counterexample. Show Answer Correct Answer: D) True. There is no counterexample. 5. 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. 6. What is the purpose of using Boolean variables in programming? A) To store text data. B) To store numeric data. C) To store true or false values. D) To store complex data structures. Show Answer Correct Answer: C) To store true or false values. 7. 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. 8. Refer to the following statement: "If a polygon is a quadrilateral, then it is a trapezoid."What is the converse of this statement? A) If a polygon is not a quadrilateral, then it is not a trapezoid. 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) A rectangle is also a quadrilateral. Show Answer Correct Answer: C) If a polygon is a trapezoid, then it is a quadrilateral. 9. 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. 10. What is the hypothesis of the given statement "A quadrilateral is a figure with four sides" ? A) Figure is a quadrilateral. B) It has four sides. C) It is a quadrilateral. D) A figure has four sides. Show Answer Correct Answer: A) Figure is a quadrilateral. 11. If I ..... (go) out tonight, I ..... (go) to the cinema. A) Goes, goes. B) Went, went. C) Go, will go. D) Go, goes. Show Answer Correct Answer: C) Go, will go. 12. Negating both the hypothesis and conclusion of the original conditional is the ..... A) Conditional. B) Converse. C) Inverse. D) Contrapositive. Show Answer Correct Answer: C) Inverse. 13. What is the syntax for an if statement in most programming languages? A) If (condition) \{ code \}. B) If (code) \{ condition \}. C) Condition \{ if (code) \}. D) Code \{ if (condition) \}. Show Answer Correct Answer: A) If (condition) \{ code \}. 14. 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. 15. 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. 16. 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. 17. 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. 18. 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. 19. 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. 20. What is the syntax for a switch statement in programming? A) Switch (expression) \{ case value1:code block break; case value2:code block break; default:code block \}. B) Switch (expression) \{ case value1:code block break; case value2:code block break; \}. C) Switch (expression) \{ case value1:code block break; case value2:code block \}. D) Switch (expression) \{ case value1:code block; case value2:code block; default:code block \}. Show Answer Correct Answer: A) Switch (expression) \{ case value1:code block break; case value2:code block break; default:code block \}. 21. 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. 22. What are the two parts of a conditional statement? A) Hypothesis & Condition. B) Hypothesis & Conclusion. C) Cause & Effect. D) Hippopotamus & Canary. Show Answer Correct Answer: B) Hypothesis & Conclusion. 23. 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. 24. Total how many different type of loops are there in python? A) 0. B) 1. C) 2. D) 3. Show Answer Correct Answer: C) 2. 25. 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. ← 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 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 10Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books