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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How do we change a user input from string to integer?
2. Consider the code below. What prints?print(int(33.7))
3. Select the correct operator for Floor Division (Div):
4. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.remove('Tinian')print(mariana ..... islands)
5. Which line of code is used to make a loop?
6. Which type of loop iterates until instructed otherwise?
7. What is the function of the reverse method for lists?
8. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.pop()print(mariana ..... islands)
9. If you want to create an empty list called colours in Python, which of the following is correct?
10. What is iteration known as?
11. What is the result of following Program in python3for i in range(1, 4):print(i)if(i==2):break;
12. What does the command 'wn' do?
13. Given a function that does not return any value, what value is thrown by default when executed in shell.
14. What is the output of the following code?for i in range(10, 15, 1):print( i, end=', ')
15. What symbol is used to either add two numbers together or join two strings?
16. To increment means to
17. Syntax is .....
18. I am 18 years old! What will the output be?:IF you are 70 or older, say "You are aged to perfection!" ELIF you are exactly 50, say "Wow, you are half a century old!" ELSE say "You are a spring chicken!"
19. Is the following statement True of False?Boolean variables can be used as conditions in an IF statement.
20. What is the output of the following?x = ['ab', 'cd']for i in x:i.upper()print(x)
21. Sort () function in list by default sort the values in .....
22. Which of the following would give an error?
23. What function converts the data in a variable into a 'float'?
24. Python can work in ..... mode.
25. What is print() called in Python coding?