In a world where kids are already not getting enough outside time and exercise making it harder for them to ride to school seems a poor idea.
If it's becoming a problem they should be doing in person lessons on how to ride a bike and basic road manners rather than a online quiz that nobody is going to pay any attention to. Pity in person lessons have been made harder by everyone having to be so incredibly risk averse these days. For example there was that bit in WA recently where schools got told they couldn't use bikes without chain guards (i.e. most bikes) because someone managed to hurt themselves.