The given assertion and reason require us to analyze the photoelectric effect and its explanation through the wave theory of light.
Conclusion: Both Assertion (A) and Reason (R) are true. The assertion correctly states the spontaneous nature of the photoelectric effect, and the reason explains why the wave theory of light could not account for this phenomenon, leading to the development of quantum theory. Thus, Reason (R) is indeed the correct explanation of the Assertion (A).