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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code:num = (11, 12, 13, 14)num[-4:-3]
2. If a function contains more than one argument, how are the arguments separated?
3. What is the purpose of an assignment in programming constructs?
4. What is the output of print(type(3.14))?
5. How do you print the string 'Welcome to Python!' using double quotes?
6. The only language a computer and other electronic devices understand is:
7. What is the correct way to take user input in Python?
8. Sunday = Sunday
9. Python adalah bahasa pemrograman yang .....
10. The default return value of any function in Python is .....
11. Which of the following statements will not work properly within a while loop?
12. What is Python named after, and who created it?
13. Which of the following is a valid way to define a variable in Python?
14. Which mode of using the Python interpreter allows for immediate code execution?
15. What command do you use to display text in Python?
16. What is the output of the following code?print(type(10.5))
17. Use ..... to assign a value to a variable.
18. What will be the result of the following code?def add ..... numbers (a, b):return a + bprint(add ..... numbers (5) )
19. What is the output of the following code? print(10 / 2)
20. Connecting 2 strings in Python with the + Operator is called
21. What does SQL stand for?
22. What is a integer?
23. Which code snippet correctly creates a tuple containing three integers?
24. Which symbol is used to comment in Python?
25. What is the purpose of the 'else' clause in a try-except block?