Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 1 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is called when a function is defined inside a class?
2. Str="world of python programming"print(str.capitalize())
3. L ..... names=['Harsh', 'Amit', 'Sahil', 'Viresh']min(L ..... names)
4. A data type consisting of letters, numbers and symbols enclosed in quotation marks.
5. What does this symbol represent?>
6. Arithmetic OperatorsWhat is a %?
7. What is the result of following Program in python3a=10b=20c=a+bprint("Sum is"+c)
8. Look at the following code:name = "John"age = "23"What type of data is stored in the variable age?
9. Which of these will allow me to count from 0-20 in steps of 5?
10. Which of the following character is used to give single-line comments in Python?
11. If I declare a global variable, can I then use its value within the scope of a function?
12. Which of the following is a compound structure?
13. Index of a string begins with
14. Comparison Operators:Select the correct operator for not equal to
15. What character should be placed at the end of the function "def" line, after the parentheses?
16. Which of the following is an advantage of using local variables?
17. In a Python program, what would be the increment value for the looping variable in the FOR LOOP code?for x in range (25, 10, -5)
18. Inheritance can only be applied between one sub class and one super class.
19. What is the output of this expression, 3*1**3
20. A WHILE loop is .....
21. Consider this list, what will be the highest index the list can have:li=[1, 2, 3, 4, 5]
22. Items are accessed by their keys in a dictionary
23. Given a list with 3 items, what is the lowest and highest valid index number into that list?
24. Which of the following is not a valid string function?
25. Symbols used to store data; they represent a value that can change.