Hi
* This function determins whether the user answered the question correctly or incorrectly. * If the answer is partially correct it is seen as correct. * @param quesiton_usage_by_activity $quba an object loaded with the unique id of the attempt * @param int $slotid the slot id of the question * @return float a float representing the user's mark. Or null if there was no mark */ public function get_question_mark($quba, $slotid) { $mark = $quba->get_question_mark($slotid); if (is_float($mark)) { return $mark; } $this->print_debug('get_question_mark() - Question mark was not a float slot id: '.$slotid.'. Returning zero'); return 0; }
Can somebody help me out, to make this partially correct as incorrect? Even if one of the cloze answer is solved, it marks it correct and moves to a higher difficulty level