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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code?for i in range(3):print(i)
2. Which data type stores True or False?
3. What is the output of the following code:print(type(5) is int)?
4. Read the Python program below:location = "Leeds" print("I live in", location)When this program is executed, what will be displayed on the screen?
5. Which of the following store data in pair?
6. Is "You were born in" a string?
7. What is the correct syntax to make Tracy move forward 100 pixels?
8. Which variable correctly stores a string value?
9. Which of the following is used to define a class in Python?
10. True is a boolean
11. How do you handle exceptions in Python?
12. Which statement is true regarding how computers communicate?
13. What is the minimum passing mark for the Semester End Exam (SEE) as a percentage of the maximum marks?
14. Used in python to make decisions
15. What will be the output of the following Python program? x = 5 x = x + 10 print(x)
16. What is the result of the expression 10 // 3?
17. Which of the following Python code snippets asks the user to enter their name and greets them?
18. Which of the following is an example of a famous application developed using Python?
19. A, b, c=10, 20, 30p, q, r=c-5, a+3, b-4print ('A, B, C:', a, b, c)print ('P, Q, R:', p, q, r)
20. Which of the following is the correct way to check if two variables, a and b, are both greater than 5?
21. Which of the following makes Python easy to learn?
22. Which of the following is not a mode of interacting with Python?
23. How do you print a variable 'x' in Python?
24. Which of the following is the correct way to display the word "Hello" on the screen in Python?
25. Which of the following is a valid way to create a list in Python?