This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 49 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 49 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is Python primarily used for? A) Web development, data analysis, artificial intelligence, scientific computing, automation, and scripting. B) Social media management, content creation, email marketing, and SEO optimization. C) Graphic design, video editing, web hosting, and cloud storage. D) Game development, mobile apps, system programming, and database management. Show Answer Correct Answer: A) Web development, data analysis, artificial intelligence, scientific computing, automation, and scripting. 2. Which of the following is not the mode of interacting with Python? A) Batch Mode. B) Hybrid Mode. C) Interactive Mode. D) Script Mode. Show Answer Correct Answer: B) Hybrid Mode. 3. The data type of '123' is: A) Int. B) Str. C) Float. D) Bool. Show Answer Correct Answer: B) Str. 4. THE SMALLEST INDIVIDUAL UNIT IN A PROGRAM IS KNOWN AS A ..... A) TOKEN. B) ASSET. C) SENTENCE. D) None of the above. Show Answer Correct Answer: A) TOKEN. 5. What is the output of the following code? print(2 + 3 * 4) A) 20. B) 14. C) 12. D) 10. Show Answer Correct Answer: B) 14. 6. Can Python be used for web development? A) No, Python cannot be used for any programming. B) Yes, Python can be used for web development. C) Yes, but only for mobile app development. D) No, Python is only for data analysis. Show Answer Correct Answer: B) Yes, Python can be used for web development. 7. How do you add a comment to Python code? A) Use the # symbol. B) Use the // symbol. C) Use the /* */ symbols. D) None of the above. Show Answer Correct Answer: A) Use the # symbol. 8. What is the main purpose of using Python programming language? A) Simplicity, readability, and versatility. B) Complexity, unreadability, and limited functionality. C) Difficulty, ambiguity, and inflexibility. D) Complication, obscurity, and narrowness. Show Answer Correct Answer: A) Simplicity, readability, and versatility. 9. How do you make the drawing canvas bigger in the turtle graphics library? A) Turtle.setup(, ). B) Turtle.Screen(). C) Turtle.screensize(, ). D) Turtle.mode(). Show Answer Correct Answer: C) Turtle.screensize(, ). 10. Who is the creator of Python programming language? A) Dennis Ritchie. B) James Gosling. C) Guido Van Rossum. D) Ross Ihaka. Show Answer Correct Answer: C) Guido Van Rossum. 11. ..... are data items that have a fixed value A) Tokens. B) Literals. C) Keyword. D) Operators. Show Answer Correct Answer: B) Literals. 12. What will be the output of the following code? "'pythonlength = 5unit = "metre"print(length, unit) "' A) 5metre. B) 5 metre. C) Length unit. D) "5 metre". Show Answer Correct Answer: B) 5 metre. 13. What is the purpose of a code editor in an Integrated Development Environment (IDE)? A) To write and edit code. B) To debug code. C) To compile code. D) To run code. Show Answer Correct Answer: A) To write and edit code. 14. Which of these is a correct comment in Python? A) // This is fun. B) # This is fun. C) This is fun. D) ** This is fun. Show Answer Correct Answer: B) # This is fun. 15. Which of the following is an example of a variable in Python? A) Print("hello"). B) Age=13. C) Input("Enter your age"). D) Type(). Show Answer Correct Answer: B) Age=13. 16. Python supports variable number of parameters. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 17. What type of error is returned by the following statement? print(eval(13)) A) SyntaxError. B) ValueError. C) No Error in this statement. D) TypeError. Show Answer Correct Answer: D) TypeError. 18. Machine code uses the binary number system. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 19. What does the input() function allow a user to do? A) Print variables. B) Create variables. C) Input information into a programme. D) Output information. Show Answer Correct Answer: C) Input information into a programme. 20. What is the correct syntax to print the text 'Hello, World!' in Python? A) Echo 'Hello, World!" '. B) Print \"Hello, World!\". C) Print(Hello, World!). D) Print('Hello, World!'). Show Answer Correct Answer: D) Print('Hello, World!'). 21. Given t = ("red", "blue", "blue", "green"). What does t.index("blue") return? A) 2 because second occurrence index. B) 1 because first occurrence index. C) 3 because length minus one. D) 0 because first item matches. Show Answer Correct Answer: B) 1 because first occurrence index. 22. A computer ..... is a detailed, step-by-step set of instructions telling a computer exactly what to do. A) Program. B) Algorithm. C) Function. D) Language. Show Answer Correct Answer: A) Program. 23. Debugging is the process of ..... A) Changing the code in the program. B) Identifying and removing errors from a program. C) Adding more code to the program. D) None of the above. Show Answer Correct Answer: B) Identifying and removing errors from a program. 24. Look at the code snippet:fruits = ("apple", "banana", "cherry"); print(len(fruits)). What is printed? A) It prints 1 item. B) It prints 2 items. C) It prints 4 items. D) It prints 3 items. Show Answer Correct Answer: D) It prints 3 items. 25. What version of Python are we learning this year? A) Version 2. B) Version 3. C) Version 4. D) None of the above. Show Answer Correct Answer: B) Version 3. ← 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