Class 11 Computer Science Chapter 2 Introduction To Python Quiz 31 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which one is a Boolean value?
2. A note to the programmer that tells about the code is called a-
3. What symbol is used for multiplication in Python?
4. What does len('apple') return?
5. Which of the following is a characteristic of Python?
6. Read the Python program below:number = 13if number == 0:print("zero")else:print(number)number = 0When this program is executed, what will be displayed on the screen?
7. What is the default package manager for Python?
8. What is the purpose of the subprogram turtle.Turtle() in the turtle library module?
9. Consider the list:myList=["r", "o", "y", "g", "b", "i", "v"]What prints from the following statement?print(myList[0:3])
10. How can Python help in robotics?
11. PyCharm needs Python interpreter installed to work.
12. Print("12"*3)What would this print?
13. What will the output be from the following code?print(3+4)
14. What does the 'len()' function return when applied to a string?
15. Writing comments is mandatory in Python programs (T/F)
16. What is the file extension of a Python program?
17. Print my ..... list[-1]my ..... list = [0, 1, 2, 3, 4, 5]
18. How many 'else' blocks can an 'if-elif-else' chain have?
19. What is the output of print 'Hello world!'?
20. What is the keyword to create a class?
21. Which of the following statements is true about recursion in Python?
22. What is the output of the expression 3 + 4 * 2?
23. Read the Python program below:number = 13if number < 10:print("small")if number < 100:print("medium")if number < 1000:print("large")When this program is executed, what will be displayed on the screen?
24. How to insert comments in Python?
25. What function is used to take input from the user in Python?