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

Quiz Instructions

Select an option to see the correct answer instantly.

1. A, b=0, 30a=30/(2*b)print(a)
2. What is ASCII?
3. What will be the output of the following code?x = 10y = 4print (x // y)
4. What is the first program going to draw?
5. What is the output for the following:def func (a, b = 8, c = 10):return a + b + cprint (func (4, c = 13) )
6. What will be the output of the following code? "'pythonif 10 > 5:print("Ten is greater than five") "'
7. Which of the following is a method in Python?
8. What will be the output of the following code? print(5 // 2)
9. What is the purpose of the print() function in Python?
10. Which of these is a floating point?
11. Is Python case sensitive when dealing with identifiers?
12. Consider t = (3, 5, 7). Which unpacking is valid?
13. How can you print the string 'Hello! "Python" is fun.' with the quotes around Python?
14. According to BEDMAS/PEMDAS, what is the correct order of operations?
15. Conditional statement adalah pernyataan yang digunakan untuk .....
16. What is the function of a programming language?
17. How do you access the first character of a string in Python?
18. In computers science, variables:
19. Colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]Choose the answer that will output False.
20. How do you declare a comment in Python?
21. Which of the following is NOT a feature of Python?
22. Which of the following is invalid identifier?
23. What will print(type(name)) return if name = 'Abhishek'?
24. Which of these tools could a Python programmer build?
25. What is the output of the following code?x = int("10")y = float(x)print(y)