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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The code you use to receive and input from the keyboard
2. Which of the following statement is true between char and string data types?
3. What is the correct order of the following?
4. If L1=[2, 4, 8, 16] What is the result of the following statement16 in L1
5. If function definition has no content, then what statement to be used to avoid getting an error.
6. Which one is not true about function?
7. "def" keyword is used in python to-
8. Which of the following correctly stores 'price' as a decimal number?
9. What key word describesThe process of defining the 'type' of a piece of data?
10. Which kind of loop would be used?I need a program that will keep letting me add a monthly payment for 12 months.
11. Kind of loop used when you know the number of times you want it to repeat
12. Suppose list1 is [1, 5, 9], what is sum(list1)?
13. What is the output of the following code?str = "pynative"print (str[1:3])
14. Docstrings
15. How do i remove something from the end of a list?
16. What brackets are used to create a list?
17. Choose the correct data type:Attendance of a studentExample:yesExample 2:no
18. Which of the following symbols is used in the beginning of a line to create a single line comment in Python?
19. What is the result of following Program in python3for i in range(1, 4):print(i)if(i==2):continue;
20. In Python script editor, the errors will be shown in ..... color in the IDLE window?
21. A Python dictionary stores .....
22. How do Burmese Pythons affect the food chain in the Everglades?
23. A # in Python means the user is trying to .....
24. Sonam has written this program in Python. One of the lines contains at least one error. Which line is it?
25. What is the result of the following condition if:A = 30B = 21C = 71B != A or C < A