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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output of the following code?print("Hello", "World", sep="-")
2. A = 10b=5b=a+5print(b)What would be printed to the screen in this example?
3. Which of the following is an example of Python's uses and application?
4. How do you concatenate two strings in Python?
5. What is NumPy used for?
6. How do you take user input in Python?
7. What are the two types of IDLE mode in Python?
8. The instructions in an algorithm .....
9. What is Flask used for?
10. Which approach best handles sorting when duplicates exist in a tuple?
11. What is the word (command) used to display numbers and text on the screen?
12. What is the purpose of the 'len()' function?
13. Which of the following is NOT a way to do math in Python?
14. What is a lambda function?
15. Which of the following is necessary before writing a Python program?
16. Print(a, b)b = 64a = 6When this program is executed, what will be displayed on the screen?
17. Which of the following is NOT an application of Python?
18. Which function is used to take user input in Python?
19. Which of the following is a correct way to assign a value to a variable in Python?
20. Which of the following is a valid way to declare a variable in Python?
21. What is the name of the environment in Python that write you programs and then test them out?
22. Which of the following statement will return error when x = 7?
23. What is the primary purpose of Python in real-world applications?
24. What does an 'if' statement do in Python?
25. Which of the following best describes Python's syntax?