Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 8 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which if the values below is a float data type?
2. Which kind of loop would be used?I need a guessing game program that will let me keep guessing until I get the right answer.
3. Cleave = hero.isReadyToCleave( )
4. What will be displayed to the screen when the following code runs? esport = "Galaga" for letter in esport:print(letter + " ..... ", end="")
5. Find the output of the following code:>>>str1='Save Soil'>>>str1.isalnum( )
6. Which character must be at the end of the line for if?
7. It is possible to execute both the (block of) statements under if and the else clauses at the same time.
8. If you want to create an empty list called islands, which of the following pieces of code is correct?
9. Given a list named "esports", which of the following statements will access only the first and second items in that list?
10. An ordered set of values between a known start and end value is the
11. If I use the command right(180), which way will Tracy turn?
12. What error occurs when you execute?apple = mango
13. What will be the output of the following Python function? all([2, 4, 0, 6])
14. Notes that explain to others what each part of your program does.
15. Give the output of the following statements>>> str='Hello World'>>>str.istiltle()
16. What is the answer to this expression, 22%3 is
17. What is the significance of the name 'Python'?
18. Which commands would draw a square
19. What is used to separate elements in a list?
20. Which operator performs an addition?
21. Fill in the blank if a> b:print("True") ..... :print("False")
22. Which code would display 'Hello World'
23. What data type represents a decimal number?
24. What is the Output of the following code?for x in range(0.5, 5.5, 0.5):print(x)
25. Why would you use a loop?
26. Which of the following best describes the purpose of a for loop?
27. What is the proper syntax for Python comments?
28. What will the output be from the following code?print("Hello" + 2 + "world")
29. The number or word we give to a variable
30. A function that can only be used by a class is called?
31. What is Basic syntax?
32. If Tracy started facing right, which direction would she be facing after we ran the following code? left(90)left(90)right(90)
33. What is the correct programming name of this symbol?()
34. What data type would be used for storing someone's telephone numbers?
35. Comments are used to make code easier to read.
36. The Python IDE colour codes sections of your code to make it easier to debug
37. Python can be defined as
38. What initiated the Burmese Python invasion in South Florida?
39. Why did Guido van Rossum call his programming language Python?
40. Try something a bunch of times, then change a little each time until it's right.
41. What is input() called in Python coding?
42. What is the output of the following code?What is the output of following codeTemperature = 20 Thermo = 15 if Temperature < 15:Thermo = Thermo + 5 print(Thermo)
43. If I want to store my height in a variable, which of the following would be a good variable name in best practice?
44. What is the result of following Program in python3for i in range(3, 0, -1)print("{0} Python" .format(i))
45. If I declare a variable within a function, can I then use its value within the outer global scope of my application?
46. How do we change a user input from string to integer?
47. Consider the code below. What prints?print(int(33.7))
48. Select the correct operator for Floor Division (Div):
49. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.remove('Tinian')print(mariana ..... islands)
50. Which line of code is used to make a loop?
51. Which type of loop iterates until instructed otherwise?
52. What is the function of the reverse method for lists?
53. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.pop()print(mariana ..... islands)
54. If you want to create an empty list called colours in Python, which of the following is correct?
55. What is iteration known as?
56. What is the result of following Program in python3for i in range(1, 4):print(i)if(i==2):break;
57. What does the command 'wn' do?
58. Given a function that does not return any value, what value is thrown by default when executed in shell.
59. What is the output of the following code?for i in range(10, 15, 1):print( i, end=', ')
60. What symbol is used to either add two numbers together or join two strings?