Professional Documents
Culture Documents
1. __________ are a particular way of organizing data in a computer so that it can be used effectively.
a. 1 b. 2 c3 d. 4
10. Python assigns an automatic index value for each of the list beginning from ___________.
a. 10 b. 0 c. 1 d. default
a. 1 b. 2 c. 3 d. 4
13. The element of a list can be accessed with the ________ value.
14. We can change a single element or a range of elements in a list using __________ operator.
16. The append() function is used to add a single element at the _________ of the list as the last element.
17. The __________ function is used to insert an element into the list at a specific position.
18. The __________ function is used to insert multiple elements at the end of the list.
19. The ________ function deletes a specific element from the list.
20. The _________ function is used to remove the last element from the list.
21. The __________ command is used to delete the element with a specific index or can be used to delete a group of
elements from the range of index specified.
21. The __________ function is used to remove all the elements from the list.
22. The index() function returns the _____________ value of the first occurrence of the search element.
23. The copy( ) function is used to __________ all the elements of a list into another list.
24. In python we can copy the existing list to another list by the following ______ methods.
a. 1 b. 2 c. 3 d. 4
25. The __________ function is used to count and return the number of occurrences of a particular element in the
list.
26. The __________ function is used to reverse the order of the elements in a list.
29. If we want the list in descending order, we have to use the argument ____________ with the value ‘True’.
30. A list can be added with another list by using the __________ operator.
a. = b. * c. ^ d. +
31. __________ operator acts as an extend function where the second list is added at the end of the first list.
a. + b. - c. * d. /
32. ___________ function returns the minimum value from the list.
33. ________ and ________ function works on the list that have elements of character data type. The elements will
occupy the first position and last position if the list is sorted in ascending order.
a. min ( ) & max() b. min( ) & sum() c. max() & sum() d. sum() & range()
34. ____________ function returns the maximum value from the list.
35. ___________ function returns the sum of all the elements of the list.
36. A list can be created with the ___________ function and the _________ function combined together.
a. min() & max() b. max() & sum() c. min() & max() d. list() & range()
36. The __________ function is used to convert the values generated by the range function into a list.
37. List can also be created with elements based on an expression and a range. This is called _____________.
38. In list comprehension, the expression and the range has to be given within _______ brackets.
42. The elements of the tuples are given within _________ separated by comma.
44. A tuple can be created with the ___________ function and __________ function combined together.
a. list and range b. tuple and range c. set and range d. range and sum
48. The sum(), min() and max() functions only works with tuples conataining ____________.
51. A set can be created by placing the elements within ________ bracket.
52. We can use the ___________ function to create set from a list or a tuple.
54. The __________ function is used to add more number of elements to the set.
55. The remove() and discard() functions are used to remove __________ element from the set.
56. The ___________ function will remove a random element from the set.
57. The __________ function removes the elements from the set and will retain the empty set.
56. The ___________ function will delete the set completely along with its element.
a. | b. @ c. U d.
58. Performing _____________ operation between two sets will create a new set with all the elements available in
both the sets excluding duplicate elements.
59. To perform union operation we can use pipeline (|) operator and ___________ function.
a. b. c. & d. $
61. Performing ___________ operation between two sets will create a new set with all the common elements
available in both the sets.
62. To perform the intersection operation between two sets, we can use the ampersand (&) and _______ function.
63. Performing ___________ operation between two sets will create a new set with all the elements available in the
first sets which are not in the second.
a. + b. - c. d. $
65. To perform the difference operation between two sets, we have to use the minus(-) operator and __________
function.
66. Performing _____________ operation between two sets will create a new set with all the elements available in
both the sets excluding the common elements in both sets.
a. ^ b. - c. d. $
68. To perform symmetric difference operation between two sets we can use caret(^) operator and _________
function.
69. ____________ is an unordered, mixed collection of elements which are indexed and are changeable.
a. List and tuples b. Set and dictionary c. Tuple and dictionary d. list and set
73. In dictionary, the key along with the element is called a __________ pair.
74. In dictionary, the key value pairs are enclosed with the _____ brackets.
76. We can access the elements from the dictionary by using the ________ within the square brackets.
78. The del() function will delete the _________ dictionary completely along with its key value pairs..
79. The __________ function removes the item with the specified key name from the dictionary.
80. The __________ function removes the last item from the dictionary.
82. The index value for each element of the list begins from _________. [zero]
83. Python assigns an __________ index value for each element of the list beginning from zero. [automatic]
84. After reversing the elements in the list using reverse() function, the ___________ order cannot be restored.
[original]
85. When the output of the range() function is taken as input for the list() function, this is called __________.
[composition]
87. The elements of the tuple are given within parenthesis(()) separated by ___________. [comma]
88. The tuple with single element is called ______________ tuple. [singleton]
89. The __________ function is used to add a single element to the set. [add()]
92. ________ are written with curly bracket and they have keys and elements. [ Dictionaries]
list1=[45,65,78,45,98,12,30,45,56]
94. print(max(list1)) - 9
95. print(min(list1)) - 3
98. print(list1) - 2
99. list1.pop() - 56
100. print(list1.count(45)) - 98
101. Pop() function will know which item gets remove from the set. False
102. After reversing the elements in the list using reverse() function, the original order cannot be restored. True
103. min() function returns the maximum value from the list. [False]
105. In python, the sum function works on both numbers and alphabets. [False]
106. The count() function is used to count and return the number of occurrence of a particular element in the list.
[True]
109. The add() function is used to find the sum of all the elements in the list. [False]
110. The discard() function is used to remove a single element from the set. [True]