This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 14 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 14 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is the output of the following code snippet?var age = 18;if (age >= 18) \{console.log("You are eligible to vote");\} else \{System.out.println("You are not eligible to vote");\} A) You are eligible to vote. B) You are not eligible to vote. C) The code does not compile. D) The code produces an error. Show Answer Correct Answer: A) You are eligible to vote. 2. "The set of integers consist of negative and positive numbers." is an example of a false conjecture. Which of the following is a counterexample to the given conjecture? A) $-1$. B) $0$. C) $1$. D) $\frac{1}{2}$. Show Answer Correct Answer: B) $0$. 3. The following statements represent p and qp:the sea is calmq:the sun is upwhich worded statement below represents ~p $\rightarrow$ q A) The sea is calm if and only if the sun is not up. B) If the sea is not calm then the sun is not up. C) If the sea is not calm then the sun is up. D) The sun is not up but the sea is calm. Show Answer Correct Answer: C) If the sea is not calm then the sun is up. 4. Conditional Statement:If a doctor suspects her patient has a broken bone, then she should take an X-ray."If a doctor takes an X-ray, then she suspects her patient has a broken bone" is the??? of the conditional. A) Converse. B) Inverse. C) Contrapositive. D) Biconditional. Show Answer Correct Answer: A) Converse. 5. Rani ..... (come) early, if Rita ..... (want). A) Come, want. B) Comes, wants. C) Comes, will want. D) Will come, wants. Show Answer Correct Answer: D) Will come, wants. 6. Which number is a counterexample to the following statement?:All numbers that are divisible by 2 are divisible by 4 A) 0. B) 12. C) 28. D) 42. Show Answer Correct Answer: D) 42. 7. If you purchase two bags of chips, then you will get one bag free.If you did not get one bag for free, then you did not purchase two bags of chips. A) Inverse. B) Converse. C) Contrapositive. D) Biconditional Statement. Show Answer Correct Answer: C) Contrapositive. 8. Which of the following is a conditional statement? A) All even numbers are divisible by 2. B) If an even number is divisible by 2. C) Then even numbers are divisible by 2. D) If an integer is an even number, then it is divisible by 2. Show Answer Correct Answer: D) If an integer is an even number, then it is divisible by 2. 9. Disjunction means A) Both have to be true. B) Only one has to be true. C) None have to be true. D) :0. Show Answer Correct Answer: B) Only one has to be true. 10. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you build it, then they will come."you build it A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis. 11. Which statement is the converse of the given statement?If you make an insurance claim, then your rates will go up. A) If your insurance rates do not go up, then you have not maid a claim. B) If you do not make an insurance claim, then your rates will not go up. C) If your insurance rates go up, then you have made an insurance claim. D) If you make an insurance claim, then your rates will not go up. Show Answer Correct Answer: C) If your insurance rates go up, then you have made an insurance claim. 12. An educated guess that may be a true or false statement is called ..... A) Counterexample. B) Conditional statement. C) Conjecture. D) Conjunction. Show Answer Correct Answer: C) Conjecture. 13. What letter will be printed on the screen after running this code:team = "Manchester United" letter = name[5] print(letter) A) M. B) D. C) E. D) Nothing prints. Show Answer Correct Answer: C) E. 14. Suppose you have two variables x and y defined. Write a stub if statement to evaluate whether x is less than y. The statement should not do anything, even if the condition is true. A) If x < y:pass. B) If x < y:break. C) Pass. D) None of the Above. Show Answer Correct Answer: A) If x < y:pass. 15. Rewrite the statement "A quadrilateral is a figure with four sides" in the if-then form. A) A figure has four sides if and only if it is a quadrilateral. B) If a figure is a quadrilateral, then it has four sides. C) If a figure has four sides, then it is a quadrilateral. D) A figure is a quadrilateral if and only if it has four sides. Show Answer Correct Answer: B) If a figure is a quadrilateral, then it has four sides. 16. Which of the following is a major component of any thesis in an argumentative essay? A) Making a claim/picking a side. B) Providing an amusing anecdote. C) Being at least three sentences. D) Only providing facts. Show Answer Correct Answer: A) Making a claim/picking a side. 17. What is the conditional statement form of the statement "All iPhones are phones?" A) If the object is an iPhone, then it is a phone. B) If the object is a phone, then it is an iPhone. C) All iPhones are phones. D) All phones are iPhones. Show Answer Correct Answer: A) If the object is an iPhone, then it is a phone. 18. Consider the statement:If Julie eats tomatoes, then she likes salad.What is the hypothesis? A) If Julie eats tomatoes. B) Julie eats tomatoes. C) Then she likes salad. D) She likes salad. E) None of these. Show Answer Correct Answer: B) Julie eats tomatoes. 19. What is the first part of creating a thesis statement? A) Rewrite the prompt as a question. B) List 3 facts. C) Combine your answer & reasons. D) None of the above. Show Answer Correct Answer: A) Rewrite the prompt as a question. 20. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you are a fish with no eyes, then you are a fsh."you are a fish with no eyes A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis. 21. What is the output of the following code snippet? var x = 5; var y = 10; if (x > y) \{\{ console.log("x is greater than y"); \} else \{ console.log("x is less than or equal to y"); \} A) X is greater than y. B) X is less than y. C) X is equal to y. D) X is less than or equal to y. Show Answer Correct Answer: D) X is less than or equal to y. 22. Which alternative complete correctly the sentence?They'll come here (a) A) A. if you call them. B) If you will call them. C) All the above. D) None of the above. Show Answer Correct Answer: A) A. if you call them. 23. Conditional:If Maria gets married, then the reception will be at the country club.What is this statement:If the reception is at the country club, then Maria will be getting married. A) Converse. B) Inverse. C) Contrapositive. D) Negation. Show Answer Correct Answer: A) Converse. 24. Write the conditional statements as a biconditional statement:1) If B is between A and C, then AB+BC=AC.2) If AB+BC=AC, then B is between A and C. A) Segment Addition Postulate. B) B is between A and C when AB+BC=AC if and only if Segment Addition Postulate. C) B is between A and C if and only if AB+BC=AC. D) None of the above. Show Answer Correct Answer: C) B is between A and C if and only if AB+BC=AC. 25. If I study, then I will do well on my Geometry test.If I did not do well on my Geometry test, then I did not study. A) Inverse. B) Converse. C) Contrapositive. D) Biconditional Statement. Show Answer Correct Answer: C) Contrapositive. ← 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