The correct option is A Heating with I2 and alkali
Iodoform test: When Iodine and potassium hydroxide are added to a compound that contains either a methyl ketone or a secondary alcohol with a methyl group in the alpha position, a pale yellow precipitate of iodoform or triiodomethane is formed.
Iodoform test is used to check the presence of carbonyl compounds with the structure R−CO−CH3 or alcohols with the structure R−CH(OH)−CH3 in a given unknown substance.
If an aldehyde gives a positive iodoform test, then it must be acetaldehyde since it is the only aldehyde with a CH3C=O group.
Methanol can be distinguished from ethanol by heating with I2 and NaOH. Ethanol undergoes the reaction and forms a yellow precipitate of CHI3. This is known as iodoform test.
CH3CH2OHethanol+I2−−−−−→+NaOHCH3CHO+I2−−→CI3CHO
CI3CHO+NaOH−−−−−−→HCOONaCHI3 (Iodoform)
Methanol does not undergo above reaction.