Answer:
D.NaOH
Step-by-step explanation:
The compound that contains both ionic and covalent bonds from the given choices is NaOH, sodium hydroxide.
An ionic bond is formed between a metal and non-metal. In this compound, the metal is the Na and non - metal is the OH. To form this bond type, an atom transfers its electrons to the non-metal to attain stability.
The radical group OH⁻ which acts as a single unit is made up of a covalent bond. It involves the sharing of electrons between two non-metals whose electronegativity difference is very similar to one another.