This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 19 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 19 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Numbers = [1, 2, 3, 4, 5]Which of the following code changes the element 4 to 9 A) Numbers[3] = 9. B) Numbers[4] = 9. C) All the above. D) None of the above. Show Answer Correct Answer: A) Numbers[3] = 9. 2. Select the correct operator for division: A) /. B) . C) ''. D) !. Show Answer Correct Answer: A) /. 3. Which if the values below is a float data type? A) 2. B) 2.11. C) 2/4. D) "2.11". Show Answer Correct Answer: B) 2.11. 4. Which kind of loop would be used?I need a guessing game program that will let me keep guessing until I get the right answer. A) FOR Loop. B) WHILE Loop. C) All the above. D) None of the above. Show Answer Correct Answer: B) WHILE Loop. 5. Cleave = hero.isReadyToCleave( ) A) The cleave variable is checking if cleave is ready. B) Cleave is not a variable, it is a conditional here. C) The confirms that hero is not ready to cleave. D) Cleave is a variable storing True/False, depending on the hero to be ready to cleave or not. Show Answer Correct Answer: D) Cleave is a variable storing True/False, depending on the hero to be ready to cleave or not. 6. What will be displayed to the screen when the following code runs? esport = "Galaga" for letter in esport:print(letter + " ..... ", end="") A) Galaga. B) G a l a g a . C) . D) Error; you cannot iterate over the letters in a string using the "in" keyword. Show Answer Correct Answer: B) G a l a g a . 7. Which of the following symbols is used in Python to mean "Greater than or equal to" ? A) <=. B) >>. C) >=. D) =>. Show Answer Correct Answer: C) >=. 8. Find the output of the following code:>>>str1='Save Soil'>>>str1.isalnum( ) A) Save Soil. B) True. C) False. D) None of the above. Show Answer Correct Answer: C) False. 9. Which character must be at the end of the line for if? A) :. B) ;. C) . D) \{. Show Answer Correct Answer: A) :. 10. It is possible to execute both the (block of) statements under if and the else clauses at the same time. A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: B) No. 11. If you want to create an empty list called islands, which of the following pieces of code is correct? A) Islands = \{ \}. B) Islands = ( ). C) Islands = [ ]. D) Islands = < >. Show Answer Correct Answer: C) Islands = [ ]. 12. Given a list named "esports", which of the following statements will access only the first and second items in that list? A) Esports(0:1). B) Esports(0:3). C) Esports[0:2]. D) Esports.range(0, 2). Show Answer Correct Answer: C) Esports[0:2]. 13. An ordered set of values between a known start and end value is the A) Radius. B) Loop. C) Range. D) Expression. Show Answer Correct Answer: C) Range. 14. If I use the command right(180), which way will Tracy turn? A) She will turn in a circle. B) She will turn around. C) She will turn to face up. D) She will turn to face left. Show Answer Correct Answer: B) She will turn around. 15. What error occurs when you execute?apple = mango A) SyntaxError. B) ValueError. C) TypeError. D) NameError. Show Answer Correct Answer: D) NameError. 16. What will be the output of the following Python function? all([2, 4, 0, 6]) A) Error. B) True. C) False. D) 0. Show Answer Correct Answer: C) False. 17. Notes that explain to others what each part of your program does. A) Code. B) Comment. C) Notes. D) Plan. Show Answer Correct Answer: B) Comment. 18. This operator means that one value is not equal to another value A) ==. B) <=. C) >=. D) !=. Show Answer Correct Answer: D) !=. 19. Give the output of the following statements>>> str='Hello World'>>>str.istiltle() A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 20. What is the answer to this expression, 22%3 is A) 7. B) 1. C) 0. D) 5. Show Answer Correct Answer: B) 1. 21. What is the significance of the name 'Python'? A) The name 'Python' is derived from a mythical creature in ancient folklore. B) The name 'Python' refers to the snake species known for its constricting abilities. C) The significance of the name 'Python' is that it was inspired by the British comedy show 'Monty Python's Flying Circus'. D) Python is named after a famous computer scientist named Monty Python. Show Answer Correct Answer: C) The significance of the name 'Python' is that it was inspired by the British comedy show 'Monty Python's Flying Circus'. 22. Which commands would draw a square A) Repeat the following five times:forward(10)turnright(72). B) Repeat the following three times:forward(10)turnright(120). C) Repeat the following four times:forward(10)turnright(90). D) Repeat the following three times:forward(10)turnright(110). Show Answer Correct Answer: C) Repeat the following four times:forward(10)turnright(90). 23. What is used to separate elements in a list? A) Bracket. B) Comma. C) Full Stop. D) Space. Show Answer Correct Answer: B) Comma. 24. Which operator performs an addition? A) -. B) +. C) ==. D) /. Show Answer Correct Answer: B) +. 25. Fill in the blank if a> b:print("True") ..... :print("False") A) Otherwise:. B) Then:. C) Else:. D) Elif:. Show Answer Correct Answer: C) Else:. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 1Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 2Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 3Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 4Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 5Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 6Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 7Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 8Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 9Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books