This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 29 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 29 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. ..... is a string literal denoted by triple quotes for providing the specifications of certain program elements. A) Interface. B) Modularity. C) Client. D) Docstring. Show Answer Correct Answer: D) Docstring. 2. What is printed?cheer = "Go Eagles!"print cheer[7:] A) Nothing-error. B) S!. C) Es!. D) Go Eagles. Show Answer Correct Answer: C) Es!. 3. What is the syntax to check if a value is less than or equal to another value in Python? A) <=. B) >=. C) ==. D) >. Show Answer Correct Answer: A) <=. 4. Choose the correct data type:True A) Character. B) String. C) Integer. D) Real/Float. E) Boolean. Show Answer Correct Answer: E) Boolean. 5. What happens if you call your python progam "turtle" A) Your program crashes because you have spelt it wrong. B) Your program crashes because it stops the import turtle line from working. C) Your program crashes because it should have been saved as turtle.turtle. D) Your program runs fine. Show Answer Correct Answer: B) Your program crashes because it stops the import turtle line from working. 6. Is python is platform independent A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: A) Yes. 7. What does case sensitive mean? A) I don't like cases. B) Outcome is based on uppercase and lowercase fonts. C) A lawyers feelings. D) What i put my switch in. Show Answer Correct Answer: B) Outcome is based on uppercase and lowercase fonts. 8. Which of the following will give error?Suppose dict1=\{"a":1, "b":2, "c":3\} A) Print(len(dict1)). B) Print(dict1.get("b")). C) Dict1["a"]=5. D) None of these. Show Answer Correct Answer: D) None of these. 9. The spelling and grammar rules of a programming language is called A) GSP. B) Syntax. C) Code. D) Comments. Show Answer Correct Answer: B) Syntax. 10. What is the result of [1, 2, 3] + [4, 5, 6] in Python? A) [1, 2, 3, 4, 5]. B) [5, 7, 9, 11]. C) [1, 2, 3, 9, 10, 11]. D) [1, 2, 3, 4, 5, 6]. Show Answer Correct Answer: D) [1, 2, 3, 4, 5, 6]. 11. Which function is used to accept input from the user during the runtime. A) Type(). B) Input(). C) Print(). D) Help(). Show Answer Correct Answer: B) Input(). 12. Numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]numbers [-3]What is numbers [-3] A) 8. B) 9. C) 7. D) None of the above. Show Answer Correct Answer: A) 8. 13. What is the output of this code?click = TrueLike = 0 if click:Like = Like + 1 print(Like) A) 0. B) 1. C) 2. D) 3. Show Answer Correct Answer: B) 1. 14. What is printed?cheer = "Go Eagles!"print cheer[1:4] A) Go E. B) O E. C) "o E". D) Nothing-there is an error. Show Answer Correct Answer: B) O E. 15. What is the answer to this expression, 22 % 3 is? A) 7. B) 1. C) 0. D) 4. Show Answer Correct Answer: B) 1. 16. A set of instructions that is repeated until a condition is reached is A) A loop. B) Code. C) A function. D) An expression. Show Answer Correct Answer: A) A loop. 17. Stores True or False A) INTEGER. B) REAL (Float). C) STRING. D) BOOLEAN. Show Answer Correct Answer: D) BOOLEAN. 18. In Python, 'Hello', is the same as "Hello" A) True. B) False. C) Cant say. D) Both are wrong. Show Answer Correct Answer: A) True. 19. Slicing string X="BOnVoyage" print X[0:5] A) BOnVoy. B) BOnVo. C) Oyage. D) Bonvo. Show Answer Correct Answer: B) BOnVo. 20. What does "\t '' make? A) Goes to next line. B) Horizontal space between two strings. C) Give a title. D) Add a slash. Show Answer Correct Answer: B) Horizontal space between two strings. 21. Which of the following is not a valid namespace? A) Global namespace. B) Public namespace. C) Built-in namespace. D) Local namespace. Show Answer Correct Answer: B) Public namespace. 22. To remove string "hello" from list1, we use which command? A) List1.remove( "hello" ). B) List1.remove(hello). C) List.remove( "hello" ). D) List.remove(hello). Show Answer Correct Answer: A) List1.remove( "hello" ). 23. Which is true about booleans? A) They state your age. B) It is a mixture of cool and beans. C) It sounds funny. D) They hold true and false values. Show Answer Correct Answer: D) They hold true and false values. 24. How did the pet trade contribute to the python problem? A) By selling pythons that were too large for most owners to handle. B) By breeding pythons for release into the wild. C) By smuggling pythons into Florida. D) By using pythons for entertainment purposes. Show Answer Correct Answer: A) By selling pythons that were too large for most owners to handle. 25. 19 % 2 in python A) 1. B) 2. C) 9. D) None of these. Show Answer Correct Answer: A) 1. ← 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