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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Operator "%" dalam Python digunakan untuk operasi .....
2. Which symbol is used to write a comment in Python?
3. Which of the following loop types is primarily used when the number of iterations is known beforehand?
4. What is computer programming?
5. Which operator performs floor division in Python?
6. What is a script library?
7. Password= input("Enter the password")What is the name of this variable?
8. Given the tuple nums = (4, 9, 2, 9), what does len(nums) return?
9. What is the purpose of variables in programming?
10. Contents from beautifulsoup are usually returned as
11. What will be the output of the following code? "'pythonprint(2 + 3 * 4) "'
12. How can you import a module in Python? Give an example.
13. What is the main advantage of using Python for beginners?
14. What is the correct command to install the "requests" library using pip in the terminal?
15. What is the purpose of the input command?
16. In which year was Python first released?
17. What is the return type of function id()?
18. What is the purpose of the Python Turtle module?
19. Choose the correct operators used in python:divide, multiply, add, subtract
20. When did its development begin?
21. Y = 4z = lambda x:x ** yprint z(3)
22. What does a function do?
23. What is the purpose of the 'def' keyword?
24. What will the following code output if the input is 13?lucky = 13print("Guess my number:")guess = int(input())if guess == lucky:print("Amazing, you guessed it")else:print("Sorry, it's not", guess)
25. Out of addition(+) and Subtraction (-) operator, which has more precedence?