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

Quiz Instructions

Select an option to see the correct answer instantly.

1. To make the turtle move forward, which command is used?
2. What is the function of the code:amount = int(input("Enter a conversion into pounds:))currency = input ("press 1 for indian rupees, 2 for Chinese yuan or 0 to exit:")
3. What controls a variable's scope?
4. Can we use the "else" clause for loops?for example:for i in range(1, 5):print(i)else:print("this is else block statement" )
5. If the coding steps are in the incorrect order, the computer can still execute the program.
6. Which if the values below return TRUE if executed?
7. Integers are ..... and floats are .....
8. What does the 'turtle' represent in Python?
9. What data type represents a whole number?
10. Which of the following is constructed by placing expressions within square brackets?
11. Which of these are keyword?
12. What type of data is:a=[(1, 1), (2, 4), (3, 9)]?
13. Enemy = hero.findNearestEnemy( )in the variable enemy what is being stored?
14. Which commands do we need to fill a shape that we have just drawn?
15. Which method will remove an element the Dictionary data type?
16. How would you create a program to display "Hello World!"
17. For string symbol + means .....
18. What is the term for a list within another list in Python?
19. If p=25, what is p**2?
20. To solve a problem that requires the user to enter 10 numbers would use what type of iteration?
21. In Python, to have text stated for the user to see, we use:
22. ..... method adds one list at the end of another list.
23. How do i remove the item "juice" from a list?
24. Look at the following code:name = input ("What is your name? ")print (name)What would be printed from the print command?
25. Which of the following commands will create a list? a) list1 = list() b) list1 = []. c) list1 = list([1, 2, 3]) d) all of the mentioned