The correct answer is: photosynthesis occurs only in the light, and cellular respiration occurs in both the dark and the light.
Light is necessary for the first stage of the photosynthesis-light dependent reactions. These reactions occur in the presence of sunlight, and use that light energy to produce ATP and NADPH. Cellular respiration does not depend on light, it occurs all the time.