The carbonyl compound (X)(C8H8O) giving yellow ppt. with NaOI indicates the presence of a methyl ketone. Also, since X is a carbonyl compound not an alcohol thus X must be a methyl ketone. Now, the above two conditions specifies that X is acetophenone.