Class 11 Computer Science Chapter 2 Introduction To Python Quiz 23 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the result of this expression:3 + 2 * 4?
2. What does the ' = open(, "a")' command do in Python?
3. Python identifies blocks of code by
4. How does the Python community contribute to its popularity?
5. The list needs one more name added to the end- "Felipe" . Which piece of code below would do this?nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
6. Which symbol means "equal to" in an 'if' condition?
7. What is the result of the following expression in Python:'3 + 4.5'?
8. What is the output of the following code? "'pythona = 10b = 5print(a // b) "'
9. How do you delete data in SQL?
10. Which is the correct syntax for a while loop that increments x until it reaches 5?
11. Which of the following is used to create a tuple in Python?
12. What is the purpose of algorithms?
13. X = 50def func(x):print('x is', x)x = 2print('Changed local x to', x)func(x)print('x is now', x)
14. What happens if you leave out one of the double quotes in a string?
15. How do you create a negative of a picture in Python?
16. What is the output of print(type("5"))?
17. What does BIDMAS stand for?
18. Give an example of python output?
19. What will happen if you do not indent code properly in Python?
20. In a for loop using enumerate on a tuple, which unpacking is correct to access index and value?
21. A ..... is a single Python file which contains Python objects such as variables, functions and classes and may also contain executable code, not just definitions.
22. Which of the following is the correct format for a for-loop in Python?
23. What does 'int' mean in Python?
24. To display output on the screen python uses
25. What will be the output of the following code? print(5 == 5)