Plants use sunlight to produce some ATP during photosynthesis. How do plants produce ATP when the Sun is not out?

APlants are secondary consumers.
BPlants also use cellular respiration.
CPlants extract ATP from the stars.
DPlants are weak in the dark.