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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which keyword is used to define a function in Python?
2. Which data type is used to store:100
3. How do you start a comment in Python?
4. What is the code for a STRING in python?
5. Which of the following is used to check multiple conditions in Python?
6. What symbol is used in python to assign values to a variable?
7. What will the following code output:for i in range(3):print(i)?
8. Is the input command predefined in Python?
9. Which loop repeats a block of code while a condition is true?
10. What will the following code output? print(5 == 5)
11. Which Python command is used to output information to the screen?
12. What is the default path where Python looks for modules?
13. Which of the following statements is true about local and global variables in Python functions?
14. What types of data does Python support?
15. Which algorithm would be the most efficient algorithm for finding a name in a phone book?
16. Why did Python's creator name the language after Monty Python's Flying Circus?
17. What does the subprogram 'chr' do in PLS?
18. What is the main characteristic of PyPy?
19. Write the output of the following code:x = 4-7j; print(x.imag, x.real)
20. What will this display?age = 10print(age + 5)
21. What is the primary purpose of a programming language?
22. How do you insert COMMENTS in Python code?
23. What Python command lets the user enter an answer to a question?
24. Python is an example of:
25. What are the three important data structures in Pandas?