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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is a output?
2. Which of the following is the output of the Python code fragment given below?var1 = 4.5var2 = 2print(var1//var2)
3. Which of the following statements create a dictionary?
4. The keyword used to import the Tkinter in program is .....
5. What will be the output?d = 10 < 11print (d)
6. In Python, what happens if you don't commit changes after executing SQL queries?
7. IN WHICH YEAR WAS THE PYTHON 3.0 VERSION DEVELOPED?
8. How do you write a for loop in Python?
9. Which has integer data type?
10. Essential thing to create a window screen using tkinter python is .....
11. Which method can be used to return a string in upper case letters?
12. What will following Python code return?str1="Stack of books"print(len(str1))
13. What is NIC used for?
14. What data type is the object below? D = [1, 23, 'hello', 1]
15. The use of the mainloop() in Python Tkinter is .....
16. Which of the following is not an IDE for Python?
17. Name some common data types in Python.
18. What will be the output of the following code? my ..... string = "Python"print(my ..... string[0])
19. Given a statement "All swan are white" . To falsify this statement, you need to travel around the world and find at least one non-white swan. Which one is a indispensable command in your coding?
20. What is the output of the following code:print 9//2
21. The correct way to use the config() function in tkinter is .....
22. What is the output:for i in range(2, , 2):print(i)
23. What is Python really?
24. Guess the Outputs=\{1, 2, 3, 5, 6, 7, 87, 8, 8\}print(s[2:7])
25. Which of these collections defines a LIST?