// Numbas version: exam_results_page_options {"name": "Equations of straight lines MCQ", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

All but one of the straight lines above follow the general formula $y=mx+c$ where $m$ is a constant denoting the gradient of a line and $c$ is a constant denting the $y$-intercept of a line. 

\n

The gradient (given by $m$), indicates the slope of a straight line. Where this is positive, the $y$-coordinate along the line increases by $m$ for every increase in the value of $x$ by $1$. For example, $y=3x$ indicates that for every increase in the value of $x$ by $1$, the value of $y$ increases by $3$. Where there is no $m$ (i.e. $y=c$), the line is straight and horizontal as the value of $y$ has no dependence on the value of $x$.

\n

The $y$-intercept (given by $c$), indicates the point where the line passes through the $y$-axis. If the line equation has no $c$ (i.e. $y=mx$), the line has a $y$ intercept of $0$ (passing through the origin).

\n

We can use our knowledge of the slope of the line and the $y$-intercept to then judge which points on the graph correspond to which equations.

\n

A:

\n

$y=\\simplify{{m1}x+{c1}}$  gives us $m=\\var{m1}$ and $c=\\var{c1}$.

\n

B:

\n

$y=\\simplify{{m2}x+{c2}}$  gives us $m=\\var{m2}$ and $c=\\var{c2}$.

\n

C:

\n

$y=\\simplify{{m3}x+{c3}}$  gives us $m=\\var{m3}$ and $c=\\var{c3}$.

\n

D:

\n

$y=\\simplify{{c4}}$  gives us $m=0$ and $c=\\var{c1}$.

\n

E:

\n

$x=\\var{c5}$  is the exception to the $y=mx+c$ form of writing straight line equations. This equation gives a value for $x$ independent of the value of $y$ so a straight, vertical line is formed at the $x$-coordinate $\\var{c5}$.

", "statement": "

Identify the equations which relate to the different functions displayed on the graph bellow.

\n

{geogebra_applet('WuavQqEG',[[\"m1\",m1],[\"m2\",m2],[\"m3\",m3],[\"c1\",c1],[\"c2\",c2],[\"c3\",c3],[\"c4\",c4],[\"c5\",c5],[\"f1\",f1],[\"d1\",d1],[\"a1\",a1],[\"b1\",b1]])}

\n

", "variables": {"cpar": {"name": "cpar", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(500..750)"}, "m1": {"name": "m1", "group": "Gradient", "templateType": "anything", "description": "", "definition": "random(1..2#0.1)"}, "c4": {"name": "c4", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(3..6)"}, "c5": {"name": "c5", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(14..17)"}, "cfake": {"name": "cfake", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(-8..-3)"}, "m3": {"name": "m3", "group": "Gradient", "templateType": "anything", "description": "", "definition": "random(-2..-1#0.1)"}, "a1": {"name": "a1", "group": "Point variables(removed)", "templateType": "anything", "description": "", "definition": "30"}, "c3": {"name": "c3", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(1..5)"}, "c10": {"name": "c10", "group": "Point variables(removed)", "templateType": "anything", "description": "", "definition": "-30/m3"}, "m2": {"name": "m2", "group": "Gradient", "templateType": "anything", "description": "", "definition": "m1"}, "b1": {"name": "b1", "group": "Point variables(removed)", "templateType": "anything", "description": "", "definition": "25"}, "c2": {"name": "c2", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(15..20)"}, "c1": {"name": "c1", "group": "intercept", "templateType": "anything", "description": "", "definition": "random(-10..-5)"}, "f1": {"name": "f1", "group": "Point variables(removed)", "templateType": "anything", "description": "", "definition": "-40"}, "mfake": {"name": "mfake", "group": "Gradient", "templateType": "anything", "description": "", "definition": "random(-4..-1)"}, "d1": {"name": "d1", "group": "Point variables(removed)", "templateType": "anything", "description": "", "definition": "60"}}, "tags": ["graph", "graphs", "Multiple choice", "Multiple Choice", "multiple choice", "straight lines", "taxonomy"], "ungrouped_variables": [], "functions": {}, "name": "Equations of straight lines MCQ", "preamble": {"js": "", "css": ""}, "extensions": ["geogebra"], "type": "question", "variable_groups": [{"variables": ["m1", "m2", "m3", "mfake"], "name": "Gradient"}, {"variables": ["c1", "c2", "c3", "c4", "c5", "cfake", "cpar"], "name": "intercept"}, {"variables": ["a1", "b1", "c10", "d1", "f1"], "name": "Point variables(removed)"}], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "

Match up equations with the corresponding lines on a graph.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"variableReplacements": [], "maxMarks": 0, "minMarks": 0, "minAnswers": 0, "answers": ["

$A_0$

", "

$B_0$

", "

$C_0$

", "

$D_0$

", "

$E_0$

", "

None of these

"], "displayType": "radiogroup", "warningType": "none", "layout": {"expression": "", "type": "all"}, "choices": ["

$y=\\simplify{{m1}x+{c1}}$

", "

$y=\\simplify{{m2}x+{c2}}$

", "

$y=\\simplify{{m3}x+{c3}}$

", "

$y=\\var{c4}$

", "

$x=\\var{c5}$

", "

$y=\\simplify{{mfake}x+{cfake}}$

"], "scripts": {}, "showCorrectAnswer": true, "type": "m_n_x", "maxAnswers": 0, "shuffleChoices": true, "marks": 0, "prompt": "

Use the graph above to match the correct line to each equation.

", "matrix": [["1", 0, 0, 0, 0, 0], [0, "1", 0, 0, 0, 0], [0, 0, "1", 0, 0, 0], [0, 0, 0, "1", 0, 0], [0, 0, 0, 0, "1", 0], [0, 0, 0, 0, 0, "1"]], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "shuffleAnswers": false}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}]}