// Numbas version: exam_results_page_options {"name": "Numbas demo: adaptive marking", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Numbas demo: adaptive marking", "tags": [], "metadata": {"description": "

Demonstration of adaptive marking: the student must first add up the number of apples to buy, then work out how much that would cost. Adaptive marking carries an incorrect number of apples into the cost calculation.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Adaptive marking allows you to apply 'error-carried-forward' marking, or to base the answers for a question on data entered by the student at the start.

\n

In this question, adaptive marking can use the number of apples the student gives in the first part to work out the total cost in the second part.

\n

See this question in the public editor.

", "advice": "", "rulesets": {}, "extensions": [], "variables": {"apples_to_buy": {"name": "apples_to_buy", "group": "Ungrouped variables", "definition": "a_apples + b_apples", "description": "", "templateType": "anything"}, "a_apples": {"name": "a_apples", "group": "Ungrouped variables", "definition": "random(2 .. 5#1)", "description": "", "templateType": "randrange"}, "b_apples": {"name": "b_apples", "group": "Ungrouped variables", "definition": "random(2 .. 5#1)", "description": "", "templateType": "randrange"}, "cost_per_apple": {"name": "cost_per_apple", "group": "Ungrouped variables", "definition": "1.1", "description": "", "templateType": "anything"}, "total_cost": {"name": "total_cost", "group": "Ungrouped variables", "definition": "cost_per_apple * apples_to_buy", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a_apples", "b_apples", "apples_to_buy", "cost_per_apple", "total_cost"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "How many apples to buy", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

My family wants {a_apples} bags of apples and my friend wants {b_apples} bags of apples. How many bags of apples should I buy?

", "minValue": "apples_to_buy", "maxValue": "apples_to_buy", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "gapfill", "useCustomName": true, "customName": "Total cost", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

One bag of apples costs {currency(cost_per_apple,\"£\",\"p\")}. How much will I spend?

\n

£ [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "apples_to_buy", "part": "p0", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "total_cost", "maxValue": "total_cost", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}