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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is a correct while loop in Python?
2. Web scraping is used in Data analytics.
3. What is the output of the expression '5' * 2?
4. ..... function is an anonymous function in python.
5. Which of the following is NOT a data type in Python?
6. What is one feature that makes Python suitable for AI?
7. Which statement will display square of number (n)?
8. In the line of code below, what does input() do?firstname = input( "What is your name?" )
9. In Python list indexes start at which number?
10. Which of the following is a reserved word in Python?
11. True or False:Indentation in Python is for readability only.
12. What symbol do we use when we want to add comments to a python program?
13. For nums = (4, 7, 4, 9, 4). Which expression gives the position of the first 4?
14. What keeps a record of every version of a file that has been saved to your Google Docs cloud account?
15. What is the output of the below code snippet?num1=10num2=7//2num2*=num1print(num2)
16. What happens when 'time.sleep()' is executed in a program?
17. Name numeric data types in Python?
18. X, y=5, 6print(x==5 and y==6)
19. They expect to see 10, but they see the word score instead. Why?
20. What is the output of the following code?print("The answer is", 3 + 2)
21. Statement below 'function definition' begin with spaces called .....
22. Which statement is used to stop a loop in Python?
23. Is a comment ignored or followed by a program?
24. What is pseudocode?
25. What will print('school'[0]) output?