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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Generally speaking Python (TM) would run ..... than C++ and take ..... time to create
2. What is the primary focus of Python's design philosophy?
3. Your program asks users to enter their age in years. What data type will Python return for that input if someone enters a value of 13.50?
4. Which of the following is NOT a valid data type in Python?
5. How do you join two strings 'first' and 'last' with a space between them?
6. What is the result of the following code? "'pythonweight = 8print(type(weight)) "'
7. What is the purpose of the Matplotlib library?
8. Strings in Python are written inside:
9. What is the purpose of introducing extra spaces within a line of Python code?
10. Which random function returns a random 'float' number between 0 and 1?
11. What type of value does the input() function return?
12. Which of the following is a string?
13. What is the output of the following code? "'pythonprint("Hello, World!") "'
14. Each statement in Python is terminated by .....
15. A software update often helps with the removal of .....
16. What is the correct syntax to print 'Hello, World!' in Python?
17. Read the Python program below:1 print("Where do you live?")2 location = input()3 print("I've never been to", location)When this program is executed, what will be displayed on the screen, as a result of executing line 3?
18. Which keyword is used to stop a loop?
19. How many times will the following loop execute?for i in range(3):print("Looping")
20. WHO INVENTED PYTHON?
21. Which of the following expressions will evaluate to True?
22. Which operator is used for logical AND in Python?
23. Which one of the following is the most appropriate python language feature?
24. What is IDLE in the context of Python?
25. What is the result type of comparisons like y==z in Python?