// Numbas version: exam_results_page_options {"name": "Numbas demo: alternative answers", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Numbas demo: alternative answers", "tags": [], "metadata": {"description": "The student is asked to add two four-digit numbers. Alternative answers are set up with progressively expanding ranges of accepted values, so the student gets more marks for getting closer to the true answer.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The \"Alternative answers\" feature allows you to set up copies of a part, with different expected answers or settings. Each alternative can award a different number of marks. When the student submits an answer, the alternative that gives the most marks is used, and a feedback message corresponding to that alternative is shown.

\n

In this question, alternate versions accept ever-wider ranges of numbers around the correct answer, awarding fewer marks for less-precise answers.

\n

See this question in the public editor.

", "advice": "", "rulesets": {}, "extensions": ["stats"], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1001 .. 8888#1)", "description": "", "templateType": "randrange"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1001..9999-a)", "description": "", "templateType": "anything"}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "a+b", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "total"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Add two numbers", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate $\\var{a} + \\var{b}$.

\n

(Try getting the answer slightly wrong: you're awarded more marks the closer you get to the correct answer.)

", "alternatives": [{"type": "numberentry", "useCustomName": true, "customName": "Within 10", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

You're within 10 of the correct answer.

", "useAlternativeFeedback": false, "minValue": "total-10", "maxValue": "total+10", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Within 100", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

You're within 100 of the correct answer.

", "useAlternativeFeedback": false, "minValue": "total-100", "maxValue": "total+100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Within 1000", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

You're within 1000 of the correct answer.

", "useAlternativeFeedback": false, "minValue": "total-1000", "maxValue": "total+1000", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "total", "maxValue": "total", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}