This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 62 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 62 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Code for257Hello, World! A) X = 257y = "Hello, World!"print(y)print(x). B) X = 257y = "Hello, World!"print(x)print(y). C) X = 257y = Hello, World!print xprint y. D) None of the above. Show Answer Correct Answer: B) X = 257y = "Hello, World!"print(x)print(y). 2. What is the output of the following code? "'pythonprint(type(42)) "' A) . B) . C) . D) . Show Answer Correct Answer: A) . 3. A computer program is best described as: A) The physical parts of a computer. B) A type of computer memory. C) A set of instructions that tells a computer what to do. D) The electricity that powers a computer. Show Answer Correct Answer: C) A set of instructions that tells a computer what to do. 4. What is the significance of Python's readability? A) Python's syntax is more complex than other languages. B) Python's readability enhances code maintainability, collaboration, and reduces errors. C) Python's readability slows down execution speed. D) Readability is not important in programming languages. Show Answer Correct Answer: B) Python's readability enhances code maintainability, collaboration, and reduces errors. 5. Which of the following best describes the output of a program that reads student details (Name, USN, Marks in three subjects) and displays the student details, total marks, and percentage with suitable messages? A) It displays student details, total marks, and percentage. B) It only displays the student name and USN. C) It displays only the marks in three subjects. D) It displays only the percentage. Show Answer Correct Answer: A) It displays student details, total marks, and percentage. 6. Name one use case of Python. A) Game development. B) Machine learning. C) Web development. D) Data analysis. Show Answer Correct Answer: C) Web development. 7. To stop the turtle drawing you need to use which of the following commands? A) Penup:. B) Pen up( ). C) Penup( ). D) Penup( ):. Show Answer Correct Answer: C) Penup( ). 8. What is the correct way to create a variable in Python? A) Var x = 10. B) Int x = 10. C) X = 10. D) 10 = x. Show Answer Correct Answer: C) X = 10. 9. Module-2:Dictionaries and Structuring Data are covered in which chapters of Textbook 1? A) Chapters 1-3. B) Chapters 4-5. C) Chapters 6-8. D) Chapters 9-10. Show Answer Correct Answer: B) Chapters 4-5. 10. Where can you download PyCharm? A) From the JetBrains website. B) From a third-party software repository. C) From the Python official website. D) From GitHub. Show Answer Correct Answer: A) From the JetBrains website. 11. Why is Python called Python? A) It is named after a snake. B) It is named after a comedy group. C) It is named after a famous scientist. D) It was the first programming language ever made. Show Answer Correct Answer: B) It is named after a comedy group. 12. Which one of the following is the correct extension of the Python file? A) .py. B) .python. C) .p. D) None of these. Show Answer Correct Answer: A) .py. 13. What is the purpose of syntax in text-based programming languages? A) To guide how statements and phrases are constructed. B) To confuse programmers. C) To slow down program execution. D) To hide errors. Show Answer Correct Answer: A) To guide how statements and phrases are constructed. 14. A location in memory used to store data that can be changed. A) Constant. B) Value. C) Variable. D) Iteration. Show Answer Correct Answer: C) Variable. 15. Python is a text-based programming language A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 16. Which of the following is an assignment operator in Python? A) =. B) ==. C) ===. D) >>>. Show Answer Correct Answer: A) =. 17. The second part of if, that is executed when the condition is false A) If. B) Else. C) For. D) Input. Show Answer Correct Answer: B) Else. 18. What will be the value of 'x' after executing the following code? "'pythonx = 5x = x + 2 "' A) 7. B) 5. C) 2. D) 10. Show Answer Correct Answer: A) 7. 19. This data type is used to store whole numbers A) Integer. B) Double. C) Boolean. D) String. Show Answer Correct Answer: A) Integer. 20. What does the double-slash // do in Python? A) Rounding-down division. B) Normal division. C) Multiplication. D) Addition. Show Answer Correct Answer: A) Rounding-down division. 21. What is the result of the following expression:$7 // 2$ A) 3.5. B) 3. C) 4. D) 2. Show Answer Correct Answer: B) 3. 22. B = 24a = 10print(a, b)When this program is executed, what will be displayed on the screen? A) 10 24. B) 24 10. C) A b. D) There is an error in the program because variables a and b are not assigned values in the right order. Show Answer Correct Answer: A) 10 24. 23. What is the output of print('OK')? A) OK. B) Error. C) Nothing. D) None of the above. Show Answer Correct Answer: A) OK. 24. What is recursion in programming? A) Recursion is a method where a function solves a problem by calling itself. B) Recursion is a method of storing data in a database. C) Recursion is when a function is executed only once in a program. D) Recursion is a technique where a function runs in parallel with another function. Show Answer Correct Answer: A) Recursion is a method where a function solves a problem by calling itself. 25. What is the output of the following code? print(type(3.14)) A) . B) . C) . D) Error. Show Answer Correct Answer: B) . ← 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