// Numbas version: exam_results_page_options {"name": "Algebra. Procedures. Version 2", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

If a question has more than one answer, increase the number of COLUMNS and list your answers in ASCENDING ORDER.

", "advice": "

See Lecture 3.3 andWorkshop 3.5.

", "rulesets": {}, "variables": {"mult1": {"group": "part a", "templateType": "anything", "definition": "random(2..5)", "name": "mult1", "description": ""}, "sub2": {"group": "part a", "templateType": "anything", "definition": "random(1..5)", "name": "sub2", "description": ""}, "gy": {"group": "part a", "templateType": "anything", "definition": "vector((ymax[0]+add2)^2-sub2,(ymax[1]+add2)^2-sub2,(ymax[2]+add2)^2-sub2,(ymax[3]+add2)^2-sub2)", "name": "gy", "description": ""}, "ymin": {"group": "part a", "templateType": "anything", "definition": "vector(-add2,-add2,-add2,-add2)-shift", "name": "ymin", "description": ""}, "add1": {"group": "part a", "templateType": "anything", "definition": "random(1..7)", "name": "add1", "description": ""}, "fx": {"group": "part a", "templateType": "anything", "definition": "x*mult1+vector(mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1,mult1*add1 - sub1)", "name": "fx", "description": ""}, "x": {"group": "part a", "templateType": "anything", "definition": "vector(shuffle(-4..8)+shuffle(0..6))", "name": "x", "description": ""}, "ymax": {"group": "part a", "templateType": "anything", "definition": "vector(-add2,-add2,-add2,-add2)+shift", "name": "ymax", "description": ""}, "add2": {"group": "part a", "templateType": "anything", "definition": "random(1..5)", "name": "add2", "description": ""}, "shift": {"group": "part a", "templateType": "anything", "definition": "vector(shuffle(2..8 # 3)+[0])", "name": "shift", "description": ""}, "sub1": {"group": "part a", "templateType": "anything", "definition": "random(1..7)", "name": "sub1", "description": ""}}, "parts": [{"variableReplacements": [], "type": "gapfill", "marks": 0, "prompt": "

Consider the following procedure:

\n

Pick a number $\\rightarrow$ add $\\var{add1}$ $\\rightarrow$ multiply by $\\var{mult1}$ $\\rightarrow$ subtract $\\var{sub1}$

\n

\n

If I start with the number $\\var{x[1]}$, what number do I end with? [[0]]

\n

If I end with the number $\\var{fx[2]}$, what number(s) could I start with? [[1]]

\n

If I end with the number $\\var{fx[3]}$, what number(s) could I start with? [[2]]

\n

If I start with the number $a$, what do I end with? [[3]]

\n

", "gaps": [{"variableReplacements": [], "maxValue": "fx[1]", "type": "numberentry", "mustBeReduced": false, "marks": 1, "allowFractions": false, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "unitTests": [], "showFeedbackIcon": true, "minValue": "fx[1]"}, {"variableReplacements": [], "allowResize": true, "type": "matrix", "marks": 1, "allowFractions": false, "tolerance": 0, "markPerCell": false, "correctAnswerFractions": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "numRows": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "numColumns": 1, "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "correctAnswer": "matrix([x[2]])"}, {"variableReplacements": [], "allowResize": true, "type": "matrix", "marks": 1, "allowFractions": false, "tolerance": 0, "markPerCell": false, "correctAnswerFractions": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "numRows": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "numColumns": 1, "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "correctAnswer": "matrix([x[3]])"}, {"variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "marks": 1, "showPreview": true, "checkingAccuracy": 0.001, "checkingType": "absdiff", "checkVariableNames": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "failureRate": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "answer": "{mult1}*a+{mult1*add1-sub1}", "answerSimplification": "all", "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "expectedVariableNames": [], "unitTests": [], "showFeedbackIcon": true}], "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "unitTests": [], "showFeedbackIcon": true}, {"variableReplacements": [], "type": "gapfill", "marks": 0, "prompt": "

Consider the following procedure:

\n

Pick a number $\\rightarrow$ add $\\var{add2}$ $\\rightarrow$ square $\\rightarrow$ subtract $\\var{sub2}$

\n

\n

If I start with the number $\\var{ymax[0]}$, what number do I end with? [[0]]

\n

If I start with the number $\\var{ymin[1]}$, what number do I end with? [[1]]

\n

If I end with the number $\\var{gy[2]}$, what number(s) could I start with?

\n

[[2]]

\n

\n

If I end with the number $\\var{gy[3]}$, what number(s) could I start with?

\n

[[3]]

\n

\n

If I start with the number $p$, what do I end with? [[4]]

\n

Solve the equation $(d+\\var{add2})^2 - \\var{sub2} = \\var{gy[0]}$.

\n

[[5]]

", "gaps": [{"variableReplacements": [], "maxValue": "gy[0]", "type": "numberentry", "mustBeReduced": false, "marks": "1", "allowFractions": false, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "unitTests": [], "showFeedbackIcon": true, "minValue": "gy[0]"}, {"variableReplacements": [], "maxValue": "gy[1]", "type": "numberentry", "mustBeReduced": false, "marks": "1", "allowFractions": false, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "unitTests": [], "showFeedbackIcon": true, "minValue": "gy[1]"}, {"variableReplacements": [], "allowResize": true, "type": "matrix", "marks": 1, "allowFractions": false, "tolerance": 0, "markPerCell": false, "correctAnswerFractions": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "numRows": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "numColumns": "1", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "correctAnswer": "matrix([ymin[2],ymax[2]])"}, {"variableReplacements": [], "allowResize": true, "type": "matrix", "marks": 1, "allowFractions": false, "tolerance": 0, "markPerCell": false, "correctAnswerFractions": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "numRows": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "numColumns": "1", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "correctAnswer": "matrix([ymin[3]])"}, {"variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "marks": 1, "showPreview": true, "checkingAccuracy": 0.001, "checkingType": "absdiff", "checkVariableNames": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "failureRate": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "answer": "(p+{add2})^2 - {sub2}", "answerSimplification": "all", "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "expectedVariableNames": [], "unitTests": [], "showFeedbackIcon": true}, {"variableReplacements": [], "allowResize": true, "type": "matrix", "marks": 1, "allowFractions": false, "tolerance": 0, "markPerCell": false, "correctAnswerFractions": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "numRows": 1, "scripts": {}, "extendBaseMarkingAlgorithm": true, "numColumns": "1", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "correctAnswer": "matrix([ymin[0],ymax[0]])"}], "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "unitTests": [], "showFeedbackIcon": true}], "name": "Algebra. Procedures. Version 2", "tags": [], "preamble": {"js": "", "css": ""}, "ungrouped_variables": [], "metadata": {"description": "

Simple procedures are given and student is asked to carry them out or un-do them.

\n

Version 1: bi and bii have the same answer. biii and biv both have two answers.

\n

Version 2: bi and bii have different answers. biii has two answers, biv has one answer.

\n

Version 3: bi and bii have different answer. biii has one answer, biv has two answers.

\n

Version 4: bi and bii have the same answer. biii has one answer, biv has two answers.

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {"eqnline": {"type": "html", "parameters": [["m", "number"], ["c", "number"]], "definition": "// This functions plots a cubic with a certain number of\n// stationary points and roots.\n// It creates the board, sets it up, then returns an\n// HTML div tag containing the board.\n\n\n// Max and min x and y values for the axis.\nvar x_min = -6;\nvar x_max = 6;\nvar y_min = -20;\nvar y_max = 20;\n\n\n// First, make the JSXGraph board.\nvar div = Numbas.extensions.jsxgraph.makeBoard(\n '500px',\n '600px',\n {\n boundingBox: [x_min,y_max,x_max,y_min],\n axis: false,\n showNavigation: true,\n grid: true\n }\n);\n\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \n\n// create the x-axis and y-axis\nvar xaxis = board.create('axis',[[0,0],[1,0]]);\n\n// create the y-axis\nvar yaxis = board.create('axis',[[0,0],[0,1]], );\n\n\n\n\n// Plot the function.\n board.create('functiongraph',\n [function(x){ return m*x+c},x_min,x_max]);\n\n\n\nreturn div;", "language": "javascript"}}, "variable_groups": [{"variables": ["add1", "mult1", "sub1", "x", "fx", "add2", "sub2", "ymax", "ymin", "shift", "gy"], "name": "part a"}], "extensions": ["jsxgraph"], "type": "question", "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}