Essay question type
From MoodleDocs
Database tables
Response storage
The response from the student in $state->responses[] is the text of the essay written by the student. This then also gets stored in the 'answer' field in the quiz_states table.