In which of the following pairs do both compounds have a van't Hoff factor (i) of 2?
a) glucose and sodium chloride
b) perchloric acid and barium hydroxide
c) sodium sulfate and potassium chloride
d) sodium chloride and magnesium sulfate
Answer: d) sodium chloride and magnesium sulfate