// Numbas version: finer_feedback_settings {"name": "Q3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Q3", "parts": [{"maxMarks": 0, "displayColumns": 0, "matrix": "marks", "minMarks": 0, "displayType": "radiogroup", "type": "1_n_2", "shuffleChoices": false, "showCorrectAnswer": true, "variableReplacements": [], "choices": ["
$\\simplify{{shuffledchoices[0]}}$
", "$\\simplify{{shuffledchoices[1]}}$
", "$\\simplify{{shuffledchoices[2]}}$
", "$\\simplify{{shuffledchoices[3]}}$
", "None of these
"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0}], "ungrouped_variables": ["a", "b", "correctAnswer", "Choice1", "Choice2", "Choice3", "choices", "noneofthesemarks", "choicemarks", "marks", "shuffledchoices", "order"], "statement": "Expand the brackets and simplify $\\simplify{({a}a+{b}b)^2}$
", "extensions": [], "tags": [], "variables": {"marks": {"name": "marks", "group": "Ungrouped variables", "definition": "//marks to award for each choice, then append the marks for \"none of the above\"\n map(choicemarks[j],j,order)+noneofthesemarks", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-6..-1)", "description": "", "templateType": "anything"}, "Choice2": {"name": "Choice2", "group": "Ungrouped variables", "definition": "expression((a^2) + 'a^2+'+(b^2) + 'b^2')", "description": "", "templateType": "anything"}, "choicemarks": {"name": "choicemarks", "group": "Ungrouped variables", "definition": "//marks to award for each of the above choices\n [1,0,0,0]", "description": "", "templateType": "anything"}, "Choice1": {"name": "Choice1", "group": "Ungrouped variables", "definition": "expression((a^2) + 'a^2+'+ (a*b) + 'a*b+'+(b^2) + 'b^2')", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything"}, "correctAnswer": {"name": "correctAnswer", "group": "Ungrouped variables", "definition": "expression((a^2) + 'a^2+'+ (2a*b) + 'a*b+'+(b^2) + 'b^2')", "description": "", "templateType": "anything"}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "//choices, apart from \"none of the above\"\n [correctAnswer,Choice1,Choice2,Choice3]", "description": "", "templateType": "anything"}, "noneofthesemarks": {"name": "noneofthesemarks", "group": "Ungrouped variables", "definition": "//marks to award for selecting \"none of these\"\n 0", "description": "", "templateType": "anything"}, "Choice3": {"name": "Choice3", "group": "Ungrouped variables", "definition": "expression((a^2) + 'a^2-'+(b^2) + 'b^2')", "description": "", "templateType": "anything"}, "shuffledchoices": {"name": "shuffledchoices", "group": "Ungrouped variables", "definition": "//the choice texts, in the shuffled order\n map(choices[j],j,order)", "description": "", "templateType": "anything"}, "order": {"name": "order", "group": "Ungrouped variables", "definition": "//the order in which to display the choices - pick a random permutation of [0,1,2,3,4]\n deal(4)", "description": "", "templateType": "anything"}}, "advice": "", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "rulesets": {}, "variable_groups": [], "functions": {}, "variablesTest": {"condition": "a+b<>0", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}]}]}], "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}]}