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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which print statement correctly prints a variable called place ..... of ..... birth?
2. Used to structure code in Python
3. Who developed the Python Programming language?
4. The ..... operator checks whether a given value lies within a given set of values
5. To get the last element from a list in Python we can use which index?
6. A data type consisting of numbers letters and symbols:
7. Which of the following is a key feature of Python?
8. What statement can we use to check more conditions in an if ..... else statement?
9. Which of these is used to group code together in Python?
10. You need an ordered container for values that must not change after creation. Which Python data type best fits this need?
11. ..... is a set of valid characters that a language can recognize.
12. Debugging is
13. What is the output of the following code?def my ..... func ( ):return 5return 10print (my ..... func ( ) )
14. True or False:The output of the following code will always be the same.from random import randintdiceroll = randint(1, 6)print("You rolled a", diceroll)
15. What is the result of the following code? "'pythonnumbers = [7, 8, 9]print(len(numbers)) "'
16. What will be the output after the following statements?x = 6 y = 3 print(x / y)
17. What does the split() function do in Python?
18. What will be the output of the following code:print('Hello' + ' World')?
19. Which function is used to convert a number to a string?
20. What operator would I need to times 5 by 10?
21. What is the output of the following code? "'pythonprint("Great Britain" .replace("Great", "United")) "'
22. What is the data type of the value '"42"' in Python?
23. Used to make comments in a line of python code?
24. To insert an the string "strawberries" in the first position of a list we use
25. Module-1:Which of the following is NOT mentioned as a function topic in Module-1?