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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is a feature of Python's cross-platform compatibility?
2. KEYWORDS ARE ALSO CALLED .....
3. What does term 'debug' mean:
4. An escape sequence is represented by ..... slash followed by one or two characters.
5. Which line is correct?
6. How do you write a single-line comment in Python?
7. Which of the following combinations accurately matches mathematicalsymbols with their respective operations?
8. Which of the following is a valid way to assign the value 5 to a variable named 'length' in Python?
9. What can you create using Python?
10. How do you create a variable with the numeric value 5?
11. Python is an interpreted language.When the code is run. What happens?
12. Which of the following is a valid variable name in Python?
13. What is the purpose of using 'try' and 'except' in Python?
14. Def maximum(x, y):if x > y:return xelif x == y:return 'The numbers are equal'else:return y print(maximum(2, 3))
15. How do you check if a number is greater than 10 in Python?
16. Which of the following data structures in Python are mutable (can be modified later after being created)?List, Dictionary, Tuple
17. Insert the missing part of the code below to output ..... "My name is ".
18. How do you check if a DataFrame contains any missing values?
19. What is the purpose of a function in programming?
20. What is the purpose of the 'print' command in Python?
21. What is the purpose of creating a folder to save files in Python?
22. Which Python statement can be used to catch an Error?
23. Python is case sensitive (T/F)
24. Which character is used in Python to make a single line comment?
25. What does the following Python code do?if user == "Elizabeth":print("Good morning Your Majesty")else:print("Hello", user)