The answer is B. The program prints:
carrot

Why?
Python counts list positions from 0, so position 2 is the third item.
Trace table
A trace table follows the program step by step. Here’s this one:
| position | negative position | item |
|---|---|---|
| 0 | -5 | mango |
| 1 | -4 | pear |
| 2 | -3 | carrot |
| 3 | -2 | apple |
| 4 | -1 | grape |
The code again
basket = ["mango", "pear", "carrot", "apple", "grape"]
print(basket[2])
Try it: change one number in the program and predict the new output before you run it.