Moodle  2.2.1
http://www.collinsharper.com
qbehaviour_interactivecountback Class Reference
Inheritance diagram for qbehaviour_interactivecountback:
Collaboration diagram for qbehaviour_interactivecountback:

Public Member Functions

 is_compatible_question (question_definition $question)

Data Fields

const IS_ARCHETYPAL = false

Protected Member Functions

 adjust_fraction ($fraction, question_attempt_pending_step $pendingstep)

Detailed Description

Question behaviour for interactive mode with count-back scoring.

As an example, suppose we have a matching question with 4 parts, and 3 tries (penalty 1/3), and the question is worth 12 marks (so, 3 marks for each part). Suppose also that:

  • on the first try, the student gets the first two parts right, and the other two wrong.
  • on the second try, they are sure they got the first part right, so keep their answer the same, but they change their answer to the second part. They also get the answer to the thrid part right on this try, but still get the 4th part wrong.
  • On the final try, they get the first 3 parts right, but the 4th part still wrong. We want to grade them as follows.
  • For the first part, they were right first time, and did not change their answer, so we credit that part as right first time: 3/3
  • For the second part, although they were right first time, they then changed their mind, an only finally got it right on the third try, so 1/3.
  • For the third part, they got it right on the second try, and then did not change their answer, so 2/3.
  • For the last part, they were wrong at the last try, so 0/3. So, total mark is 6/12. (Really, a fraction of 0.5.)

Of course, the details of the grading are acutally up to the particular question type. The point is that the final grade can take into account all of the tries the student made.

Definition at line 64 of file behaviour.php.


Member Function Documentation

adjust_fraction ( fraction,
question_attempt_pending_step pendingstep 
) [protected]

Reimplemented from qbehaviour_interactive.

Definition at line 71 of file behaviour.php.

Here is the call graph for this function:

Some behaviours can only work with certing types of question. This method allows the behaviour to verify that a question is compatible.

This implementation is only provided for backwards-compatibility. You should override this method if you are implementing a behaviour.

Parameters:
question_definition$questionthe question.

Reimplemented from qbehaviour_interactive.

Definition at line 67 of file behaviour.php.


Field Documentation

const IS_ARCHETYPAL = false

Reimplemented from qbehaviour_interactive.

Definition at line 65 of file behaviour.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations