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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Why is Python considered easy to learn?
2. Which of the following will print the text Python Programming on the same line?
3. What is the purpose of saving your Python program?
4. Choose the keyword from the following
5. Is Python free software?
6. Which of the following is a mutable data type in Python?
7. What does 'if ..... name ..... == " ..... main ..... ":' do?
8. Which function is used to display output in Python?
9. Which of the following is TRUE about Python?
10. What is an algorithm?
11. What is the output of the following code? x = 2 x = x * x print(x)
12. In Python a list with no elements like this [] is also called:
13. Pick the Python command used to let the user type in some data
14. Print( "Mypython" *3)
15. A statement is .....
16. How do you immediately exit a loop in Python?
17. Read the Python program below:print("Enter a number")number = int(input())if number > 0:print(number, "is positive")else:print(number, "is negative")When this program is executed, what will be displayed on the screen if the user enters 0 at the prompt?
18. What must you use at the end of an if line in Python?
19. Python was created by:
20. What are algorithms?
21. A data type that can only be one of two values:True or False
22. What is the correct syntax to output "Hello, World" in Python?
23. Which of the following data types is NOT supported in Python?
24. What type of programming paradigms does Python support?
25. What will happen if you try to print a variable that hasn't been defined?