Which of the following are likely to form an ionic bond?

nitrogen and oxygen
carbon and sulfur
carbon and hydrogen
magnesium and sulfur

Magnesium and sulfur are likely to form an ionic bond.