This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 4 Conditional And Iterative Statements – Quiz 17 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 17 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What does (~) mean? A) To make negative. B) To make positive. C) To be nuetral. D) None of the above. Show Answer Correct Answer: A) To make negative. 2. What Javascript code matches this statement:The player has gathered at least 300 coins or reached the end of the level. A) If ("coins" >= 300 && "end" == true). B) If (coins >= 300 || end == true). C) If ("coins" >= 300 OR "end" == true). D) If ("coins" >= 300 || "end" == true). Show Answer Correct Answer: B) If (coins >= 300 || end == true). 3. Identify the conclusion to the following:If Spencer wins his soccer game, then he will be happy. A) Spencer is happy. B) Spencer is not happy. C) Spencer lost his game. D) Spencer is not happy if he does not win his soccer game. Show Answer Correct Answer: A) Spencer is happy. 4. Original:If the angles are congruent, then the measures of the angles are equal.What is this statement called:If the measures of the angles are equal, then the angles are congruent. A) Conditional. B) Converse. C) Inverse. D) Contrapositive. Show Answer Correct Answer: B) Converse. 5. It describe an ordered set of values in Python A) List. B) Tuple. C) String. D) All of these. Show Answer Correct Answer: D) All of these. 6. Conditional statements which has two parts, the hypothesis and the conclusion. A) If statement. B) Then statement. C) If-Then statement. D) Statement. Show Answer Correct Answer: C) If-Then statement. 7. Which of these would move the sprite down on the stage? A) Change x by 10. B) Change x by-10. C) Change y by 10. D) Change y by-10. Show Answer Correct Answer: D) Change y by-10. 8. Conditional Statement:If you are in California, then you are in Los Angeles.What is the hypothesis? A) You are in California. B) You are not in California. C) You are in Los Angeles. D) You are not in Los Angeles. Show Answer Correct Answer: A) You are in California. 9. Name the two types of loops. A) For, While. B) While, if. C) For, if. D) If, if else. Show Answer Correct Answer: A) For, While. 10. What is the hypothesis of the following statement: "If Johnny is late to school, then his mom will have to drive him." A) His mom will have to drive him. B) If Johnny is late to school. C) Johnny is late to school. D) Then his mom will have to drive him. Show Answer Correct Answer: C) Johnny is late to school. 11. The 'else' statement is optional in Python A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 12. Given, "If angles are congruent, then the measures of the angles are equal." Identify the inverse. A) If the measures of the angles are equal, then the angles are congruent. B) "If angles are not congruent, then the measures of the angles are not equal.". C) If the measures of the angles are not equal, then the angles are not congruent. D) If the angles are not congruent, then the measure of the angles are equal. Show Answer Correct Answer: B) "If angles are not congruent, then the measures of the angles are not equal.". 13. True or False:This is a good example of a thesis statement:In this essay I will discuss the crime rate in Mountain City. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 14. Let p represent:Two angles are supplementary.Let q represent:The angles have a sum of 180$^\circ$What is the symbolic representation of the following statement;If two angles have a sum of 180$^\circ$, then the angles are supplementary. A) P $\rightarrow$ q. B) Q $\rightarrow$ p. C) ~p $\rightarrow$ q. D) ~q $\rightarrow$ ~p. Show Answer Correct Answer: B) Q $\rightarrow$ p. 15. Conditional:If Jenny buys a guitar, then she will not buy a keyboard.What is this? If Jenny does buy a keyboard, then she will not buy a guitar. A) Converse. B) Inverse. C) Contrapositive. D) Negation. Show Answer Correct Answer: C) Contrapositive. 16. If my son ..... (not/want) to go out, I ..... (cook) dinner at home. A) Don't want, will cook. B) Doesn't want, cooked. C) Doesn't want, will cook. D) Is not going to cook, cook. Show Answer Correct Answer: C) Doesn't want, will cook. 17. The two membership operators in Python are ..... A) If ElIF. B) In and not in. C) In and range. D) Range and Between. Show Answer Correct Answer: B) In and not in. 18. Give a counter example to the following statement:"If candy is crunchy, then it contains nuts." A) Snickers Bar. B) Nerds. C) Pixy Stix. D) Almond Joy. Show Answer Correct Answer: B) Nerds. 19. How many times print statement will execute? i=0For i in range(1, 100, 2):print(i) A) 50. B) 100. C) 101. D) 49. Show Answer Correct Answer: A) 50. 20. What is the format for the contrapositive of a conditional statement? A) If p, then q. B) If ~p, then q. C) If q, then p. D) If ~q, the ~p. Show Answer Correct Answer: D) If ~q, the ~p. 21. What is the converse ( $q\rightarrow p$ A) If you are not 13, then you are a teenager. B) If you are 13, then you are not a teenager. C) If you are a teenager, then you are 13. D) If you are not a teenager, then you are not 13. Show Answer Correct Answer: C) If you are a teenager, then you are 13. 22. If it snows, ..... still drive to the coast? A) Will you. B) Would you. C) Would you have. D) None of the above. Show Answer Correct Answer: A) Will you. 23. The ..... statements cause the program control to transfer to a specific location depending on the outcome of the conditional expression. A) Sequential. B) Conditional. C) Iterative. D) All of these. Show Answer Correct Answer: B) Conditional. 24. What is the purpose of a while loop in Python? A) To repeatedly execute a block of code as long as a certain condition is true. B) To terminate the program immediately. C) To skip a block of code. D) To execute a block of code only once. Show Answer Correct Answer: A) To repeatedly execute a block of code as long as a certain condition is true. 25. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you feed your turtle, then it will grow."you feed your turtle A) Hypothesis. B) Conclusion. C) All the above. D) None of the above. Show Answer Correct Answer: A) Hypothesis. ← 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