// Numbas version: exam_results_page_options {"name": "Q2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"variableReplacementStrategy": "originalfirst", "choices": ["

$\\simplify{{shuffledchoices[0]}}$

", "

$\\simplify{{shuffledchoices[1]}}$

", "

$\\simplify{{shuffledchoices[2]}}$

", "

$\\simplify{{shuffledchoices[3]}}$

", "

None of these

"], "displayColumns": 0, "marks": 0, "minMarks": 0, "maxMarks": 0, "showCorrectAnswer": true, "type": "1_n_2", "scripts": {}, "variableReplacements": [], "displayType": "radiogroup", "showFeedbackIcon": true, "matrix": "marks", "shuffleChoices": false}], "rulesets": {}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "variables": {"d": {"definition": "random(2..8 except -b)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "d"}, "choices": {"definition": "//choices, apart from \"none of the above\"\n [correctAnswer,Choice1,Choice2,Choice3]", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "choices"}, "noneofthesemarks": {"definition": "//marks to award for selecting \"none of these\"\n 0", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "noneofthesemarks"}, "shuffledchoices": {"definition": "//the choice texts, in the shuffled order\n map(choices[j],j,order)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "shuffledchoices"}, "a": {"definition": "random(1..10)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}, "marks": {"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", "group": "Ungrouped variables", "name": "marks"}, "correctAnswer": {"definition": "expression((a+ c) + 'v*w+'+ (b + d) + 'v')", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "correctAnswer"}, "b": {"definition": "random(-6..-1)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "Choice3": {"definition": "expression((a+ c) + 'v+'+ (b + d) + 'v*w')", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "Choice3"}, "choicemarks": {"definition": "//marks to award for each of the above choices\n [1,0,0,0]", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "choicemarks"}, "Choice1": {"definition": "expression((-a- c) + 'v+'+ (b + d) + 'v*w')", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "Choice1"}, "Choice2": {"definition": "expression({a+ b+ c+ d} + 'v*w')", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "Choice2"}, "order": {"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", "group": "Ungrouped variables", "name": "order"}, "c": {"definition": "random(-9..-2 except -a)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}}, "variablesTest": {"condition": "a+b+c+d<>0", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "correctAnswer", "Choice1", "Choice2", "Choice3", "choices", "noneofthesemarks", "choicemarks", "marks", "shuffledchoices", "order"], "advice": "", "name": "Q2", "statement": "

Collect like terms and simplify $\\simplify{{a}v*w+{b}v+{c}v*w+{d}v}$ 

", "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "tags": [], "extensions": [], "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/"}]}