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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following would be an example of a string variable:
2. Look at the following code:age = input ("What is your age? ")age = int(age + 1)print (age)If the user inputs 23, what is the result of the code?
3. Which symbol should you use to assign a value to a variable?
4. What will the be the output of the following code?if (10<0) and (0 <-10):print( "A" )else:print( "B" )
5. Below are the valid data types in Python EXCEPT
6. A step-by-step process, or a defined list of steps required to accomplish a goal
7. How many keywords are there in python 3.7?
8. What 'object' do you control in Python turtle?
9. What would you put in an if statement to see if two values are equal?
10. Numbers = [5, 14, 9, 17]for number in numbers:if number % 3 == 0:print(number)The output will be?
11. A straight line passing from side to side through the center of a body or figure, especially a circle or sphere, defines
12. To fill a shape with the colour red, which command is correct?
13. Select the correct operator for multiplication:
14. Choose the correct data type:"initial of a first name"
15. List items are ordered, changeable, and allow duplicate values.
16. Which of the following is used in Python to give a value to a variable
17. Which of the following function is used to count the number of elements in a list?
18. In python, "Hello World" is the same as 'Hello World'
19. What is the result of the following code?print(bool(0))
20. . Which of the following definitions for the "haunted" function will correctly set the default value for the "surprise" parameter equal to the number 1?
21. Find the object in the following code:helper.build("upArrow")
22. A data type that can have one of two values:True or False
23. Computer programs can store information like the user's progress in a videogame with .....
24. A = Trueb = Falsec = Falseif a or b and c:print ("GEEKSFORGEEKS")else:print ("geeksforgeeks")What will be the output?
25. What data type represents only two possible outcomes?