Class 11 Computer Science Chapter 2 Introduction To Python Quiz 21 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. In Python single line comment starts with .....
2. What happens if you try to add a row with a duplicate index in a DataFrame?
3. Which of the following is an interpreted language?
4. What is the purpose of Jython in integrating with Java?
5. Which of the following is a valid way to import a module in Python?
6. Age = '5'In the code above, age is a
7. X, y=5, 6print(x==5)
8. What will print('Hello') show on the screen?
9. What is the result of the 'not' operator in programming?
10. In python do you have to declare the variable first?
11. Output of print(2 * 3 ** 2) is
12. Which of the following is a sequence data type?
13. Which data type is used to store:"D"
14. What are binary digits called?
15. What is the significance of the 'index' parameter in the read ..... csv() function?
16. Output is
17. What is the result of the following code? "'pythoncount = 0while count < 3:print(count) count += 1 "'
18. How are elements accessed in a list?
19. What will be the output of the following code:print(10 > 5 and 5 < 3)?
20. Given the code score = 7 and print("Your score is '' + score), which option fixes the code without using concatenation, but still prints neatly?
21. What does a variable do?
22. Sophia is learning Python and wants to know which of the following is a loop structure in Python?
23. A ..... is a collection of Python modules.
24. Which of the following is used to get input from the user in Python?
25. What is the data type of the value 'True' in Python?