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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The command which helps us to reset the pen (turtle):
2. How do you start writing an if statement in Python?
3. Which of the following will delete key-value pair for key, "Name" from a dictionary stud?
4. What is the extension on a Python file name?
5. In python the Division sign is .....
6. You are asked to write a program where the user types in the amount of marks they got for a paper with 70 marks. The program then calculates and displays their score as a percentage. What is the process?
7. What is Algorithm?
8. True or False:5.0 is an example of the 'float' datatype.
9. What is the output for the provided code?print(type(15 == 14))
10. Python is a general purpose programming language created by
11. If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas?
12. User defined Exceptions are created from the ..... Parent Class
13. What will the following code do? name = "Bob"if name == "Bob":print ("Hello '' + name) else:print ("I dont know you")
14. Following set of commands are executed in shell, what will be the output? >>>str="hello">>>str[:2]
15. Which is the correct way to declare and initialize a variable in Python?
16. Which of the following functions build the abstract data type?
17. There are 40 students in a classroom. We would like to get all students whose name starts with "A" . Which looping is suitable?
18. How is a function declared in Python?*
19. Create a variable named bike and assign the value Kawasaki H2R to it
20. If you want to test more than one condition (chained condition), what do you use after if statement?
21. All lines in a while loop must be indented this number of spaces to be included in the loop
22. Python Moduleto be used while implementing DICE game.
23. Choose the correct data type:10500
24. What, if anything, is wrong with the following?input("Type your password: ")
25. Which of the following is a Python command word used to indicate we want to set up a fixed loop