The structural formulae are as shown
(a) Formaldehyde has IUPAC name methanal. To name aldehydes the ending e of the name of parent hydrocarbon is replaced with suffix −al.
(b) Acetone has IUPAC name 2-propanone. To name ketones the ending e of the name of parent hydrocarbon is replaced with suffix −one. The position of carbonyl group is indicated with proper locant.