Class 11 Computer Science Chapter 2 Introduction To Python Quiz 81 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Read the Python program below:number = 13if number == 0:print("zero")number = 0When this program is executed, what will be displayed on the screen?
2. Which data structure allows duplicate elements?
3. What is the output of print(len('Hello'))?
4. What will be the output of the following code? "'pythonprint("Python" .lower()) "'
5. Which operator is used for logical operations in Python?
6. What does the else statement do?
7. Which operator is used for subtraction?
8. What will be the output of the following code?print("Welcome to", "Python", "Programming!")
9. Which of the following is the correct way to output the value of a variable called 'height' in Python?
10. What is the name of the data type of True?
11. Which statement prints I am 10 years old?
12. How does high-level get translated into low-level?
13. Name=input("What is your name? ")print("Your name is '' + name)What will be displayed if the user types in "Bob" ?
14. The ..... loop is used when you are sure about how many times a loop body is executed.
15. Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
16. How do you create an empty list in Python?
17. What is the correct syntax to take user input?
18. Tipe data list pada Python ditandai dengan tanda .....
19. How do you make the turtle invisible on the screen?
20. What is the purpose of the 'continue' statement in a loop?
21. What type of loop is 'for'?
22. What data type will the variable 'weight' have after this code runs? "'pythonweight = input("Enter your weight in pounds: ") "'
23. True and False are sample of ..... ?
24. Colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]Choose the answer that will output True.
25. Print (Today is Monday !) will display