A spelling mistake was an elementary misprint. But I cannot guess an error in punctuation
Was the gap before the point the punctuation spacing ? It's impossible
I don't know what you mean by "It's impossible". The error was that you put a space before the full stop. In your first example sentence, you got the spacing correct by putting the full stop directly after the word "student". You have now repeated the error by putting a space before the question mark - I have marked it in red.
In written English, we do not put a space before a full stop, comma, exclamation mark or question mark.