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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Variabel dalam Python digunakan untuk .....
2. What is the main purpose of comments in Python?
3. The suitable data type to store the value 9.76
4. What is the output of the following code?food = "burgers"number = 6print(number + food)
5. Which of the following is a correct Python command to print 'hello world'?
6. Given t = (4, 1, 3, 2), which statement creates a list sorted ascending without changing t?
7. The value that represents the absence of any value in Python is:
8. Which of the following is a binary number?
9. How do you write a comment in Python so that the text is ignored by the computer?
10. What is one way Python is used in video games?
11. This data type is used to store a mixture of letters and numbers and symbols.
12. What is the answer to print (12/6)?
13. Which of the following statements will cause a syntax error in Python?
14. Which brackets are used to define a list in Python?
15. Tipe data apa yang digunakan untuk menyimpan teks dalam Python?
16. In which year was the Python language developed?
17. What will the following code output? "'pythonprint("The temperature is", 18, "degrees Celsius") "'
18. Which of the following is used to create a dictionary in Python?
19. Which comparison operator checks if 2 values are "less or equal" than another value?
20. Which of the following is not a valid data type in Python? a) Integer b) Float c) String d) Character
21. You need to modify the example program so it reports whether the first number is greater than or equal to the second number. Which operator should replace the current greater-than operator (>) in the print statement to achieve this?
22. COMMENTS BEGIN WITH ..... SYMBOL .
23. Which one is a Python data type?
24. What is the main purpose of the Tkinter library in Python?
25. What does int() represent?