Since it had been snowing through the night, the students wondered if school would be canceled.
Wrong
For an open-ended question, we need to use "whether," not "if." The word "if" is used to designate a specific condition, not for an open-ended question. We have to use "wondered whether" here.