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

Quiz Instructions

Select an option to see the correct answer instantly.

1. If a function named "mystery" is defined as taking no parameters, how would you call that function from your code?
2. What is the order of precedence in python?$^{i) Parentheses}$$^{ii) Exponential}$$^{iii) Multiplication}$$^{iv) Division}$$^{v) Addition}$$^{vi) Subtraction}$
3. In programming, lists are often known as .....
4. Who manages the development of Python?
5. What is the syntax to check if a value is greater than or equal to another value in Python?
6. What is the output of program below?mariana ..... islands = ['Guam', 'Saipan', 'Tinian', 'Rota']print(mariana ..... islands[-1])
7. Look at the following code:age = 23age = float(age)What does the float() function do to the data inside age?
8. A FOR loop is .....
9. What would be printed to the screen?x, y, z = "Orange", "Banana", "Cherry"print(z)
10. A data type consisting of positive and negative whole numbers
11. Choose the correct data type:0.25
12. You write a program where the user types how many apples they want to buy. The program calculates the total cost and displays it on the screen in pounds. What is the output?
13. Choose the correct data type:Height (in metres) Example:1.64
14. ..... data type contain a set of characters (text) or word such as Hello, Ali, Car Type etc.
15. Python correct naming convention for variables is?
16. What is the purpose of the else statement in a for loop?
17. What will be the output shape of the following Python code?import turtlet=turtle.Pen()for i in range(0, 4):t.forward(100)t.left(120)
18. True or False:There are no symbols which can be used in a variable name.
19. In which language is Python written?
20. Which of the following is not a comparison operator?
21. Numbers = [1, 3, 5, 7]Which of the following code inserts 9 into the list above at index 2
22. Str="computer"print(str[-6:-1])
23. How do you write a program in Python?
24. A straight line from the center to the circumference of a circle or sphere is the
25. What is the keyword needed to repeat code (iterate) in Python?