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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which keyword is used to start an if statement in Python?
2. Which of the following applications is NOT commonly developed using Python?
3. What is the purpose of comments in Python code?
4. Square brackets in an assignment statement will create which type of data structure?( s=[] )
5. What will be the output of the following code? "'pythonfor i in range(3):print(i) "'
6. Which construct is used to handle exceptions in Python?
7. What is a correct syntax to return the first character in a string?
8. What is the primary feature of a Python set?
9. How do you update data in SQL?
10. Which of the following is a control structure in Python?
11. Which of the below is the code for creating a variable?
12. The result of this program:Friday = Falseif Friday:print("Jeans day!")else:print("Uniform day")
13. Why is indentation important in 'if' statements?
14. Which keyword is used to import specific functions from a module?
15. What is the next topic to be covered in the following class?
16. What type of data does the 'str' data type represent?
17. The default IDE that comes with Python is called:
18. What is the function of a variable in Python?
19. What is a loop used for?
20. Arrange this in order of Precedence.1. Exponentiation2. Parentheses3. Multiplication and Division4. Addition and Subtraction
21. Which of the following is not correct for naming an identifier in Python?
22. The course demonstrates the use of built-in functions to navigate the file system.
23. An exception is
24. Which method is used to find the memory location of a variable?
25. What is the answer to? print(10 % 4)