// Numbas version: exam_results_page_options {"name": "1.2.3.2 What type of polynomial is this?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.2.3.2 What type of polynomial is this?", "tags": [], "metadata": {"description": "

Is this polynomial a quadratic, linear or constant? Part of HELM Book 1.2

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

What type of polynomial is $\\var{q2_expr}$?

", "advice": "

$\\var{q2_expr}$

\n

There are no variables in this expression, so this is a constant.

\n

The highest degree is 1, so this is a linear expression.

\n

The highest degree is 2, so this is a quadratic expression.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"weighted_random_list": {"name": "weighted_random_list", "group": "Ungrouped variables", "definition": "[[0,10],[1,1],[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1]]", "description": "", "templateType": "anything", "can_override": false}, "q2_quadratic": {"name": "q2_quadratic", "group": "Ungrouped variables", "definition": "weighted_random(weighted_random_list)", "description": "", "templateType": "anything", "can_override": false}, "q2_linear": {"name": "q2_linear", "group": "Ungrouped variables", "definition": "weighted_random(weighted_random_list)", "description": "", "templateType": "anything", "can_override": false}, "q2_constant": {"name": "q2_constant", "group": "Ungrouped variables", "definition": "random(0..9 except q2_quadratic)", "description": "", "templateType": "anything", "can_override": false}, "q2_expr": {"name": "q2_expr", "group": "Ungrouped variables", "definition": "simplify(expression(\n q2_expr_parts[0] + q2_sgn1 + q2_expr_parts[1] + q2_sgn2 + q2_expr_parts[2]),\n [\"basic\",\"unitFactor\",\"unitPower\",\"zeroFactor\",\"zeroTerm\"])", "description": "", "templateType": "anything", "can_override": false}, "q2_expr_parts": {"name": "q2_expr_parts", "group": "Ungrouped variables", "definition": "shuffle([q2_quadratic + letter + \"^2\",\n q2_linear + letter,\n q2_constant\n ])", "description": "", "templateType": "anything", "can_override": false}, "q2_sgn1": {"name": "q2_sgn1", "group": "Ungrouped variables", "definition": "random(\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}, "q2_sgn2": {"name": "q2_sgn2", "group": "Ungrouped variables", "definition": "random(\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}, "letter": {"name": "letter", "group": "Ungrouped variables", "definition": "random(['a','b','c','d','m','n','p','q','r','s','t','w','x','y','z'])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["weighted_random_list", "q2_quadratic", "q2_linear", "q2_constant", "q2_expr", "q2_expr_parts", "q2_sgn1", "q2_sgn2", "letter"], "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, "showCellAnswerState": true, "choices": ["constant", "linear", "quadratic"], "matrix": ["if(q2_quadratic=0 and q2_linear=0,1,0)", "if(q2_quadratic=0 and q2_linear<>0,1,0)", "if(q2_quadratic<>0,1,0)"], "distractors": ["", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}