new TestRadioQuestion(options) → {Object}
Test - Test radio question, answer with one multiple radio choice
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options
Properties
|
- Source:
- mathex/res-otto/js/mathex.js, line 1904
Returns:
mathex.TestRadioQuestion instance
- Type
- Object
Example
var question3 = new mathex.TestQuestion('radio', {
question: 'Which equation is wrong?' +
'<ul>' +
'<li>[[0]] {% 5^3 * 5^4 = 5^7 %}</li>' +
'<li>[[1]] {% 2^5 * 3^5 = 6^5 %}</li>' +
'<li>[[2]] {% 9^6 + 9^2 = 9^8 %}</li>' +
'<li>[[3]] {% 7^8 : 7 = 7^7 %}</li>' +
'</ul>',
result: 2,
});
Methods
-
checkAnswer()
Cheks the user answer, saves the result and proceeds with the next question
-
- Source:
- mathex/res-otto/js/mathex.js, line 1928
Returns:
void -
run(test)
Executes the test question
-
Parameters:
Name Type Description test
Object The mathex.Test instance - Source:
- mathex/res-otto/js/mathex.js, line 1908
Returns:
void