The situation that is an example of altruistic behavior is:
A child shares an apple.
Altruistic behavior involves acting in a way that benefits others, often at a personal cost or without expecting anything in return. Sharing an apple fits this definition.