Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 38 (19 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. A while loop is used when
2. What is the output of the following list function?sampleList = [10, 20, 30, 40, 50]sampleList.append(60)print(sampleList)sampleList.append(60)print(sampleList)
3. Which of these definitions correctly describes a module?
4. Select the correct operator for Modulus:
5. Which two statements are used to implement iteration?
6. Which function allows us to add one element to a list at a desired location?
7. Which function can be used to convert list to a tuple
8. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']del mariana ..... islands[0]print(mariana ..... islands)
9. In which part of memory does the system store the parameter and local variables of a function call?
10. Look at the following code:name = "John"age = 23What type of data is stored in the variable name?
11. ..... statement are used to assign a value to a variable.
12. Name the keyword used to define a function.
13. In the following code, what type of variable is being created?foo = "3"
14. Which of these in not a core data type?
15. Which logical operator is used to combine two conditions and returns True if at least one condition is True?
16. A file or set of files with related variables, functions, and classes that can be reused in other programs defines
17. Look at the following code:name = input ("What is your name? ")name = input ("What is your age? ")If the user answered "John" to the first question and "23" to the second, what type of data is in name?
18. Mathematical operations can be performed on a string
19. In which year Python was developed