A Sijil Pelajaran Malaysia (SPM) student has passed away after falling into a coma a day before sitting for the examination.