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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Returns the remainder from division.
2. In a loop, as long as the user enters an answer that is "true, "
3. What is the result of my ..... list[2:5] if my ..... list = [1, 2, 3, 4, 5, 6, 7] in Python?
4. What does the following comparison operator "==" represent in Python programming?
5. What will the output be from the following Python code?print(9/3)
6. What is the correct name for this symbol?==
7. Select the illegal variable name
8. Identify the meaningful variable name to store high score of a student?
9. What is wrong with the following attempt to initialize a list? data = ["hockey", 4, False]
10. What is the output of the following list operationaList = [10, 20, 30, 40, 50, 60, 70, 80]print(aList[2:5])print(aList[:4])print(aList[3:])
11. Choose the correct data type:yes / no
12. In python, a function is defined using the following keyword
13. Gjdk is not a good name for a variable, why?
14. What is the output of the program below?mariana ..... islands = ['Guam', 'Saipan', 'Tinian', 'Rota']cmni = mariana ..... islands[1:]len(cmni)
15. What is the Python built-in function used to display numbers and text on the screen?
16. Numbers = [5, 14, 9, 17] for number in numbers:if number >= 9:print (number)The output will be?
17. If the number of arguments is unknown, which symbol is used before the parameter name
18. What is printed?cheer = "Go Eagles!"print cheer[5:8]
19. What is the result of following Program in python3for i in range(3, 1):print(i)
20. What is the correct data type for the value of cat?cat = input("How many cats do you have?")
21. Inventor of Python Code Language
22. Identify the code that properly accesses an engine ..... sound() method in a Car class.
23. An action performed by an object
24. The character used in comments in python is .....
25. I am 71 years old! What will the output be?:IF you are 70 or older, say "You are aged to perfection!" ELIF you are exactly 50, say "Wow, you are half a century old!" ELSE say "You are a spring chicken!"
26. What is the output of the following code?x = 5y = 3print(x + y)
27. An algorithm is a set of precise instructions designed to solve a problem.
28. Which keyword is used to take input from the user in Python?
29. Which method is used to convert a given string in Capital letters?
30. In python the ' INTEGER data type' can be defined as ..... ?
31. What is the result of len([1, [2, 3], 4]) in Python?
32. Which programming language influenced the creation of Python?
33. What does t.forward(300) do?
34. What is correct code for INTEGER in python?
35. Which keyword marks a spot in a function where the program flow will go back to the calling code?
36. Un conjunto de comandos conocidos se les denomina .....
37. A character that is controlled by a program through code is referred to as a
38. What is the process of converting one datatype to another called?
39. What will be the output of this code?x = 13y = 14if x!=y:print("Hello")else:print("Hi")
40. What is the result of following Program in python3if(32%2==0):print("32")else:print("2")
41. Str="world of python programming" str+=" store" print(str)
42. Create a variable named x and assign the value of integer 50 to it
43. Select the correct answer:x = 15y = 4print('x ** y =', x**y)
44. Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
45. If you type print("4"+"9") what result would you get
46. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.insert(0, 'Guam')print(mariana ..... islands)
47. Python uses indentation to block code into chunks
48. Which of the following is not an advantage of using modules?
49. Which method is used to delete a value from the list and display it also?
50. Which logical operator is used to negate a condition?
51. A programming statement that allows a block of code to be repeated for a given range of values defines
52. Which line of code is written correctly?
53. A step-by-step set of instructions for completing a task
54. You are in the car with traffic jammed at a junction. To cross that junction according to the traffic rules, which one is NOT applicable
55. ..... statement is used to delete a dictionary.
56. NameList = ["John", "Harry", "Jesse", "John", "Marry", "Larry"]nameList[6] ="Susie"print(nameList)What would be the output
57. A way of repeating code
58. Choose the correct data type:"Sarah"
59. A named, reusable set of programming statements to perform a specific task defines
60. Improper tab placement will prevent a block of code from running properly.