An organic compound (A) which has molecular formula C\(_8\)H\(_8\)O, produces orange-red precipitate with 2,4-dinitrophenylhydrazine (2,4-DNP) reagent and forms a yellow precipitate on heating with iodine in presence of sodium hydroxide. This compound does not reduce Tollen's reagent or Fehling's solution and decolours Br\(_2\)-water or Baeyer's reagent. It forms a carboxylic acid (B) by strong oxidation with chromic acid, which has molecular formula C\(_7\)H\(_6\)O\(_2\). Recognise compound (A) and (B) and explain the reactions involved in it.