Correct answer is (d) Heating phthalic acid with NaOH
To elaborate: The chemical compounds involved in the Gabriel phthalimide synthesis are phthalimide, potassium phthalimide and N-alkyl phthalimide. These are formed in order when reacted with different reagents like KOH and haloalkanes.