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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following keywords is used to create a loop in Python?
2. What is a loop in Python?
3. A CONDITION in Python always evaluates to
4. None in Python has which data type?
5. Which of the following is NOT a numeric type in Python?
6. Why must programs written in high-level programming languages be converted to machine code?
7. Which keyword starts a conditional in Python?
8. What is the result of the following code? "'pythonweight = 12print(weight, "kg") "'
9. In Python, a variable must be declared before it is assigned a value:
10. How do you add data in SQL?
11. How do you access a specific cell in a DataFrame?
12. Pernyataan if digunakan untuk .....
13. What does the string subprogram .isalpha() return?
14. Which collection will any() consider truthy?
15. What is selection?
16. Which of the following is a correct way to declare a variable in Python?
17. Is the comparison operator in python
18. What command is used in python to display output?
19. Write the output of the following code:7+2//1**2 > 5+2**2//3
20. Which of the following are valid identifiers?
21. What language do we use?
22. What is the purpose of the 'def ():' syntax in Python?
23. What will be the output of the following Python code?d = \{"john":40, "peter":45\}d["john"]
24. What is the purpose of the 'type' function in Python?
25. What command do we use to tell Python to accept an input?