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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Tuples are enclosed with in .....
2. What will be the output of the following code?for i in range(3):print("Hello")else:print("Done")
3. What are the two main types of errors in programming?
4. What is missing from this line of code?
5. Which of the following cannot be a variable?
6. Which of the following is the correct way to write a selection statement in Python?
7. Fungsi bawaan (built-in function) adalah fungsi yang .....
8. What is the purpose of the 'Disable path length limit' option in the Python setup?
9. Python language use
10. Consider fruits = ('apple', 'banana', 'cherry'). Which conditional correctly prints 'Not found' when an item is absent?
11. Which file extension should you use to save your code as a Python program file?
12. Python accepts single ('), double (") and triple (" ' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?
13. Which statement correctly describes all(tuple)?
14. What will be the data type of the following variable? A = '101'
15. What is the purpose of functions in Python?
16. What other name do Errors in Python have?
17. What does print("hello) display?
18. What is one of the key features of Python as a programming language?
19. What is the output of the following Python code? a = "7" b = int(a) print(b + 3)
20. In the expression (x + y) / 4, which symbols are the operators?
21. How do you count rows in SQL?
22. Which of the following environments can be used to write Python code?
23. For strings, the + operator represents
24. Which of the following is a primitive data type in Python?
25. Which of the following is a NOT a characteristic of a Lambda function?