The quizzes in Moodle can be used with a setting which allows to continue to the next question after completing the previous one. However I do not see the padlocks for CodeRunner questions.
I mean the functionality described at https://docs.moodle.org/402/en/Building_Quiz#Making_questions_conditional_upon_other_questions
My idea is to build a series of questions as follows. The student will form the geometric progression in Question1 using X[t+1] = r * X[t] and then will generalize. In Question 2 he/she will consider X as 2d array and r number, in Question 3 the value r becomes vector and in Question 4 the value r becomes matrix. This will be route from geometric progression to Leslie model. And of course, to continue with the next step the students have to resolve the previous one. Any idea how to achieve this?