The correct choice is (a) When they are connected in parallel
Explanation: We get maximum energy when capacitors are connected in parallel because the equivalent capacitance is larger than the largest individual capacitance when connected in parallel. The relation between capacitance and energy is:
Energy=CV^2/2, hence as the capacitance increases, the energy stored in it also increases.