This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 34 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 34 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Why is it called 'Python'? A) It was created by someone called Mr Python. B) The guy who created it loves Monty Python films. C) You can create a game on python called snake. D) The guy who created it loves snakes. Show Answer Correct Answer: B) The guy who created it loves Monty Python films. 2. How do you handle errors in Python? A) Try-except. B) Catch-throw. C) Do-except. D) Try-catch. Show Answer Correct Answer: A) Try-except. 3. A set of instructions a computer follows to do a task is called a- A) Program. B) Algorithm. C) Software. D) Application. Show Answer Correct Answer: A) Program. 4. Which of the following is a reserved keyword in Python? A) Variable. B) Function. C) If. D) Loop. Show Answer Correct Answer: C) If. 5. What will print("Hi" + '' there") show? A) Hithere. B) Hi there. C) Hi+there. D) "Hi there". Show Answer Correct Answer: B) Hi there. 6. What is one of the uses of Python mentioned in the text? A) Developing operating systems. B) Creating video games. C) Designing graphics. D) Building web apps. Show Answer Correct Answer: D) Building web apps. 7. What is programming? A) Creating hardware components. B) Passing instructions to a machine to solve a problem. C) Designing computer graphics. D) Writing reports about computers. Show Answer Correct Answer: B) Passing instructions to a machine to solve a problem. 8. What will be the output of the following code? x = 5 if x > 3:print("Greater") else:print("Smaller") A) Greater. B) Smaller. C) Error. D) 5. Show Answer Correct Answer: A) Greater. 9. What does IDE stand for in Python programming? A) Internet Development Environment. B) Integrated Design Editor. C) Integrated Development Environment. D) Internal Data Explorer. Show Answer Correct Answer: C) Integrated Development Environment. 10. Which statement is true about variable names in Python? A) Variable names can start with a number. B) Variable names are case-sensitive. C) Variable names can contain spaces. D) Variable names cannot use underscores. Show Answer Correct Answer: B) Variable names are case-sensitive. 11. What makes Python a versatile programming language? A) It can be used on different platforms and supports multiple programming paradigms. B) It is only used for web development. C) It has a complex syntax. D) It is expensive to use. Show Answer Correct Answer: A) It can be used on different platforms and supports multiple programming paradigms. 12. Define the term algorithm A) A set of steps to solve a problem. B) A set of steps to to the plane. C) A set of steps to to climb a mountain. D) A set of steps to to go the second floor. Show Answer Correct Answer: A) A set of steps to solve a problem. 13. How many times does the following program print the word 'computer':word= "computer" for num in range(1, 6):print(word) A) 5. B) 6. C) 1. D) 0. Show Answer Correct Answer: A) 5. 14. Given fruits = ('apple', 'banana', 'cherry'), what does the expression 'cherry' in fruits evaluate to? A) Index position integer. B) False boolean value. C) True boolean value. D) Raises a TypeError. Show Answer Correct Answer: C) True boolean value. 15. What is a string? A) List of characters (text). B) Numbers. C) Decimal Number. D) Question. Show Answer Correct Answer: A) List of characters (text). 16. What must you start your line of code with so that the program knows what code you are using? A) From turtle import *. B) Import turtle. C) From turtle import turtle. D) Turtle.start(). Show Answer Correct Answer: A) From turtle import *. 17. Write the output of the following:x = int(7) + int('9'); print(x) A) 79. B) None of the above. C) 16. D) Error. Show Answer Correct Answer: C) 16. 18. Why was Python (TM) developed? A) To go back to the old way of programming. B) To create a programming language for students in grade school. C) To make it easier to learn Java. D) Python was developed by accident. Show Answer Correct Answer: B) To create a programming language for students in grade school. 19. Which of following language is called as interpreter language . A) C. B) C++. C) Java. D) Python. Show Answer Correct Answer: D) Python. 20. Which of the following is an example of a Python string? A) 42. B) "42". C) True. D) 3.14. Show Answer Correct Answer: B) "42". 21. The term which describes errors in a programme A) Syntax. B) Syntax error. C) Logic error. D) Bug. E) Debug. Show Answer Correct Answer: D) Bug. 22. What does the Python Turtle Library allow you to do? A) Play online music. B) Control a physical robot. C) Create graphics and drawings using code. D) Perform advanced mathematical calculations. Show Answer Correct Answer: C) Create graphics and drawings using code. 23. Used to add annotation to the code: A) %. B) *. C) &. D) #. Show Answer Correct Answer: D) #. 24. Python is an example of which type of programming language? A) High-level. B) Assembly-level. C) Machine-level. D) Low-level. Show Answer Correct Answer: A) High-level. 25. What is the radius of a circle as used in Tracy's commands? A) Circumference. B) Distance from center to edge. C) Area of the circle. D) Diameter. Show Answer Correct Answer: B) Distance from center to edge. ← 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