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

Quiz Instructions

Select an option to see the correct answer instantly.

1. A set of precise instructions that is meant to solve a problem is .....
2. What is the correct way to write a comment in Python?
3. What is the purpose of adding Python to PATH?
4. What data type is used to represent whole numbers(eg . 11, 213, ) in Python?
5. What will the following code print? "'pythonx = 7if x > 5:if x < 10:print("A") else:print("B")else:print("C") "'
6. Output of print(7 % 21) is .....
7. What is the command to verify if Python is installed successfully on your system?
8. ..... keyword is used for creating a function in Python.
9. Which step comes first in the Data Science process?
10. Which command is used to install Jupyter Notebook using pip?
11. What is the result of the following operation in Python? print(15 // 4)
12. What is the significance of indentation in Python programming?
13. What is the output of this code?def multiply (a, b = 2):return a * bprint (multiply (3, 4) )
14. What group of blocks controls movement of the Sprite?
15. What is the purpose of the Python interpreter?
16. Returning a range of characters (part of a string) is done using which syntax?
17. What does the 'sorted()' function do in Python?
18. What will the following code return? a='Hello World'print(a[0:8])
19. Which operator is used for floor division in Python?
20. Koje su glavne vrste podataka u Pythonu?
21. What language does Tracy the turtle understand?
22. X, y=20, 60y, x, y=x, y-10, x+10print (x, y)
23. What is the extension of a Python file?
24. What is the correct way to write an if-else statement in one line?
25. Convert the decimal number (345)10 to Octal: