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 6 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 6 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What does ~q $\rightarrow$ ~p symbolize? A) Contrapositive. B) Converse. C) Inverse. D) Conditional Statement. Show Answer Correct Answer: A) Contrapositive. 2. What is the purpose of the 'range()' function in Python? A) The purpose of the 'range()' function in Python is to calculate the factorial of a number. B) The purpose of the 'range()' function in Python is to check if a number is prime. C) The purpose of the 'range()' function in Python is to convert a string to uppercase. D) The purpose of the 'range()' function in Python is to generate a sequence of numbers. Show Answer Correct Answer: D) The purpose of the 'range()' function in Python is to generate a sequence of numbers. 3. Conditional Statement:If an object has seeds, then it is a strawberry. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 4. If two lines form right angles, then the lines are perpendicular.What do you think is the hypothesis of the given conditional statement? A) Two lines form right angles. B) Then the lines are perpendicular. C) The lines are perpendicular. D) If two lines form right angles. Show Answer Correct Answer: A) Two lines form right angles. 5. Which of the following is the INVERSE of the statement below?If an object is a computer, then ithas a hard drive. A) If an object is not a computer, then it does not have a hard drive. B) If an object does not have a hard drive, then it is not a computer. C) If an object has a hard drive, then it is a computer. D) There is no inverse of the statement. Show Answer Correct Answer: A) If an object is not a computer, then it does not have a hard drive. 6. It is a branch of mathematics that studies the sizes, shapes, positions angles and dimensions of things. A) Statistics. B) Geometry. C) Trigonometry. D) Algebra. Show Answer Correct Answer: B) Geometry. 7. Original Statement:If I am hungry then I will eat a whole pizza.New Statement:If I am not hungry then I will eat a whole pizza. A) Converse. B) Inverse. C) Contrapositive. D) None of the above. Show Answer Correct Answer: D) None of the above. 8. Negate the following statement:"I love geometry." A) Geometry I love. B) If and only if I love geometry. C) If I love geometry, then I do not love geometry. D) I do not love geometry. Show Answer Correct Answer: D) I do not love geometry. 9. What signifies the end of a statement block or suite in Python? A) A comment. B) End. C) }. D) A line that is indented less than the previous line. Show Answer Correct Answer: D) A line that is indented less than the previous line. 10. If a whole number ends in 0, then it is divisible by 10.If a whole number is divisible by 10, then it is divisible by 5. A) If a whole number is divisible by 10, then it ends in 0. B) If a whole number ends in 0, then it is divisible by 5. C) Not possible. D) None of the above. Show Answer Correct Answer: B) If a whole number ends in 0, then it is divisible by 5. 11. Conditional Statement:If a man speaks two languages, then he is bilingual. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 12. What is the next term in the sequence:1, 1, 2, 3, 5, 8, 13, ..... A) 20. B) 17. C) 24. D) 21. Show Answer Correct Answer: D) 21. 13. For the converse we ..... the hypothesis and conclusion A) Switch. B) Negate. C) Switch and negate. D) None of the above. Show Answer Correct Answer: A) Switch. 14. With which statement you can use break statement? A) Condtional statement. B) Iterative statement. C) Declarative statement. D) All of the above. Show Answer Correct Answer: B) Iterative statement. 15. If I don't set my alarm clock, then I will be late for work.If I set my alarm clock, then I will not be late for work. A) Biconditional Statement. B) Contrapositive. C) Inverse. D) Converse. Show Answer Correct Answer: C) Inverse. 16. Write each statement as a conditional statement."When two sides of a right triangle are 3 in and 4 in the hypotenuse is 5 in." A) If the hypotenuse is 5 in, then the two sides of a right triangle are 3 in and 4 in. B) If two sides of a right triangle are 3 in and 4 in, then the hypotenuse is 5 in. C) If the sides of a triangle are 3 in, 4 in, and 5 in, then it is a right triangle. D) If it is a right triangle, then the sides are 3 in, 4 in, and 5 in. Show Answer Correct Answer: B) If two sides of a right triangle are 3 in and 4 in, then the hypotenuse is 5 in. 17. Refer to the following statement: "If a polygon is a quadrilateral, then it is a trapezoid."What is the contrapositive of this statement? A) If a polygon is not a quadrilateral, then it is not a trapezoid. B) A rectangle is also a quadrilateral. C) If a polygon is not a trapezoid, then it is not a quadrilateral. D) If a polygon is a trapezoid, then it is a quadrilateral. Show Answer Correct Answer: C) If a polygon is not a trapezoid, then it is not a quadrilateral. 18. Conditional Statement:If a triangle has 3 congruent sides, then it's an equilateral triangle.Identify the inverse of this conditional statement: A) If a triangle is equilateral, then it has 3 congruent sides. B) If a triangle has 3 congruent sides, then it's not an equilateral triangle. C) If a triangle does not have 3 congruent sides, then it's not an equilateral triangle. D) If a triangle is not equilateral, then it does not have 3 congruent sides. Show Answer Correct Answer: C) If a triangle does not have 3 congruent sides, then it's not an equilateral triangle. 19. Mira ..... (cook) breakfast if Tina ..... (go) to the supermarket. A) Will cook, goes. B) Will cook, go. C) Cooks, goes. D) Cook, will go. Show Answer Correct Answer: A) Will cook, goes. 20. Write each statement as a conditional statement."A can of soda will go flat every time you leave it open." A) If you leave a can of soda open, then it will go flat every time. B) Leaving a can of soda open will make it go flat every time. C) If a can of soda goes flat every time, then you left it open. D) Open cans of soda will go flat every time. Show Answer Correct Answer: A) If you leave a can of soda open, then it will go flat every time. 21. 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) The code produces an error. C) You are not eligible to vote. D) The code does not compile. Show Answer Correct Answer: A) You are eligible to vote. 22. "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) $-1$. C) $0$. D) $\frac{1}{2}$. Show Answer Correct Answer: C) $0$. 23. 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. 24. Rani ..... (come) early, if Rita ..... (want). A) Comes, wants. B) Will come, wants. C) Come, want. D) Comes, will want. Show Answer Correct Answer: B) Will come, wants. 25. Which number is a counterexample to the following statement?:All numbers that are divisible by 2 are divisible by 4 A) 28. B) 42. C) 12. D) 0. Show Answer Correct Answer: B) 42. 26. 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) Contrapositive. B) Biconditional Statement. C) Inverse. D) Converse. Show Answer Correct Answer: A) Contrapositive. 27. 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. 28. 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. 29. 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. 30. 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. 31. An educated guess that may be a true or false statement is called ..... A) Conjunction. B) Conjecture. C) Conditional statement. D) Counterexample. Show Answer Correct Answer: B) Conjecture. 32. What letter will be printed on the screen after running this code:team = "Manchester United" letter = name[5] print(letter) A) D. B) Nothing prints. C) M. D) E. Show Answer Correct Answer: D) E. 33. 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. 34. 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. 35. Which of the following is a major component of any thesis in an argumentative essay? A) Only providing facts. B) Being at least three sentences. C) Making a claim/picking a side. D) Providing an amusing anecdote. Show Answer Correct Answer: C) Making a claim/picking a side. 36. 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. 37. 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. 38. 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. 39. 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. 40. 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 less than or equal to y. B) X is less than y. C) X is equal to y. D) X is greater than y. Show Answer Correct Answer: A) X is less than or equal to y. 41. 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. 42. 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) Contrapositive. B) Inverse. C) Converse. D) Negation. Show Answer Correct Answer: C) Converse. 43. 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. 44. 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) Biconditional Statement. B) Contrapositive. C) Inverse. D) Converse. Show Answer Correct Answer: B) Contrapositive. 45. Determine if the statement is true or false:Two congruent angles are created when an angle is bisected A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 46. What is the inverse?If Jason does not go out to dinner, then he will come to the volleyball game. A) If Jason goes out to dinner, then he will not come to the volleyball game. B) If Jason comes to the volleyball game, then he will not go out to dinner. C) If Jason comes to the volleyball game, then he will go out to dinner. D) If Jason does not go out to dinner, then he will not come to the volleyball game. Show Answer Correct Answer: A) If Jason goes out to dinner, then he will not come to the volleyball game. 47. P = "I am 16 years old"Q = "I am in 10th grade"Which of the following represents Disjunction? A) If I am 16 years old, I am in 10th grade. B) I am 16 years old and I am in 10th grade. C) I am 16 years old or I am in 10th grade. D) I am NOT 16 years old, although I am in 10th grade. Show Answer Correct Answer: C) I am 16 years old or I am in 10th grade. 48. Negating both the hypothesis and conclusion of the converse of the conditional is the ..... A) Conditional. B) Converse. C) Contrapositive. D) Inverse. Show Answer Correct Answer: C) Contrapositive. 49. Which statement has a true truth value? A) Chicken has four legs. B) Shark has two legs. C) Birds can fly. D) Fish can walk. Show Answer Correct Answer: C) Birds can fly. 50. What symbol represents the and operator in JavaScript? A) AND. B) And. C) &. D) &&. Show Answer Correct Answer: D) &&. 51. What is it hypothesis in the statement:" If today is Tuesday, then we have school." ? A) We have school. B) Today is Tuesday. C) We do not have school. D) Tomorrow is Wednesday. Show Answer Correct Answer: B) Today is Tuesday. 52. What is the format for the converse 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: B) If q, then p. 53. Determine if the statement is true or false:A number that does not end with 3 is divisible by 2 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 54. Mention the other name for Iterative statements. A) Loops. B) Algorithm. C) All the above. D) None of the above. Show Answer Correct Answer: A) Loops. 55. ..... is an impression or information about a person that exists on the internet because of his online activity, A) Cyber Ethics. B) Digital Footprint. C) Intellectual property. D) Cyber Crime. Show Answer Correct Answer: B) Digital Footprint. 56. What does "p" stand for in "if p, then q" (conditional statement)? A) Conclusion. B) Hypothesis. C) Poetry. D) Probability. Show Answer Correct Answer: B) Hypothesis. 57. Transform the statement "Points that lie on the same line are collinear" into if-then form. A) If they are collinear, then they are points. B) If they are collinear, they are points on the same line. C) If points lie on the same line, then they are collinear. D) If they lie on the same line, they are collinear. Show Answer Correct Answer: C) If points lie on the same line, then they are collinear. 58. Identify the conclusion of the given statement: "A triangle is a polygon" A) It is a polygon. B) It is a triangle. C) A shape is a tringle. D) It has three side. Show Answer Correct Answer: A) It is a polygon. 59. A ..... has infinite points; one dimension and extends in opposite directions forever. A) Line. B) Point. C) Plane. D) Line segment. Show Answer Correct Answer: A) Line. 60. Write the following statement in if-then form.All vertical angles are congruent. A) If two angles are vertical, then they are congruent. B) If two angles are congruent, then they are vertical. C) All the above. D) None of the above. Show Answer Correct Answer: A) If two angles are vertical, then they are congruent. ← 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 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