The correct option is D Both a and b
ATP is synthesised during both cyclic and non cyclic photophosrylations. Cyclic photophosphorylation occurs when plants have enough of NADPH and need only ATP without using NADPH to yield ATP. It involves only photosystem I.
Non-cyclic Photophosphorylation involves both the photosystems and releases NADPH, ATP and oxygen as the products.
Splitting of H2O occurs in the membrane of the thylakoids to compensate for the electrons lost from PS II.