Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 20 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which code would display 'Hello World'
2. What data type represents a decimal number?
3. What is the Output of the following code?for x in range(0.5, 5.5, 0.5):print(x)
4. Why would you use a loop?
5. Which of the following best describes the purpose of a for loop?
6. What is the proper syntax for Python comments?
7. What will the output be from the following code?print("Hello" + 2 + "world")
8. The number or word we give to a variable
9. A function that can only be used by a class is called?
10. What is Basic syntax?
11. If Tracy started facing right, which direction would she be facing after we ran the following code? left(90)left(90)right(90)
12. What is the correct programming name of this symbol?()
13. Which of these operators means EQUAL TO?
14. What data type would be used for storing someone's telephone numbers?
15. Comments are used to make code easier to read.
16. The Python IDE colour codes sections of your code to make it easier to debug
17. Python can be defined as
18. What initiated the Burmese Python invasion in South Florida?
19. Why did Guido van Rossum call his programming language Python?
20. Try something a bunch of times, then change a little each time until it's right.
21. What is input() called in Python coding?
22. What is the output of the following code?What is the output of following codeTemperature = 20 Thermo = 15 if Temperature < 15:Thermo = Thermo + 5 print(Thermo)
23. If I want to store my height in a variable, which of the following would be a good variable name in best practice?
24. What is the result of following Program in python3for i in range(3, 0, -1)print("\{0\} Python" .format(i))
25. If I declare a variable within a function, can I then use its value within the outer global scope of my application?