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

Quiz Instructions

Select an option to see the correct answer instantly.

1. My ..... name = "Awesome"My ..... name in this string is .....
2. How do i remove something from a list?
3. People = ["John", "Rob", "Bob"]print (people[4]) what would this result be?
4. Python is the fastest growing programming language:
5. Choose the correct data type:"£"
6. What is the name of the built-in command in python to output data?
7. Is python an interpreter or compiler programming language?
8. Which of the following best describes where you should define your function in your code?
9. Please select all correct way delete the following dictionarystudent = \{ "name": "Emma", "class":9, "marks":75 \}
10. Which of the following sequences would be generated by the given line of code?range (10, 0, -5)
11. Extension of Python
12. You have the following dictionary definition:d = \{'foo':100, 'bar':200, 'baz':300\}What method call will delete the entry whose value is 200?
13. What does the following code do? myAge = int(myAge)
14. Which function truncates the fractional part of given number and returns only the integer or whole part.
15. What is the correct definition for 'pseudo code?'
16. Grades = [2.0, 3.0, 4.0]How do you get the length of the list above
17. A = ['foo', 'bar', 'baz', 'qux', 'quux', 'corge']Which display correct output from below?
18. Mr. Whiting is 45 years old. This is an example of:
19. Which two statements are used to implement iteration/Repetition)?
20. How do you access the first element of a list in Python?
21. How will the following code look on the screen?print ("I love programming.") print ("I love programming.")
22. Str1='101'x=int(str1)z=x+400print(z)
23. In the following code, what value will be assigned to the variable "cat" ?mouse + cat + dog = "small" + "medium" + "large"
24. WHILE loops are
25. In Python the subtraction sign is .....