LLMS_Question::grade( array[] $answer )
Attempt to grade a question
Description Description
Parameters Parameters
- $answer
-
(Required) Selected answer(s).
Return Return
(string|null) Returns null
if the question cannot be automatically graded. Returns yes
for correct answers and no
for incorrect answers.
Source Source
File: includes/models/model.llms.question.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Combined nested if statements into a single condition. |
3.16.15 | Unknown. |
3.16.0 | Introduced. |