Test Index
CBSE Class 12 Computer Science 2026 Paper Compartment
© examsnet.com
Question : 10 of 37
Marks:
+1,
-0
Consider the statements given below and then choose the correct output from the given options :
L = ["A", "B"]S=['C','D']L.extend(S)print(L)
Solution:
Concept:
L.extend(S) adds each element of S separately to the end of L. L.append(S) would add the whole list S as one element.Explanation:L.extend(['C','D']) → L becomes ['A', 'B', 'C', 'D']Output:['A', 'B', 'C', 'D']Key point: Option D
['A', 'B', ['C','D']] is the result of append, not extend.Answer:Option A (['A', 'B', 'C', 'D'])© examsnet.com
Go to Question: