// Numbas version: finer_feedback_settings {"name": "Question 1 Basic what is x", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["x", "b", "a"], "name": "Question 1 Basic what is x", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

In this question you have to remember that R can overwrite the assignment of variables.

\n

Line 1 assigns $x=\\var{x}$.

\n

In line 2 R reassigns $x$ as the solution to the equation using $x=\\var{x}$ from line 1. Thus $x=\\simplify[basic,!collectnumbers]{{a}*{x}+{b}}$, which gives $x=\\var{a*x+b}$.

", "rulesets": {}, "parts": [{"distractors": ["", "", "", ""], "prompt": "

What is the value of $x$?

", "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "scripts": {}, "choices": ["

{a*x+b}

", "

{x}

", "

{x+1}

", "

{a*x}

"], "displayType": "radiogroup", "maxMarks": "1", "marks": 0, "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": "0"}], "statement": "
> x = {x} 
> x = {a}*x+{b}
> x
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..10#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "a", "description": ""}, "x": {"definition": "random(2..20#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "x", "description": ""}, "b": {"definition": "random(2..16#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}]}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}