Organism preparing their own food is called Autotrophs and the mode of nutrition is called Autotrophic Nutrition.
Food is prepared from carbon dioxide, water, and sunlight.
They are also called producers.
For example, all green plants and certain bacteria have an autotrophic mode of nutrition
Heterotrophic Nutrition:
Heterotrophic nutrition is an organism that cannot make its own food and instead obtain its food and energy by taking in organic substances, usually plant or animal matter.
Food cannot be prepared from carbon dioxide, water, and sunlight.
They are called consumers.
Chlorophyll or green pigment is absent.
For example, all the animals and fungi, and most bacteria have heterotrophic modes of nutrition.