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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is a keyword?
2. The method to install tkinter in system is .....
3. Explain the concept of 'nested loops' in Python.
4. What is the difference between a while loop and a for loop in Python?
5. Which of the following declarations is incorrect?
6. WHO DEVELOPED PYTHON LANGUAGE?
7. Mandatory arguments required to connect any database from pyton
8. It is the process of joining two or more strings.
9. Which command will display the text 'Hello world!' on the screen?
10. What will be the output of the following Python code?a=\{1:"A", 2:"B", 3:"C"\}a.items()
11. What is the output of print(type("Hello")) in Python?
12. What symbol is used to denote "not equal" ?
13. What is the output of the following codex = 6 y = 2print(x ** y) print(x // y)
14. Determine the output of the below Python code fragment?var1 = Truevar2 = Falsevar3 = Falseif var1 or var2 and var3:print("True")else:print("False")
15. Select the correct statement in python to check SQL connectivity status.
16. Explain the concept of functions in Python.
17. Which data type is the best to store possible outcome of tossing a dice?
18. How do you start writing a for loop in Python?
19. Which built-in function returns the absolute value?
20. Which of the following is not used as loop in Python?
21. What is the purpose of the interactive mode in Python?
22. The acronym csv is short for
23. Which keyword is used to create an alias while importing a module in Python?
24. In Python3, which functions are used to accept input from the user
25. The ..... provides pictorial representation of given problem.