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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How can you check if Python is installed on your system?
2. What is the output of the expression '3 * 2 ** 2' in Python?
3. Which of the following is correctly evaluated for this function?pow(x, y, z)
4. We can insert the new item into tuple
5. IN WHICH YEAR WAS THE PYTHON PROGRAMMING LANGUAGE DEVELOPED?
6. Which of the following is the correct way to declare a variable and assign an integer value in Python?
7. Identify the DDL commands
8. What is the correct syntax for defining a class named 'Vehicle'?
9. Which symbol is used to create a single line comment in Python?
10. What is the use of the 'import' statement?
11. What are the different types of conditional statements in Python?
12. What is the outupt of the following code:m=[23, 11, 6, 7, 8, 9, 21]print(m[2:20:2])
13. What does the command '"hello" + "world"' do?
14. The purpose of bg in Tkinter widget is to .....
15. What will be the output of above Python code?str1="6/4"print("str1")
16. It is possible to draw a circle directly in Tkinter canvas?
17. What is the purpose of a function in Python?
18. Which library is used to connect python with MySQL? Write an import statement
19. Which of the following is the output of the below Python code?[Note:Python 2.7.5 and above]mylist=['a', 'aa', 'aaa', 'b', 'bb', 'bbb']print(mylist[int(-1/2)])
20. Which of the following is a benefit of Python's broad standard library?
21. Data Frames is
22. What is the output of the following program?L1 = [1, 2, 3, 4]L2 = L1L3 = L1.copy()L4 = L3L1[0] = [5]print(L1, L2, L3, L4)
23. Screen inside another screen is possible by creating .....
24. ..... method is used to draw a line in canvas tkinter
25. Which method of cursor class is used to fetch records from the table