Test Index
CBSE Class 12 Computer Science 2025 Paper Compartment
© examsnet.com
Question : 8 of 37
Marks:
+1,
-0
Which of the following list methods accepts exactly 2 parameters ?
Solution:
Explanation:
append(x) – 1 parameter (the element to add at the end).extend(seq) – 1 parameter (a sequence whose elements are added).insert(index, x) – exactly 2 parameters: the position and the element, e.g. L.insert(1, 50).pop([index]) – 0 or 1 parameter (the index is optional).Answer:Option C (insert())© examsnet.com
Go to Question: