// Numbas version: exam_results_page_options {"feedback": {"showtotalmark": true, "showanswerstate": true, "showactualmark": true, "intro": "", "feedbackmessages": [], "advicethreshold": 0, "allowrevealanswer": true}, "showstudentname": true, "duration": 0, "name": "Chapter 1 revision", "metadata": {"licence": "None specified", "description": ""}, "question_groups": [{"pickingStrategy": "all-shuffled", "pickQuestions": 1, "name": "Group", "questions": [{"name": "Ch1:Numerical Input", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "statement": "", "advice": "", "ungrouped_variables": ["m", "c", "d", "h", "w"], "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "variables": {"c": {"description": "", "definition": "random(-10..10 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "h": {"description": "", "definition": "random(-10..10 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything", "name": "h"}, "w": {"description": "", "definition": "random(-10..10 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything", "name": "w"}, "m": {"description": "", "definition": "random(-12..12 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything", "name": "m"}, "d": {"description": "", "definition": "random(-10..10 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}}, "rulesets": {}, "variable_groups": [], "parts": [{"unitTests": [], "variableReplacements": [], "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "maxValue": "{m}{c}^2", "customMarkingAlgorithm": "", "marks": "0.5", "minValue": "{m}{c}^2", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "type": "numberentry", "allowFractions": false, "prompt": "

If $E=mc^2$, $m=\\var{m}$, and $c=\\var{c}$. What is the value of $E$?

"}, {"unitTests": [], "variableReplacements": [], "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "maxValue": "{d}*{h}*{w}", "customMarkingAlgorithm": "", "marks": "0.5", "minValue": "{d}*{h}*{w}", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "type": "numberentry", "allowFractions": false, "prompt": "

If $\\simplify[!constantsFirst]{V=d*h*w}$, $d=\\var{d}$, $w=\\var{w}$, and $h=\\var{h}$. What is the value of $V$?

"}], "functions": {}, "preamble": {"css": "", "js": ""}, "metadata": {"licence": "None specified", "description": ""}, "type": "question"}, {"name": "Ch1:Factorise Monic Quadratic", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "statement": "", "tags": [], "parts": [{"showCorrectAnswer": true, "scripts": {}, "checkVariableNames": false, "checkingType": "absdiff", "failureRate": 1, "vsetRangePoints": 5, "marks": 1, "expectedVariableNames": [], "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

Factorise the following polynomial:
$\\simplify{x^2+({x1}+{x2})x+{x1}{x2}}$

", "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showPreview": true, "answer": "(x+{x1})(x+{x2})", "unitTests": [], "type": "jme"}], "advice": "", "metadata": {"description": "", "licence": "None specified"}, "variables": {"x2": {"group": "Ungrouped variables", "name": "x2", "definition": "random(-9..9 except 0)", "templateType": "anything", "description": ""}, "x1": {"group": "Ungrouped variables", "name": "x1", "definition": "random(-9..9 except 0)", "templateType": "anything", "description": ""}}, "functions": {}, "ungrouped_variables": ["x1", "x2"], "preamble": {"css": "", "js": ""}, "type": "question"}, {"name": "Ch1:Surd Simplification", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "None specified", "description": ""}, "variable_groups": [], "statement": "

Simplify each of the surd expressions. As an example, to enter $\\simplify{11*sqrt(13)}$, type 11*sqrt(13).

", "tags": [], "parts": [{"expectedVariableNames": [], "checkVariableNames": false, "scripts": {}, "unitTests": [], "checkingType": "absdiff", "failureRate": 1, "vsetRangePoints": 5, "marks": "0.5", "variableReplacements": [], "prompt": "

$\\simplify{sqrt({x1}^2*{p1})}$

", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "answer": "{x1}*sqrt({p1})", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "vsetRange": [0, 1], "showPreview": true, "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst"}, {"expectedVariableNames": [], "checkVariableNames": false, "scripts": {}, "unitTests": [], "checkingType": "absdiff", "failureRate": 1, "vsetRangePoints": 5, "marks": "0.5", "variableReplacements": [], "prompt": "

$\\simplify{sqrt({x2}^2/{x3}^2)}$

", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "answer": "{x2}/{x3}", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "vsetRange": [0, 1], "showPreview": true, "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst"}], "advice": "", "variables": {"x2": {"group": "Ungrouped variables", "definition": "random([2,3,5,7,11])", "description": "", "templateType": "anything", "name": "x2"}, "x1": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "x1"}, "x3": {"group": "Ungrouped variables", "definition": "random([2,3,5,7,11] except x2)", "description": "", "templateType": "anything", "name": "x3"}, "p1": {"group": "Ungrouped variables", "definition": "random([2,3,5,7,11])", "description": "", "templateType": "anything", "name": "p1"}}, "functions": {}, "ungrouped_variables": ["x1", "p1", "x2", "x3"], "preamble": {"css": "", "js": ""}, "type": "question"}, {"name": "Ch1:Simplifying Polynomial Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "preamble": {"css": "", "js": ""}, "rulesets": {}, "tags": [], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "", "ungrouped_variables": ["x1", "x2", "x3"], "parts": [{"vsetRangePoints": 5, "variableReplacements": [], "unitTests": [], "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "type": "jme", "showPreview": true, "scripts": {}, "answer": "(x+{x2})/(x+{x3})", "checkingAccuracy": 0.001, "checkVariableNames": false, "showFeedbackIcon": true, "marks": 1, "prompt": "

Simplify the following polynomial fraction:

\n

$\\simplify{(x^2+({x1}+{x2})x+{x1}{x2})/(x^2+({x1}+{x3})x+{x1}{x3})}$

", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": []}], "variable_groups": [], "variables": {"x3": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "x3", "definition": "random(-9..9 except [0,x2])"}, "x2": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "x2", "definition": "random(-9..9 except 0)"}, "x1": {"description": "

x1

", "templateType": "anything", "group": "Ungrouped variables", "name": "x1", "definition": "random(-9..9 except 0)"}}, "metadata": {"description": "", "licence": "None specified"}, "advice": "", "type": "question"}, {"name": "Ch1:Abolute Value Quiz", "extensions": [], "custom_part_types": [{"source": {"pk": 1, "author": {"name": "Christian Lawson-Perfect", "pk": 7}, "edit_page": "/part_type/1/edit"}, "name": "Yes/no", "short_name": "yes-no", "description": "

The student is shown two radio choices: \"Yes\" and \"No\". One of them is correct.

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["Yes", "No"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"Yes\"?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "statement": "

Are the following statements true for any values of $a$ and $b$?

", "rulesets": {}, "ungrouped_variables": [], "preamble": {"css": "", "js": ""}, "advice": "

Parts (a) and (b) are both true.

\n

For parts (c) and (d), substitute $a=-1$ and $b=1$ to see why they are false.

\n

Notice however, that $\\vert a+b\\vert\\leq\\vert a\\vert+\\vert b\\vert$ and $\\vert a-b\\vert\\geq\\vert\\vert a\\vert-\\vert b\\vert\\vert$.

", "parts": [{"settings": {"correct_answer_expr": "true"}, "unitTests": [], "scripts": {}, "prompt": "

$\\vert ab\\vert=\\vert a\\vert\\vert b\\vert$

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "type": "yes-no", "marks": "0.25", "showCorrectAnswer": true}, {"settings": {"correct_answer_expr": "true"}, "unitTests": [], "scripts": {}, "prompt": "

$\\vert \\frac{a}{b}\\vert=\\frac{\\vert a\\vert}{\\vert b\\vert}$ (excluding $b=0$)

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "type": "yes-no", "marks": "0.25", "showCorrectAnswer": true}, {"settings": {"correct_answer_expr": "false"}, "unitTests": [], "scripts": {}, "prompt": "

$\\vert a+b\\vert=\\vert a\\vert+\\vert b\\vert$

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "type": "yes-no", "marks": "0.25", "showCorrectAnswer": true}, {"settings": {"correct_answer_expr": "false"}, "unitTests": [], "scripts": {}, "prompt": "

$\\vert a-b\\vert=\\vert\\vert a\\vert-\\vert b\\vert\\vert$

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "type": "yes-no", "marks": "0.25", "showCorrectAnswer": true}], "functions": {}, "variable_groups": [], "variables": {}, "metadata": {"description": "", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "type": "question"}, {"name": "Ch1:Absolute Value", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "parts": [{"prompt": "

Evaluate the following expression:
$\\vert\\vert\\var{a}\\vert -\\vert\\var{b}\\vert\\vert-\\vert \\var{d}\\times\\vert\\var{c}\\vert\\vert$

", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "minValue": "abs(abs(a)-abs(b))-abs(d*c)", "correctAnswerFraction": false, "marks": 1, "allowFractions": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "mustBeReduced": false, "customMarkingAlgorithm": "", "maxValue": "abs(abs(a)-abs(b))-abs(d*c)", "unitTests": [], "showFeedbackIcon": true, "scripts": {}}], "variables": {"b": {"description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "definition": "random(-50..-1)"}, "d": {"description": "", "group": "Ungrouped variables", "name": "d", "templateType": "anything", "definition": "random(1..5)"}, "a": {"description": "

a

", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "definition": "random(1..50)"}, "c": {"description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything", "definition": "random(-15..15)"}}, "functions": {}, "preamble": {"css": "", "js": ""}, "variable_groups": [], "rulesets": {}, "metadata": {"licence": "None specified", "description": ""}, "statement": "", "ungrouped_variables": ["a", "b", "c", "d"], "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "", "tags": [], "type": "question"}, {"name": "Ch1:Difference of Two Squares Factorisation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "statement": "", "rulesets": {}, "ungrouped_variables": ["a", "b", "x0", "x1", "c"], "preamble": {"css": "", "js": ""}, "advice": "", "parts": [{"unitTests": [], "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "expectedVariableNames": [], "scripts": {"mark": {"script": "var studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\nvar rule = Numbas.jme.compile('m_any( (??)(??x^??+??y^??)(??x^??-??y^??), (??)(??x^??-??y^??)(??x^??+??y^??) )');\n\nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\nif(!m) {\n this.multCredit(0,'Your answer is not in the correct format.');\n}\n//This marking scheme still has some reasonable cases that it misses.", "order": "after"}}, "prompt": "

Factorise the following difference of two squares:

\n

$\\simplify{{c}{x0}^2*x^(2*{a})-{c}{x1}^2*y^(2{b})}$

", "customMarkingAlgorithm": "", "showPreview": true, "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "marks": 1, "type": "jme", "failureRate": 1, "showCorrectAnswer": true, "checkVariableNames": false, "answer": "{c}({x0}x^{a}+{x1}y^{b})({x0}x^{a}-{x1}y^{b})", "vsetRange": [0, 1]}], "functions": {}, "variable_groups": [], "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "name": "b"}, "x1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random([2,3,5,7,11,13] except x0)", "description": "", "name": "x1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "name": "a"}, "x0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random([2,3,5,7,11,13])", "description": "", "name": "x0"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random([1,2,3])", "description": "", "name": "c"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "Ch1:Adding Fractional Terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Thomas Murray", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3019/"}], "parts": [{"showPreview": true, "vsetRange": [0, 1], "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "failureRate": 1, "marks": 1, "type": "jme", "unitTests": [], "prompt": "

Collect all of the terms into one fraction.

\n

$\\simplify[cancelTerms]{({a}x+{b})/{f}+({c}x+{d})/{g}}=?$

", "checkingType": "absdiff", "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "customMarkingAlgorithm": "", "expectedVariableNames": [], "checkVariableNames": false, "answer": "({g}({a}x+{b})+{f}({c}x+{d}))/({f}{g})", "showFeedbackIcon": true, "scripts": {"mark": {"script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// we just want two sets of brackets, each containing two terms\n// or one of the brackets might not have a constant term\n// or for repeated roots, you might write (x+a)^2\nvar rule = Numbas.jme.compile('(??;numerator)/(??;denominator)');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n// If not, take away marks\nif(!m) {\n this.multCredit(0,'You need to enter your question as a single fraction.');\n}", "order": "after"}}}], "functions": {}, "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "rulesets": {}, "metadata": {"licence": "None specified", "description": ""}, "variable_groups": [], "variables": {"b": {"description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "definition": "random(-9..9 except 0)"}, "f": {"description": "", "group": "Ungrouped variables", "name": "f", "templateType": "anything", "definition": "random(-9..9 except [0,1,-1])"}, "d": {"description": "", "group": "Ungrouped variables", "name": "d", "templateType": "anything", "definition": "random(-9..9 except 0)"}, "a": {"description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "definition": "random(-9..9 except [0,-1])"}, "c": {"description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything", "definition": "random(-9..9 except [0,-1])"}, "g": {"description": "", "group": "Ungrouped variables", "name": "g", "templateType": "anything", "definition": "random(-9..9 except [0,1,-1])"}}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g"], "advice": "", "statement": "", "type": "question"}, {"name": "Ch1: Binomial product", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Dave Robertson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2807/"}], "parts": [{"vsetRangePoints": 5, "checkingAccuracy": 0.001, "type": "jme", "prompt": "

Expand and simplify $\\simplify{({a}x+{b})({c}x+{d})}$

", "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "vsetRange": [0, 1], "checkVariableNames": false, "extendBaseMarkingAlgorithm": true, "answer": "{a}{c}x^2 +({a}{d}+{b}{c})x+{b}{d}", "failureRate": 1, "showPreview": true, "expectedVariableNames": [], "marks": 1, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "answerSimplification": "!cancelTerms", "scripts": {}}], "rulesets": {}, "tags": [], "ungrouped_variables": ["a", "b", "c", "d"], "metadata": {"description": "", "licence": "None specified"}, "functions": {}, "advice": "", "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "variables": {"c": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "c", "definition": "random(-9..9 except 0)"}, "d": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "d", "definition": "random(-9..9 except 0)"}, "b": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b", "definition": "random(-9..9 except 0)"}, "a": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a", "definition": "random(-9..9 except 0)"}}, "statement": "", "type": "question"}, {"name": "Ch1: Collect like terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Dave Robertson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2807/"}], "statement": "", "parts": [{"unitTests": [], "showPreview": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "jme", "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "expectedVariableNames": [], "vsetRange": [0, 1], "marks": 1, "checkingAccuracy": 0.001, "failureRate": 1, "showFeedbackIcon": true, "checkingType": "absdiff", "prompt": "

Simplify $\\simplify[!cancelTerms]{{a}x+{b}x+{c}y}$

", "showCorrectAnswer": true, "checkVariableNames": false, "answer": "({a}+{b})x+{c}y"}], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(-9..9 except 0)"}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(-9..9 except 0)"}, "b": {"name": "b", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(-9..9 except 0)"}}, "variable_groups": [], "metadata": {"description": "", "licence": "None specified"}, "tags": [], "advice": "", "preamble": {"js": "", "css": ""}, "functions": {}, "rulesets": {}, "ungrouped_variables": ["a", "b", "c"], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question"}]}], "percentPass": "50", "timing": {"allowPause": true, "timedwarning": {"message": "", "action": "none"}, "timeout": {"message": "", "action": "none"}}, "showQuestionGroupNames": false, "navigation": {"showresultspage": "oncompletion", "browse": true, "onleave": {"message": "", "action": "none"}, "reverse": true, "showfrontpage": true, "allowregen": true, "preventleave": true}, "type": "exam", "contributors": [{"name": "Dave Robertson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2807/"}], "extensions": [], "custom_part_types": [{"source": {"pk": 1, "author": {"name": "Christian Lawson-Perfect", "pk": 7}, "edit_page": "/part_type/1/edit"}, "name": "Yes/no", "short_name": "yes-no", "description": "

The student is shown two radio choices: \"Yes\" and \"No\". One of them is correct.

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["Yes", "No"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"Yes\"?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": []}