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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of these codes is correct for creating a list of numbers?
2. Which of the following statements correctly defines a function named "haunted" that takes a parameter named "apple" ?
3. Str="world of python programming"len(str)
4. What can be used to store information and values so that it can be used later?
5. Which of the following is not a keyword?
6. What is missing in the square braces?cheer = "Go Eagles!"print cheer[ ]If the output is Eagle
7. Output of the following question is:#program for text addition# input() methodf ..... name= "hello"l ..... name ="world"print( f ..... name + l ..... name)
8. Numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]Which of the following code gives the following list as the output[4, 5, 6]
9. Concatenation is a ..... operator.
10. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands[0] = 'Guam'print(mariana ..... islands)
11. A dictionary is an example of a sequence .....
12. Booleans represent one of two values:True or False.
13. Inside a function with two parameters, print the first parameter. def my ..... function(fname, lname):print( ..... )
14. What do we use at the start of a comment line?
15. In which language is Python written?English
16. When you read code carefully to look for errors and fix them
17. A count controlled loop will .....
18. What is the order of precedence in Python?i. Parenthesisii. Exponentialiii. Multiplicationiv. Divisionv. Additionvi. Subtraction
19. Choose the correct data type:240.00
20. Which data type is used to store decimal numbers in Python?
21. What will the output be from the following code?print("Hello" + str(2) + "world!")
22. A condition controlled loop is .....
23. What is the index number for 'Spain'?['England', 'Brazil', 'Spain', 'France']
24. Choose the correct alternative out of the following
25. This is a catch-all for every other situation besides the one where the condition is true.