This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 77 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 77 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Print("What's your favourite food?") food = input() print("I've never tried", food)When this program is executed, what will be displayed on the screen, as a result of executing line 3? A) I've never tried and whatever the user has typed at the keyboard. B) I've never tried food. C) I've never tried input(). D) It is not possible to know the output without executing the program. Show Answer Correct Answer: A) I've never tried and whatever the user has typed at the keyboard. 2. What is the purpose of the task:distance = user INPUT(), time = user INPUT(), speed = distance / time, OUTPUT:The speed of travel is + speed + m/s? A) To calculate distance from speed and time inputted by a user. B) To calculate distance from speed and time inputted by a user. C) To calculate speed from distance and time inputted by a user. D) To calculate time from speed and distance inputted by a user. Show Answer Correct Answer: C) To calculate speed from distance and time inputted by a user. 3. "True" is an example of what data type? A) Integer. B) String. C) Float. D) Boolean. Show Answer Correct Answer: B) String. 4. Which operator is used to concatenate two strings in Python? A) +. B) *. C) &. D) &&. Show Answer Correct Answer: A) +. 5. What is a module in Python? A) A built-in data type. B) A collection of functions and variables. C) A loop construct. D) A method for mathematical operations. Show Answer Correct Answer: B) A collection of functions and variables. 6. Who is the creator of Python? A) Guido van Rossum. B) An anonymous group of programmers. C) A large company. D) A team of IT specialists. Show Answer Correct Answer: A) Guido van Rossum. 7. What is an error in Python? A) An error in Python is a problem in the code that prevents execution. B) An error in Python is a warning that suggests improvements. C) An error in Python is a feature that enhances code execution. D) An error in Python is a type of variable used for debugging. Show Answer Correct Answer: A) An error in Python is a problem in the code that prevents execution. 8. What symbol is used to create a dictionary in Python? A) ( ). B) [ ]. C) \{ \}. D) < >. Show Answer Correct Answer: C) \{ \}. 9. Which of the following statements is true about comments in Python? A) Comments are executed by the Python interpreter. B) Comments can be written using # at the beginning of the line. C) Comments must be enclosed in double quotes. D) Comments are required after every line of code. Show Answer Correct Answer: B) Comments can be written using # at the beginning of the line. 10. X, y=3, 7print(x, y) A) 3, 7. B) 7, 3. C) 3 7. D) 7 3. Show Answer Correct Answer: C) 3 7. 11. Keyword check:In the statement age = 13, what is the identifier? A) =. B) Age. C) 13. D) Age = 13. Show Answer Correct Answer: B) Age. 12. Which function takes a users input A) Print(). B) Int(). C) Input(). D) Def. Show Answer Correct Answer: C) Input(). 13. How do you make the turtle draw a circle? A) Turtle.circle(radius). B) Turtle.circleShape(radius). C) Turtle.makeCircle(radius). D) Turtle.drawCircle(radius). Show Answer Correct Answer: A) Turtle.circle(radius). 14. A code that does a specific task is called a- A) Method. B) Procedure. C) Function. D) Routine. Show Answer Correct Answer: C) Function. 15. What is a Series in Pandas? A) A two-dimensional array containing a sequence of values of any data type. B) A one-dimensional array containing a sequence of values of any data type. C) A collection of key-value pairs. D) A data structure used for storing images. Show Answer Correct Answer: B) A one-dimensional array containing a sequence of values of any data type. 16. Which method is used to start the Tkinter event loop? A) Execute(). B) Mainloop(). C) Run(). D) Start(). Show Answer Correct Answer: B) Mainloop(). 17. What does the 'break' statement do in a loop? A) Pauses the loop. B) Exits the loop. C) Continues to the next iteration. D) Restarts the loop. Show Answer Correct Answer: B) Exits the loop. 18. Computers understand the language of 0s and 1s which is called ..... A) All of the above. B) Low level Language. C) Binary Language. D) Machine Language. Show Answer Correct Answer: A) All of the above. 19. Which programming language uses visual block coding? A) Python only. B) Scratch only. C) Both Scratch and Python. D) Neither Scratch nor Python. Show Answer Correct Answer: B) Scratch only. 20. What type of loop is most appropriate to use when you know exactly how many times you want the code block to execute (e.g., iterating through a list or using a range)? A) While loop. B) Do-while loop. C) For loop. D) Until loop. Show Answer Correct Answer: C) For loop. 21. Which of the following best describes a programming language? A) A method for storing data in a database. B) A way to talk to a computer using instructions. C) A way to create graphics and animations. D) A tool for designing websites. Show Answer Correct Answer: B) A way to talk to a computer using instructions. 22. What is the result of the expression 15 / 3 in Python? A) 5.0. B) 4.0. C) 3.0. D) 6.0. Show Answer Correct Answer: A) 5.0. 23. Num = 90Num = 20print(Num) A) 90. B) 4.5. C) 20. D) 1800. Show Answer Correct Answer: C) 20. 24. What is the main emphasis of Python? A) Code readability. B) Speed of execution. C) Memory management. D) Complexity of syntax. Show Answer Correct Answer: A) Code readability. 25. What is the syntax error with this code:print( "Hello World" ); A) No brackets around "Hello World". B) Speech marks are not needed. C) Colon is not needed. D) Print is spelt incorrectly. E) Print has a capital P. Show Answer Correct Answer: C) Colon is not needed. ← 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