This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 11 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 11 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Which line of code is written correctly? A) Hero.moveRight. B) Hero.moveRight(). C) Hero.MoveRight(). D) Hero.moveRight(). Show Answer Correct Answer: B) Hero.moveRight(). 2. A step-by-step set of instructions for completing a task A) Algorithm. B) Syntax. C) Loop. D) Variable. Show Answer Correct Answer: A) Algorithm. 3. You are in the car with traffic jammed at a junction. To cross that junction according to the traffic rules, which one is NOT applicable A) While loop. B) Conditional Statement. C) For loop. D) None of the above. Show Answer Correct Answer: C) For loop. 4. ..... statement is used to delete a dictionary. A) Del. B) Pop. C) Clear. D) Remove. Show Answer Correct Answer: A) Del. 5. NameList = ["John", "Harry", "Jesse", "John", "Marry", "Larry"]nameList[6] ="Susie"print(nameList)What would be the output A) ['John', 'Harry', 'Jesse', 'John', 'Marry', 'Larry', 'Susie']. B) ['Susie', 'John', 'Harry', 'Jesse', 'John', 'Marry', 'Larry']. C) ['Susie']. D) Error. Show Answer Correct Answer: D) Error. 6. A way of repeating code A) Repeat. B) Do again. C) Loop. D) Method. Show Answer Correct Answer: C) Loop. 7. Which of the following is a Python command word used to indicate we want to work with WHOLE numbers A) Input. B) Int. C) Float. D) Print. Show Answer Correct Answer: B) Int. 8. Choose the correct data type:"Sarah" A) Character. B) String. C) Integer. D) Real/Float. E) Boolean. Show Answer Correct Answer: B) String. 9. A named, reusable set of programming statements to perform a specific task defines A) Applications. B) Algorithms. C) Modules. D) Functions. Show Answer Correct Answer: D) Functions. 10. Improper tab placement will prevent a block of code from running properly. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 11. Everything that we want to display in a print() function must: A) Be inside parentheses-(). B) Quotation marks- "". C) Be inside single quotation marks-''. D) Be inside hash marks-#. Show Answer Correct Answer: B) Quotation marks- "". 12. The collection of modules and packages that together cater to a specific type of applications or requirements, is called ..... A) Module. B) Library. C) Classes. D) Documentation. Show Answer Correct Answer: B) Library. 13. Look at the following code:Length = input ("Length: ")Width = input ("Width: ")Area = Length * WidthPerimeter = 2 * (Length + Width)print (Perimeter)What is the result of this code if the user inputed 2 then 4? A) Perimeter. B) 12. C) 16. D) An error message. Show Answer Correct Answer: B) 12. 14. Suppose list1 is [1, 3, 2], What is list1 * 2? A) [2, 6, 4]. B) [1, 3, 2, 1, 3]. C) [1, 3, 2, 1, 3, 2]. D) [1, 3, 2, 3, 2, 1]. Show Answer Correct Answer: C) [1, 3, 2, 1, 3, 2]. 15. S1="Hello"s2="10"print(s1+n1)What is the error in this code? A) String 2 written in quotes. B) String cannot be multiplied with a string. C) Colon not written after print statement. D) Number written in quotes. Show Answer Correct Answer: B) String cannot be multiplied with a string. 16. In the Python example x = 9, 9 is the ..... A) Variable. B) Value. C) Number. D) Answer. Show Answer Correct Answer: B) Value. 17. What is Property? A) An action performed by an object. B) Data about or belonging to an object. C) A character or thing that can perform actions. D) A type of data that represents text. Show Answer Correct Answer: B) Data about or belonging to an object. 18. Which operator can be used to compare two values? A) <>. B) !=. C) =. D) ==. Show Answer Correct Answer: D) ==. 19. In Python, the command "while" will create a: A) Loop. B) Variable. C) Function. D) A chocolate cake. Show Answer Correct Answer: A) Loop. 20. What is the output of this python code?def foo(x):x[0] = ['def'] x[1] = ['abc'] return id(x)q = ['abc', 'def']print(id(q) == foo(q)) A) Error. B) True. C) False. D) None. Show Answer Correct Answer: B) True. 21. A named sequence of statements that returns a result is known as which of the following? A) Definition. B) Procedure. C) Turtle. D) Module. E) Function. Show Answer Correct Answer: E) Function. 22. What is the output of the following code?valueOne = 5 ** 2valueTwo = 5 ** 3print(valueOne)print(valueTwo) A) 1015. B) 25125. C) ERROR. D) None of the above. Show Answer Correct Answer: B) 25125. 23. 45 ! = 2 A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 24. What is the goal of managing the Burmese Python population? A) To completely eradicate them from Florida. B) To train them for pest control. C) To manage and mitigate their impacts. D) To use them for scientific research. Show Answer Correct Answer: C) To manage and mitigate their impacts. 25. O.73 is an example of a A) Integer. B) Floating point number. C) Boolean. D) Leanboo. Show Answer Correct Answer: B) Floating point number. ← 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