// Numbas version: finer_feedback_settings {"name": "Round to even", "extensions": ["err3"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Round to even", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "
Round the following to the stated number of decimal places:
\n", "advice": "The answer is {answers[0]} don't forget to use {solutions[questions[0][2]]}
\nThe answer is {answers[1]} don't forget to use {solutions[questions[1][2]]}
\nThe answer is {answers[2]} don't forget to use {solutions[questions[2][2]]}
", "rulesets": {}, "extensions": ["err3"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"even_source_numbers": {"name": "even_source_numbers", "group": "Ungrouped variables", "definition": "random(1,3,5,7,9)-0.5", "description": "", "templateType": "anything", "can_override": false}, "odd_source_numbers": {"name": "odd_source_numbers", "group": "Ungrouped variables", "definition": "random(1,3,5,7,9)+0.5", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "(random(10..1000#10)+even_source_numbers)/random([10,100,1000])", "description": "", "templateType": "anything", "can_override": false}, "a_dp": {"name": "a_dp", "group": "Ungrouped variables", "definition": "countdp(string(a))", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "(random(10..1000#10)+odd_source_numbers)/random([10,100,1000])", "description": "", "templateType": "anything", "can_override": false}, "b_dp": {"name": "b_dp", "group": "Ungrouped variables", "definition": "countdp(string(b))", "description": "", "templateType": "anything", "can_override": false}, "questions": {"name": "questions", "group": "Ungrouped variables", "definition": "shuffle([[a,a_dp,'round to even - even'],[b,b_dp,'round to even - odd'],[c,c_dp,'forced trailing zero']])", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "decimal((random(100..1000#100)+random(1..4))/random([100,1000,10000]))", "description": "Forced trailling zero in a rounding
", "templateType": "anything", "can_override": false}, "c_dp": {"name": "c_dp", "group": "Ungrouped variables", "definition": "countdp(string(c))", "description": "", "templateType": "anything", "can_override": false}, "answers": {"name": "answers", "group": "Ungrouped variables", "definition": "map(round2even_disp(x[0],x[1]-1),x,questions)", "description": "", "templateType": "anything", "can_override": false}, "numround": {"name": "numround", "group": "Ungrouped variables", "definition": "precround(dec(answers[0]),2)", "description": "", "templateType": "anything", "can_override": false}, "solutions": {"name": "solutions", "group": "Ungrouped variables", "definition": "[\"round to even - even\":\"use round to even\",\"round to even - odd\":\"use round to even\",\"forced trailing zero\":\"don't forget the trailing zeros\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["even_source_numbers", "odd_source_numbers", "a", "a_dp", "b", "b_dp", "c", "c_dp", "questions", "answers", "numround", "solutions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "Round {questions[0][0]} to {questions[0][1] -1} decimal places
", "answer": "{answers[0]}", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "Round {questions[1][0]} to {questions[1][1] -1} decimal places
", "answer": "{answers[1]}", "displayAnswer": "", "matchMode": "regex", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "Round {questions[2][0]} to {questions[2][1] -1} decimal places
", "answer": "{answers[2]}", "displayAnswer": "", "matchMode": "regex", "allowEmpty": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}], "resources": []}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}]}