mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14204 "Content for Quiz Statistics report table - Random_guess_score" added method random_guess_score to question type objects and a new function in questionlib that calls the question type method.
This commit is contained in:
parent
ed48af75b4
commit
6f51ed72be
12 changed files with 201 additions and 96 deletions
|
@ -1794,8 +1794,16 @@ function get_question_fraction_grade($question, $state) {
|
|||
$r = $QTYPES[$question->qtype]->get_fractional_grade($question, $state);
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return integer grade out of 1 that a random guess by a student might score.
|
||||
*/
|
||||
// ULPGc ecastro
|
||||
function get_random_guess_score($question) {
|
||||
global $QTYPES;
|
||||
|
||||
$r = $QTYPES[$question->qtype]->get_random_guess_score($question);
|
||||
return $r;
|
||||
}
|
||||
/// CATEGORY FUNCTIONS /////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue