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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What function is used to display output in Python?
2. What is the main advantage of using Python over Java?
3. How to create a numeric variable age with a value of 10
4. What is the output of the following code?x = 5 if x > 2:print("Greater")else:print("Smaller")
5. What is the purpose of the input() function?
6. Why are tuples considered immutable?
7. Input("Enter the password")Inside the bracket is known as a .....
8. What is the output of the below code snippet?tup1=([3, 6], [2, 1])list1=[(8, 9), (7, 0)]list2=tup1[0]list2[1]=5list1[1]=(5, 2)print(tup1, list1)
9. How are letters represented in binary?
10. Which of the following is a valid way to append an element to a list in Python?
11. What will be printed after running this FOR loop:for number in range(6):print(number)
12. Which of the following is an application of Python?
13. How to check the datatype?
14. What can you do with Python?
15. Which symbol is used to separate string and integer data?
16. Which subprogram in PLS is used to return the length of an object?
17. What is the purpose of identifiers in Python?
18. For tuple t = (0, False, 3), what is the step at which any(t) returns True?
19. # in Python programming refers to
20. What is a multi-line statement in Python?
21. What is the purpose of the tab key in Python programming?
22. A variable may be assigned a value of one type, and then later assigned a value of a different type:
23. Which of the following is the first step in setting up Python?
24. Which data structure does NOT allow duplicate values?
25. What is the correct way to declare a constant in Python?