Alkenes on reacting with ozone results in the formation of ozonide which undergo reductive cleavage in presence of dimethyl sulfide to form carbonyl compounds (aldehyde or ketone). Whereas in presence of hydrogen peroxide it undergoes oxidative cleavage to form carboxylic acids or ketones.
Since, A alkene yields 4-heptanone only on treatment with ozone and DMS thus, it implies that both the chains on the side of the double-bond are similar the product is 4-heptanone that means the double bond is present between the chains at the 4th carbon. Therefore the structure of compound A is 4,5-dipropyloct-4-ene.
The reaction is as shown in the image.
The reaction of A with m-CPBA (meta-perchlorobenzoic acid) followed by aqueous acid
is shown in the image.
m-CPBA (meta-perchlorobenzoic acid) is a peracid and forms epoxides on reacting with alkenes.