Given that the compound B can also obtained by reaction between benzene with acid chloride in presence of anhy. AlCl3.
The reaction can be given as follow:
C6H6Benzene+CH3COClanhy.AlCl3−−−−−−−→C6H5−O||C−CH3acetophenone(B)
Also, compound B is also obtained by reaction of compound A with H2SO4 and HgSO4.
This reaction is hydration of alkyne which give aldehyde and ketones on rearrangement.
Thus the compound A must be alkyne.
Looking at product B, it can be concluded that the compound A will be C6H5−C≡CH which is 1−phenyl ethyne
Now, the compound B is acetophenone i.e. a methyl ketone. Thus it can react with I2+NaOH to undergo Haloform reaction to give sodium benzoate(C) and yellow coloured Iodoform(D)
C6H5−O||C−CH3BI2+NaOH−−−−−−→C6H5−O||C−ONaC+CHI3D