you declared quiz to be 9 elements


SimpleQuestion[] quiz = new SimpleQuestion[9];

but you only have 3 quizzes that have values. That's why you have the error. either initialize your quiz...