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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output of this code?for i in range(5):if i == 3:breakprint(i)
2. What is the first step in the Green Screen effect?
3. Which of the following is the final step in program development?
4. Fungsi lambda pada Python disebut juga .....
5. How to find the length of a list in python?
6. Consider nums = (5, 3, 5). After calling sorted(nums), which statement about the result is correct?
7. What is the primary purpose of an Integrated Development Environment (IDE)?
8. To print a list called fruitList we use
9. Fungsi apa yang digunakan untuk menampilkan output ke layar dalam Python?
10. What type of data does input() return?
11. Which of the following is NOT a valid way to assign a value to a variable in Python?
12. How do you make a comment in Python?
13. What will be the output of the following code? x = "10" y = 5 print(x + str(y))
14. You have place ..... of ..... birth = "Middlesbrough" . Which line will produce a neat sentence?
15. How to manipulate tuples?
16. A collection of stored Python functions is called a-
17. What is the extension for a Python file?
18. Which of the following lines of code will correctly store the number 25 as an integer in a variable called 'age'?
19. What will be the data type of the variable age after executing the following code?age = input("Enter your age: ")
20. How could we represent/describe the process of a computer making a decision in a program?
21. What is a for loop?
22. The datatype of a variable can be found by using the following function:
23. Which is used to end an if statement block?
24. Explain what a function is in Python.
25. Which function is used to take input from a user?