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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code?a = "b"if True or True:a = "a"print(a * 2)
2. What technology is used to track Burmese Pythons in the wild?
3. Operators with same precedence are evaluated in which manner?
4. Eval("20") will give us the number value of
5. How do you tell python you want to use the turtle library
6. Which of the following is not valid variable name in Python?
7. What is the default data type in Python?
8. Which brackets are used for Lists?
9. Operators used in python:divide, multiply, add, subtract
10. Predict the output:>>>saint="Thiruvalluvar">>>print(saint[5:])
11. Which of the following statements will successfully send the value "EEK" back from a function to the calling code?
12. In Python, to make remarks that the computer will ignore, we use:
13. What does import turtle mean?
14. How many except statements can a try-except block have?
15. Which of the following is true for variable names in python?
16. In the pyton example x = 9, x is the
17. Any number is True, except 1.
18. What is the output from the following lines of code?a = [2, 4, 8]a[2] = 6print(a)
19. Choose the correct output of the following code.for i in range(10, 15):print(i)
20. Look at the following code:age = "23"age = age + 1print (age)What is the result of this code?
21. How many times does a for loop iterate if the range is (1, 5)?
22. What is the latest stable version of Python as of 2021?
23. Which operator checks if a value is equal to another value?
24. Which character is used to denote long integer?
25. How do you tell that Python that you are going to use the turtle library?