3.3 Prerequisite Check (G)
Purpose: Checks whether the student got the prerequisite question correct.
Motivation: Many questions build on previous ones. If the student did not get the “prerequisite” question(s) correct, their current answer is likely incorrect as well. This Check prompts the student to revisit their earlier work. Since the prerequisite question is often the previous question, this Check is also called the “Previous Question Check.”
#Prerequisite Check Example
else if(test.results[1, 2] == 0){ #If Question 1 is incorrect...
test.results[2, 4] <- "This question depends on Question 1 being correct. Try again. (Any additional feedback as needed.)"
}
Technicals
Place the Prerequisite Check first so it is triggered first.
Don’t use the Prerequisite Check for the first question, or for any stand-alone questions.
Recommendation: If the assignment has multiple parts (e.g., Part 1, Part 2, etc.), you should clarify where the prerequisite question is in the feedback message of test.results[#, 4]
.