The correct option is
C Both A and B
The ecosystem is an interaction between the living beings (biotic component) and their physical environment (abiotic component).
The food chain is the sequence of organisms through which food and energy are passed in an ecosystem with the members of trophic level.
A food web is a network of food chains, which are interconnected at different trophic level. Thus, the correct answer is option C.