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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is string?
2. Which command is used to read every line from a file one at a time in Python?
3. Which of the following is a string data type in Python?
4. If first ..... name = "Kevin" and last ..... name = "Drumm", which line joins them with a space?
5. What is the output of the following code?print("The temperature is", 25, "degrees Celsius.")
6. Matplotlib digunakan untuk .....
7. Escape sequence is represented by a ..... followed by one or more characters
8. Python is ..... level programming language and is .....
9. What is the correct syntax to define a multi-line string in Python?
10. What does IDE stand for?
11. Which of these is a correct variable name?
12. If you want to store the value 3.14 in a variable called 'pi', which data type will Python use?
13. Print("Enter a number")number = int(input())if number = 0:print(number, "is zero")else:print(number, "is non-zero")When this program is executed, what will be displayed on the screen, if the user enters 0 at the prompt?
14. Id() function is used to get
15. Which statement is TRUE about variables?
16. Let a = ("apple", "banana") and b = ("cherry", ). Which result comes from a + b?
17. What does the print() function do in Python?
18. Which library must be imported to use the sqrt() function?
19. What is the output of the expression 8 // 3?
20. How do you convert a string to an integer in Python?
21. What will be the output of the following code?if 5 > 3:print("Yes")
22. What command is used to print text to the screen?
23. What is the output of the expression 10 / 2?
24. How is a block of code defined in Python?
25. What is the index of the first element in a Python list?