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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which control structure is used to repeat a block of code multiple times?
2. Which of the following will cause an error in Python?
3. What does Find() do in Beautifulsoup.
4. What is the output of print(3.14 * 2) in Python?
5. What do you use Python for?
6. Which of the following will print the string '"The weight is 25 kgs"' using the variable 'weight = 25'?
7. Which keyword is used to start an if statement?
8. What is a dictionary in Python?
9. What is the keyword used to define a function in Python?
10. How do you remove the value '3' from a list called 'numbers'?
11. How do you take user input and store it in a variable called 'name' in Python 3?
12. What is the output of print(3 * 'Hi')?
13. What is the output of the following code:print(f'7 x 3 = \{7 * 3\}')?
14. What is the purpose of lesson closure in teaching?
15. What does 'input()' function do in Python?
16. What is automation?
17. What is the programming word to rework something to vary the original?
18. How do you get the length of a string 'sentence'?
19. The "Zen of Python" states that readability counts. In Python, which character is used to denote the start of a single-line comment, which helps improve readability?
20. Which of these is a correct variable name in Python?
21. The output of the programx = 4x = "Sally"print(x)
22. Salah satu alasan Python populer untuk Data Science adalah karena .....
23. What is the correct function to take input from a user in Python?
24. Which of the following is a correct way to name a variable?
25. For the tuple t = (1, 5, 7, 10), which expression returns the largest value?