This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 73 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 73 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is pip? A) Performance Improvement Plan. B) Python Installation Package. C) Package Manager. D) None of the above. Show Answer Correct Answer: C) Package Manager. 2. What is the output of the following code?for i in range(3):if i == 2:breakprint(i) A) 0, 1, 2. B) 0, 1. C) 1, 2. D) 0. Show Answer Correct Answer: B) 0, 1. 3. The input() function in Python can be used to A) Print text on the screen. B) Store a variable. C) Let the user type in some text. D) Exit the program. Show Answer Correct Answer: C) Let the user type in some text. 4. An escape sequence represents how many characters?"\t" A) 3. B) 2. C) 1. D) 4. Show Answer Correct Answer: C) 1. 5. What is the end after if statements? A) If. B) Elif. C) Else. D) While. Show Answer Correct Answer: C) Else. 6. What will the following code output?if 5 > 3:print("True")else:print("False") A) True. B) False. C) Error. D) None. Show Answer Correct Answer: A) True. 7. What is the function to exit the turtle graphics window? A) Turtle.done(). B) Turtle.close(). C) Turtle.exit(). D) Turtle.quit(). Show Answer Correct Answer: A) Turtle.done(). 8. Write the output of the following:print(range(0, 8, 2)) A) None of the above. B) Range(0, 8, 2). C) 0, 2, 4, 6. D) Error. Show Answer Correct Answer: B) Range(0, 8, 2). 9. Which of the following declarations is incorrect in python language? A) Xyzp = 5, 000, 000. B) X y z p = 5000 6000 7000 8000. C) X, y, z, p = 5000, 6000, 7000, 8000. D) X y z p = 5, 000, 000. Show Answer Correct Answer: B) X y z p = 5000 6000 7000 8000. 10. Which of the following is NOT a built in module in Python? A) Random module. B) Os module. C) Math module. D) Science module. Show Answer Correct Answer: D) Science module. 11. What is the output of the following code?for i in range(5):if i == 2:continueprint(i) A) 0, 1, 3, 4. B) 0, 1, 2, 3, 4. C) 1, 3, 4. D) 1, 2, 3, 4. Show Answer Correct Answer: A) 0, 1, 3, 4. 12. Which of the following is a valid tuple declaration? A) \{1, 2, 3\}. B) <1, 2, 3>. C) (1, 2, 3). D) [1, 2, 3]. Show Answer Correct Answer: C) (1, 2, 3). 13. What does len("Python") return? A) 5. B) 6. C) Python. D) Error. Show Answer Correct Answer: B) 6. 14. What will be the output of the following code? "'python# This is a commentprint(2 ** 3) "' A) 6. B) 8. C) 9. D) 5. Show Answer Correct Answer: B) 8. 15. What will be the output?name = 'Dave'greeting = "Good morning" + nameprint (greeting) A) Good morning 'Dave'. B) Good morning name. C) Good morningDave. D) Good morning + Dave. Show Answer Correct Answer: C) Good morningDave. 16. What character is used to indicate a comment in PLS? A) #. B) //. C) . D) %. Show Answer Correct Answer: A) #. 17. What will the below Python code will return?list1=[0, 2, 5, 1]str1="7"for i in list1:str1=str1+iprint(str1) A) 70251. B) 7. C) 15. D) Error. Show Answer Correct Answer: D) Error. 18. What is the output of the following code? "'pythonprint(type(3.14)) "' A) . B) . C) . D) . Show Answer Correct Answer: A) . 19. What is the main purpose of the Python Software Foundation? A) To promote the use of Python for commercial purposes. B) To oversee the development of Python. C) To provide financial support for Python developers. D) To promote the use of other programming languages. Show Answer Correct Answer: B) To oversee the development of Python. 20. What is the correct full form of IDLE in Python? A) Interactive Development and Language Environment. B) Integrated Development and Learning Environment. C) Integrated Development and Language Environment. D) Interactive Development and Learning Environment. Show Answer Correct Answer: B) Integrated Development and Learning Environment. 21. Which of the following is the correct way to check if a variable 'weight' is greater than 10 in Python? A) If weight > 10:. B) If (weight > 10). C) If weight => 10:. D) If weight gt 10:. Show Answer Correct Answer: A) If weight > 10:. 22. Python keywords are: A) Reserved words. B) Any variable name. C) Colors. D) Functions only. Show Answer Correct Answer: A) Reserved words. 23. Where to write explanatory text in Google Colab? A) Text Cell. B) Code Cell. C) All the above. D) None of the above. Show Answer Correct Answer: A) Text Cell. 24. Python files are saved with which extension? A) .txt. B) .exe. C) .py. D) .java. Show Answer Correct Answer: C) .py. 25. Which operator is used for concatenation in the slides? A) -. B) *. C) +. D) /. Show Answer Correct Answer: C) +. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 2 Introduction To Python Quiz 1Class 11 Computer Science Chapter 2 Introduction To Python Quiz 2Class 11 Computer Science Chapter 2 Introduction To Python Quiz 3Class 11 Computer Science Chapter 2 Introduction To Python Quiz 4Class 11 Computer Science Chapter 2 Introduction To Python Quiz 5Class 11 Computer Science Chapter 2 Introduction To Python Quiz 6Class 11 Computer Science Chapter 2 Introduction To Python Quiz 7Class 11 Computer Science Chapter 2 Introduction To Python Quiz 8Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9Class 11 Computer Science Chapter 2 Introduction To Python Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books