Class 12 Computer Science Chapter 2 Advanced Python Programming Quiz 7 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does encapsulation help with in Object-Oriented Programming?
2. Given a Pandas series called Marks, the command which will display the first 3 rows is .
3. What is the file extension for Python scripts?
4. Predict the outpout z=[1, 2, 3, 4, 5]print(2*z)
5. Which of the following is the correct statement?z = \{"x":0, "y":1\}
6. What is the correct syntax to return the fourth element in a list named 'fruits'?
7. Which of the following is an example of string slicing in Python?
8. The method(s) to import a tkinter in python program is/are .....
9. GUI stand for .....
10. What is the role of an interpreter in Python?
11. Predict the output:s="SRGEC"v=" for i in s:v=v+iprint(v)
12. Which of the following is NOT a programming language mentioned?
13. What is the main purpose of Python?
14. (a) is an example of using the print function in Python.
15. Which decision statement will be triggered if the variable x is less than 20?
16. Find the output of the following program segments:for i in range(20, 30, 2):print(i)
17. What is the full form of SQL
18. Explain the concept of a dictionary in Python.
19. What does indentation in Python indicate?
20. Operators with the same precedence are evaluated in which manner?
21. What is the data type of print(type(10))
22. What is the scope of a variable in Python?
23. WHICH ONE OF THE FOLLOWING IS NOT SHOWN IN THE SYNTAX ERROR?
24. What is the output of the given below program?print("Know Program" .split())
25. . In a type of computer network, what does MAN stands for?