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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of the "import requests" statement in a Python file?
2. Which of the following is a valid way to assign the value 25 to a variable named 'age' in Python?
3. What operator would I need to take 5 from 10?
4. What is an interpreted language?
5. What does the 'sequence' in programming constructs refer to?
6. Keyword mana yang digunakan untuk mendefinisikan fungsi di Python?
7. What is the output of the following code?x = 10; print(x + 5)
8. What does the string subprogram .find() return if the is not found in?
9. How do you define a function in Python?
10. Who created Python?
11. What does the turtle library subprogram 'penup()' do?
12. A syntax error means your code has a 'grammar' mistake or you used symbols/operationsincorrectly
13. Which data structure stores elements as key-value pairs?
14. What is the output of the following code snippet?my ..... list = [1, 2, 3, 4, 5] print(len(my ..... list))
15. Which function is used to get user input?
16. In which year was Python created?
17. List are the simple definition of Python Programming, EXCEPT .....
18. Which of the following is the correct way to assign the value 25 to a variable called 'distance'?
19. Read the Python program below:b = 42 a = 13print(a, b)When this program is executed, what will be displayed on the screen?
20. What will print(type(5)) output?
21. What is the purpose of the 'pass' keyword in exception handling?
22. What is a variable in Python?
23. Which of the following is valid operator?
24. Which extension is used for Python files?
25. Which command allows the user to type answers?