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?
2. Which of the following is not the mode of interacting with Python?
3. The data type of '123' is:
4. THE SMALLEST INDIVIDUAL UNIT IN A PROGRAM IS KNOWN AS A .....
5. What is the output of the following code? print(2 + 3 * 4)
6. Can Python be used for web development?
7. How do you add a comment to Python code?
8. What is the main purpose of using Python programming language?
9. How do you make the drawing canvas bigger in the turtle graphics library?
10. Who is the creator of Python programming language?
11. ..... are data items that have a fixed value
12. What will be the output of the following code? "'pythonlength = 5unit = "metre"print(length, unit) "'
13. What is the purpose of a code editor in an Integrated Development Environment (IDE)?
14. Which of these is a correct comment in Python?
15. Which of the following is an example of a variable in Python?
16. Python supports variable number of parameters.
17. What type of error is returned by the following statement? print(eval(13))
18. Machine code uses the binary number system.
19. What does the input() function allow a user to do?
20. What is the correct syntax to print the text 'Hello, World!' in Python?
21. Given t = ("red", "blue", "blue", "green"). What does t.index("blue") return?
22. A computer ..... is a detailed, step-by-step set of instructions telling a computer exactly what to do.
23. Debugging is the process of .....
24. Look at the code snippet:fruits = ("apple", "banana", "cherry"); print(len(fruits)). What is printed?
25. What version of Python are we learning this year?