// Numbas version: finer_feedback_settings {"name": "Distributive law: expanding one set of brackets: student types entire answer", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Distributive law: expanding one set of brackets: student types entire answer", "tags": [], "metadata": {"description": "
Basically expand an expression like \"5y(-2z+3)\" where the student types answer into a single gap.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "numbers[1]", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "numbers[0]", "description": "", "templateType": "anything", "can_override": false}, "letters": {"name": "letters", "group": "Ungrouped variables", "definition": "shuffle(['m','n','p','q','r','t','u','v','w','x','y','z'])[0..2]", "description": "", "templateType": "anything", "can_override": false}, "numbers": {"name": "numbers", "group": "Ungrouped variables", "definition": "shuffle(-10..10 except -1..1)[0..3]", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "numbers[2]", "description": "", "templateType": "anything", "can_override": false}, "absc": {"name": "absc", "group": "Ungrouped variables", "definition": "abs(c)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b", "a", "letters", "numbers", "c", "absc"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Expanding $\\simplify{{a}*{expression(letters[0])}}\\left(\\simplify[!noleadingminus]{{b}*{expression(letters[1])}+{c}}\\right)$ gives [[0]].
", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The expression in front of the bracket is multiplying the bracketed term, that is, each term in the brackets.
\nThat is
\n$\\begin{align*}
\\simplify{{a}*{expression(letters[0])}}\\left(\\simplify[!noleadingminus]{{b}*{expression(letters[1])}+{c}}\\right)
&=\\simplify[!collectNumbers, !constantsFirst, !basic]{({a}*{expression(letters[0])})*({b}*{expression(letters[1])})+({a}*{expression(letters[0])})*{c}}\\\\
&=\\simplify{{a}*{expression(letters[0])}*{b}*{expression(letters[1])}+{a}*{expression(letters[0])}*{c}}
\\end{align*}$