The given compound not dissolve in coldNaHCO3andNaOH solution, means that does not have carboxylic acid group or phenol group. But the compounds will dissolve in hot NaOH solution means they contain ester functional group.
The compounds 2,3,7 contain ester functional group.
