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

Quiz Instructions

Select an option to see the correct answer instantly.

1. This particular data type has 2 potential values (typically True or False)
2. What will following Python code return?str1="Stack of books" print(len(str1))
3. Given numbers = (1, 2, 3, 4); y = (5); numbers += y; What is the correct way to concatenate so print(numbers) shows (1, 2, 3, 4, 5)?
4. What will be the output of the following code? print('Python' * 2)
5. Find The Output.L = [5, 2, 2, 7, 5, 4, 7]print(set(L))
6. What is a Float?
7. Find the outputprint(5**2)
8. Which of these is NOT a Python keyword?
9. Which of the following is a correct way to create a list in Python?
10. Which of the following is the correct way to start a multi-line comment in Python?
11. What is the correct way to assign the value 10 to a variable named 'x' in Python?
12. What does IDLE stand for in Python?
13. What is the output of print('Hello', name, ', how are you today?')-Where name="Monty"
14. How do you create a user-defined function with default parameters?
15. The character that must be at the end of the line for if, while, for etc.
16. Which type of memory is volatile and loses its data when the power is turned off?
17. What is a DataFrame in Pandas?
18. To change a variable in the global scope from within a function we use which keyword?
19. Which of the following is the correct syntax to create a NumPy array?
20. Which data type represnts a whole number?
21. Which of the following is not the feature of Python language?
22. Identify the term that describes the creation of a new object.
23. A developer creates t = (3, 4, 5) and wants to replace 4 with 7. What is the appropriate approach?
24. Which are the advantages of functions in python?
25. What type of data is stored in the variable below?x = "Hello, World!"