Photosynthesis is the process by which plants, some bacteria, and some protistans use the energy from sunlight to produce glucose from carbon dioxide and water. This glucose can be converted into pyruvate which releases adenosine triphosphate (ATP) by cellular respiration. Oxygen is also formed.Anabolic processes are processes that build up compounds. As photosynthesis build up glucose hence it is an anabolic process.An endergonic reaction requires or absorbs energy from its surroundings. Photosynthesis is an endergonic reaction. The energy required for photosynthesis comes from light hence endergonic.Hence Photosynthesis is an example of Anabolism and endergonic reactions.So, the correct answer is 'Both A and B'.