GATE DA 2025 · Question 23 · Programming, Data Structures and Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider the following Python declarations of two lists.
A=[1,2,3] B=[4,5,6]
Which one of the following statements results in A= [1, 2, 3, 4, 5, 6]?
- (A) A.extend(B)
- (B) A.append(B)
- (C) A.update(B)
- (D) A.insert(B)
Answer
Answer (A)
Answer from the official GATE DA 2025 answer key.
The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes