The correct option is D A or B
A pure substance is a substance in which only one type of atom or molecule is present. For example, water, sulphur, sucrose(pure), helium etc.
Hence, a pure substance can only be an element or a compound.
Hence, the answer is option D.