// Numbas version: exam_results_page_options {"name": "Algebra: straight line, definition of equation and gradient", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Algebra: straight line, definition of equation and gradient", "tags": [], "metadata": {"description": "

(a) Equation given, and five coordinates. Student should select those coordinates which lie on the line. (b) Gradient and a point on line is given. Student is to calculate coordinates of other points on the line.

", "licence": "None specified"}, "statement": "", "advice": "

See ??

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"yb": {"name": "yb", "group": "Ungrouped variables", "definition": "xb*mb+vector(cb,cb,cb,cb)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "[(a3-a1*x[0])/a2,\n (a3-a1*x[1])/a2,\n (a3-a1*x[2])/a2+random(-1..1 except 0),\n (a3-a1*x[3])/a2+random(-1..1 except 0)]", "description": "", "templateType": "anything", "can_override": false}, "cb": {"name": "cb", "group": "Ungrouped variables", "definition": "random(4..8)*100+random(1..9)*10+random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "mb": {"name": "mb", "group": "Ungrouped variables", "definition": "random(-5..5 except ([-1,0,1]))", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "shuffle(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(1..2)*random(-1..1#2)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(1..3)*a1+random(1..3)*a2", "description": "", "templateType": "anything", "can_override": false}, "xb": {"name": "xb", "group": "Ungrouped variables", "definition": "vector([xb0,\n xb0+1,\n xb0+random(2..5)*0.01,\n xb0-random(2..5)*0.1])", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(3..9)", "description": "", "templateType": "anything", "can_override": false}, "xb0": {"name": "xb0", "group": "Ungrouped variables", "definition": "random(2..4)*10+random(1..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "x", "y", "mb", "cb", "xb0", "xb", "yb"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "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 straight line has equation $\\simplify{{a1}x+{a2}y={a3}}$. Which of the following coordinates lie on the line?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": "2", "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["

$(\\var{x[0]}, \\var{y[0]})$

", "

$(\\var{x[1]}, \\var{y[1]})$

", "

$(\\var{x[2]}, \\var{y[2]})$

", "

$(\\var{x[3]}, \\var{y[3]})$

"], "matrix": ["0.5", "0.5", "-1", "-1"], "distractors": ["", "", "", ""]}, {"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 straight line has gradient $\\var{mb}$ and goes through the coordinate $(\\var{xb[0]},\\var{yb[0]})$.  It is easiest to answer these questions using the `visual definition' of gradient.  Do not try to calculate the equation of the line.

\n

(i) $A$ is a point on the line and has coordinates $(\\var{xb[1]},a)$. What is $a$? [[0]]

\n

(ii) $B$ is a point on the line and its $x$-coordinate is $\\var{xb[2]}$. What is its $y$-coordinate. [[1]]

\n

(iii) $C$ is on the line and its $x$-coordinate is $\\var{xb[3]}$. What is its $y$-coordinate. [[2]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "yb[1]", "maxValue": "yb[1]", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "yb[2]", "maxValue": "yb[2]", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "yb[3]", "maxValue": "yb[3]", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}, {"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}]}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}, {"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}