Vidyalelo
Python · Q126

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 126

Q126

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.extend([34, 5])?

A.
[3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
Answer
B.
[1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
C.
[25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
D.
[1, 3, 4, 5, 20, 5, 25, 3, 34, 5]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board