Complex sentence: Students take the exam in the spring of 10th grade; if they do not pass, they have the opportunity to take the test again in 11th and 12th grades.
Split into simpler sentences: Students take the exam in the spring of 10th grade. If they do not pass at that time, they have the opportunity to take the test again in 11th and 12th grades.