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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does it mean for Python to be dynamically typed?
2. What type of error is demonstrated by the following code? x = "ABC" + 2
3. Which is the best type of loop to write a file in?
4. What will happen if indentation is incorrect?
5. What operator would I need to divide 5 by 10?
6. What command would you use to move the turtle forward by 100 units?
7. What does the input() function return in Python?
8. What does the 'if' statement do in Python?
9. What is the value of $2 + 3$
10. What are the applications of Python?
11. What is the purpose of the 'import ' statement in a program?
12. How can you take user input in Python?
13. How do you access the first element of a list named 'fruits'?
14. Which data type below is an int?
15. Before you can use a powerful external module, such as the math library or a custom module, what must you do first in your Python script?
16. What is the comparison operator for 'equal to' in Python?
17. What is the output of the following Python code? x = 10x = x + 1print(x)
18. Is an example of what data type?
19. Which generation of computers used Transistor based hardware?
20. What is the correct syntax for an if statement?
21. In Python a list slice from start to end can be used to
22. Perbedaan utama tuple dan list adalah .....
23. Data = "No Way!" The expression len(data) evaluates to:
24. How do you check the number of rows in a DataFrame?
25. Find the outputa = "5"print(type(a))