This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 7 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 7 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Exception disrupts the A) Normal flow of the program. B) Abnornal flow of the program. C) Hard Disk. D) None of the Above. Show Answer Correct Answer: A) Normal flow of the program. 2. In Python the multiplication sign is ..... A) *. B) %. C) . D) '. Show Answer Correct Answer: A) *. 3. What is the output of the following loop:-for l in 'Jhon':if l == 'o':pass print(l, end=", ") A) J, h, n,. B) J, h, o, n,. C) Error. D) None of the given Options. Show Answer Correct Answer: B) J, h, o, n,. 4. ..... is information the user sends to the computer A) Software. B) Input. C) Secondary Memory. D) Program. Show Answer Correct Answer: B) Input. 5. Which of the following concepts is not a part of Python? A) Pointers. B) Loops. C) Dynamic typing. D) All of the above. Show Answer Correct Answer: A) Pointers. 6. Look at the following code:Length = 50Width = 30Area = L * Wprint (Area)What is the result of this code? A) Area. B) 50. C) 150. D) An error message. Show Answer Correct Answer: D) An error message. 7. What is the mutable object given below? A) Dict. B) Str. C) List. D) Tuple. Show Answer Correct Answer: C) List. 8. What is the output of program below?bicycles = ['trek', 'cannondale', 'redline', 'specialized']print(bicycles[-1]) A) Trek. B) Cannondale. C) Redline. D) Specialized. Show Answer Correct Answer: D) Specialized. 9. What is printed?cheer = "Go Eagles!"print cheer[:5] A) Go Eag. B) Go Ea. C) Go E. D) Go. Show Answer Correct Answer: B) Go Ea. 10. What will be the output of this code?x = 14y = 13y = x + 3if x<=y:print("Hurray")else:print("Yay") A) Hurray. B) Yay. C) 14. D) 13. Show Answer Correct Answer: A) Hurray. 11. Which if the values below is a string data type? A) FirstValue. B) F. C) 1.0. D) 10 > 3. Show Answer Correct Answer: A) FirstValue. 12. Which of the following is true for a tuple? A) Tup = 1, 2, 3. B) Tup = (""1, "2). C) Tup = (1, 2, 3, 4). D) None of the above. Show Answer Correct Answer: C) Tup = (1, 2, 3, 4). 13. What is the syntax to check if two values are equal in Python? A) ==. B) =. C) Is. D) ===. Show Answer Correct Answer: A) ==. 14. A while loop can be used in which of the following situations? A) Repeat a set of statements till a condition remains True. B) Repeat a set of statements a finite or an infinite number of times. C) Iterate through a string, list, and tuple. D) All of the above. Show Answer Correct Answer: D) All of the above. 15. There can be an else statement without an if statement A) FALSE. B) TRUE. C) All the above. D) None of the above. Show Answer Correct Answer: A) FALSE. 16. Is a list in Python mutable or immutable? A) Fixed. B) Mutable. C) Dynamic. D) Immutable. Show Answer Correct Answer: B) Mutable. 17. "AB-CD-EF" .partition('-'), the function returns the output A) ('ABCD', '-', 'EF'). B) ('AB', '-', 'CDEF'). C) ('AB', '-', 'CD-EF'). D) None of the above. Show Answer Correct Answer: C) ('AB', '-', 'CD-EF'). 18. Identify the initialization method for a Car class. A) Class init(self, make, model):. B) Class init :. C) Def init (self, make, model):. D) Def init (self, make, model):. Show Answer Correct Answer: C) Def init (self, make, model):. 19. What is the result of the following code?x = "Hello"print(bool(x)) A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 20. To display something on the screen, use this command: A) Print(). B) Print(). C) Screen(). D) Write(). E) Display(). Show Answer Correct Answer: A) Print(). 21. Print(boolean(None, "String", False, "False", 0, "value")What is the output? A) False, True, True, False, False, True. B) False, True, False, True, False, True. C) True, True, False, False, True, False. D) False, False, True, True, False, True. Show Answer Correct Answer: B) False, True, False, True, False, True. 22. Which of the following statements will cause a "while" loop to immediately exit without running any more statements in the body or checking the logical expression again? A) Else. B) Break. C) Continue. D) Stop. Show Answer Correct Answer: B) Break. 23. What will be the output of the following code?def fn1(c=10):print(c) fn1(4)fn1() A) 10 4. B) 4 10. C) 10 10. D) 4 4. Show Answer Correct Answer: B) 4 10. 24. Data type that can only be true or false A) Int. B) String. C) Boolean. D) Float. Show Answer Correct Answer: C) Boolean. 25. ..... is a data type that contain a set of characters (letters, symbols, etc.) E.g. "Hello", "Ali", "Car Type" A) Int. B) Float. C) Char. D) String. Show Answer Correct Answer: D) String. ← 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 8Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 9Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 10Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books