// Numbas version: finer_feedback_settings {"name": "1.2.3 Task: Is this a polynomial?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.2.3 Task: Is this a polynomial?", "tags": [], "metadata": {"description": "

Identify whether or not an expression is a polynomial. Part of HELM Book 1.2

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

Which of the following expressions are polynomials?

", "advice": "

$\\var{latex(q1_expr_array[0])}$ contains a fraction term with the variable $\\var{expression(letter)}$ on the denominator, so it is not a polynomial.

\n

$\\var{latex(q1_expr_array[1])}$ contains a fraction term with the variable $\\var{expression(letter)}$ on the denominator, so it is not a polynomial.

\n

$\\var{latex(q1_expr_array[2])}$ contains a term with the square root of the variable $\\var{expression(letter)}$, so it is not a polynomial.

\n

$\\var{latex(q1_expr_array[3])}$ is a linear polynomial.

\n

$\\var{latex(q1_expr_array[4])}$ is a quadratic polynomial.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"q1_expr_array": {"name": "q1_expr_array", "group": "Ungrouped variables", "definition": "[\n string(random(-9,-8,-7,-6,-5,-4,-3-2,2,3,4,5,6,7,8,9)) + letter + \"^2 + \\\\frac\\{\" + string(random(1..9)) + \"\\}\\{\"+ letter +\"\\} +2\",\n \"\\\\frac\\{\"+ string(random(-9,-8,-7,-6,-5,-4,-3-2,2,3,4,5,6,7,8,9)) + \"\\}\\{\" + letter + \"+\" + string(random(1..9)) + \"\\}\",\n \"\\\\sqrt\\{\"+string(random(1..9))+letter+\"\\}\",\n string(random(-9,-8,-7,-6,-5,-4,-3-2,2,3,4,5,6,7,8,9)) + letter + \"+\" + string(random(1..9)),\n string(random(-9,-8,-7,-6,-5,-4,-3-2,2,3,4,5,6,7,8,9)) + letter + \"^2+\"+ string(random(1..9)) + letter +\"+\"+string(random(1..9))\n ]", "description": "

[containing an x^(-1) term, hyperbola, surd, linear, quadratic]

", "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}, "q1_ans_array": {"name": "q1_ans_array", "group": "Ungrouped variables", "definition": "[false, false, false, true, true]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["q1_expr_array", "letter", "q1_ans_array"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "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, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["$\\var{latex(q1_expr_array[0])}$", "$\\var{latex(q1_expr_array[1])}$", "$\\var{latex(q1_expr_array[2])}$", "$\\var{latex(q1_expr_array[3])}$", "$\\var{latex(q1_expr_array[4])}$"], "matrix": [[0, "1"], [0, "1"], [0, "1"], ["1", 0], ["1", 0]], "layout": {"type": "all", "expression": ""}, "answers": ["Yes", "No"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "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/"}]}