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

Quiz Instructions

Select an option to see the correct answer instantly.

1. A string is immutable in Python?Every time when we modify the string, Python Always creates a new String and assigns a new string to that variable.
2. Loop that runs till the condition is true
3. S="welcome"print( s. center (15, '*'))
4. How do you identify the statements that belong to the body of a function?
5. What will be printed for the value 8 for num# program to check even or oddnum = (int)(input("enter any number"))if num%2 == 0:print("the number is even")else:print("the number is odd")
6. When using a command to move the turtle to a specific position on the drawing canvas, the middle of the canvas is represented by which coordinates?
7. In python, comment lines start with this symbol
8. If you wanted Tracy to complete her command immediately, which speed value would you use?
9. What is the Python built-in function to converts a number to a string?
10. Choose the correct data type:The surname of a userExample:Chapman
11. How do you access the last element of a list in Python?
12. Python is a ..... side programming language.
13. Choose the correct data type:Age (in whole years)Example:17
14. What data type would store the value:6.4?
15. If you want to create an empty list called colours, which of the following pieces of code is correct?
16. Choose the correct data type:"K"
17. Drink ..... choices = ["coffee", "tea", "water", "juice", "soda"]for drink in drink ..... choices:print(drink)
18. What are Strings?
19. What will be the output of the following Python expression? round(4.5676, 2)?
20. ..... data type contain integer values with no decimal such as 1, 200, 999 etc.
21. What is the condition in this code?if name == "Catherine":print("Hello, '' + name)
22. What type of programming language is Python?
23. Numbers = [1, 2, 3, 4, 5]print ( numbers.pop() )The program above prints
24. What is printed?cheer = "Go Eagles!"print cheer[0:1]
25. L=[2, 4, 8, 16, 32, 64] what is L[:2]