Correct option is B
The final array will be [10, 30, 40].
Important Key Points:
1. The pop() method removes the element at the specified index and returns it.
2. In this case, arr.pop(1) removes the element at index 1, which is 20.
3. After the operation, the updated list is [10, 30, 40].
Knowledge Booster:
·
Option (a): Incorrect, as 20 is removed, not retained in the list.
·
Option (c): Incorrect, as arr.pop(1) does not affect the last element 40.
·
Option (d): Incorrect, as it assumes the list is sliced or reduced incorrectly.
·
Option (e): Incorrect, as arr.pop(1) does not remove 10.