Yes. Use a combination of directory structure, file name, and file contents.
Directory name = StudentIDs
Contains a directory for each student, the directory name being the student ID.
Inside each student directory are files such as: Name, Phone, and directories such as Math, English, History.
Inside each subject directory are file names question1 question2, containing the student's answers to the quiz questions. If the student has not answered the question, the file does not exist. The file can contain the date,time, and answer. Your choice of whether the file contains multiple lines so that each attempt is saved, or the file only contains the last answer.