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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The ..... symbol is used at the beginning of a flow chart.
2. Which method would you use to add an item to the end of a list named 'items'?
3. Config() in Python Tkinter are used to .....
4. Which of the following is a valid way to create a comment in Python?
5. Why do we use variables in programming?
6. Colors = ("red", "green", "burnt sienna", "blue")print("yellow" in colors)What is the result of the yellow in colors expression?
7. How can you access elements in a list in Python?
8. What is the purpose of using 'break' in a loop in Python?
9. How do you read a file in Python?
10. What is the purpose of using 'elif' in Python?
11. Which of the following is the correct output of the call to below line of code?print(list("hello"))
12. What is the correct way to create a function in Python?
13. Select the correct statement to install sql connector library
14. What are the advantages of python?
15. Colors = ["red", "green", "burnt sienna", "blue"]print(colors[2])What is the output of the above python code?
16. How many times will a 'for' loop iterate if the range is specified as range(5)?
17. List, tuple, and range are the ..... of Data Types.
18. Which symbol is used for single-line comments in Python?
19. What is the output of the following code:t=("CSE", "GEC", 34, 55.5)t[3]=123print(t)
20. Which of the following is a correct way to call a function named 'my ..... function'?
21. Pandas is a:
22. What is the meaning of the following comparison operator?a >= b
23. The elements of a tuple are enclosed by .....
24. Who began working on Python in the late 1980s?
25. Which of these is not a core data type?