// Numbas version: exam_results_page_options {"name": "2.5.1 Task 3", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/HELM2_4_1fig24.PNG", "/srv/numbas/media/question-resources/HELM2_4_1fig24.PNG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "2.5.1 Task 3", "tags": [], "metadata": {"description": "

Find the gradients of 3 lines. Part of HELM Book 2.5.1.

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

State the gradients of the following lines:

", "advice": "

When the line is written in the form $y=ax+b$, the constant $a$ is the gradient.

", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"diagram1": {"name": "diagram1", "group": "Ungrouped variables", "definition": "jessiecode(\n 250,250,[-0.5,29, 6,-2],\n \"\"\"\n A= point(0,3) <> >>;\n B=point(5,23) <> >>;\n \n side_a = line(A,B);\n \n x=text(5.7,-1,\"x\"); // no idea how to get axis labels otherwise...\n y=text(-0.3,28,\"y\");\n \n \"\"\",\n [\n \"axis\": true\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "diagram2": {"name": "diagram2", "group": "Ungrouped variables", "definition": "jessiecode(\n 250,250,[-3,15, 3,-10],\n \"\"\"\n A= point(0,-3) <>,color:\"black\" >>;\n B=point(2,5) <>,color:\"black\" >>;\n line1 = line(A,B) <>;\n \n C= point(0,0) <>,color:\"blue\" >>;\n D=point(2,8) <>,color:\"blue\" >>;\n line1 = line(C,D) <>;\n \n E= point(0,5) <>,color:\"red\" >>;\n F=point(2,13) <>,color:\"red\" >>;\n line1 = line(E,F) <>;\n \n x=text(2.7,-2,\"x\"); // no idea how to get axis labels otherwise...\n y=text(-0.4,14,\"y\");\n \n \"\"\",\n [\n \"axis\": true\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "[random(1..9),\n random(1..9),\n 1/random(2..9),\n 1/random(2..9),\n random(1..9),\n random(1..9),\n random(-9..9 except 0)\n ]", "description": "

constants for task 2

", "templateType": "anything", "can_override": false}, "diagram3": {"name": "diagram3", "group": "Ungrouped variables", "definition": "jessiecode(\n 250,250,[-3,15, 3,-10],\n \"\"\"\n A= point(0,3) <>,color:\"black\" >>;\n B=point(1,6) <>,color:\"black\" >>;\n line1 = line(A,B) <>;\n \n C= point(0,3) <>,color:\"blue\" >>;\n D=point(1,8) <>,color:\"blue\" >>;\n line1 = line(C,D) <>;\n \n E= point(0,3) <>,color:\"red\" >>;\n F=point(1,1) <>,color:\"red\" >>;\n line1 = line(E,F) <>;\n \n x=text(2.7,-2,\"x\"); // no idea how to get axis labels otherwise...\n y=text(-0.4,14,\"y\");\n \n \"\"\",\n [\n \"axis\": true\n ]\n)", "description": "

Diagram for Example 12

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "[\n random(2..9),\n random(1..9),\n 1/random(2..9),\n random(1..9),\n random(1..9),\n random(2..9),\n random(1..9)\n ]", "description": "

constants for task 3

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["diagram1", "diagram2", "c", "diagram3", "d"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

(a) $y=\\var{d[0]}x+\\var{d[1]},\\qquad$ gradient = [[0]]

\n

(b) $y=-\\var{expression(string(d[2]))}x+\\var{d[3]},\\qquad$ gradient = [[1]]

\n

(c) $\\displaystyle{y=\\frac{\\var{d[6]}x+\\var{d[4]}}{\\var{d[5]}}  },\\qquad$ gradient = [[2]]

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

In each case the coefficient of $x$ must be examined.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "(a)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{d[0]}", "maxValue": "{d[0]}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "(b)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-{d[2]}", "maxValue": "-{d[2]}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "(c)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{d[6]/d[5]}", "maxValue": "{d[6]/d[5]}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "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/"}]}