// Numbas version: finer_feedback_settings {"name": "Equation of Straight Line & Parallel line through given point.", "extensions": [], "custom_part_types": [], "resources": [["question-resources/graph1.png", "/srv/numbas/media/question-resources/graph1.png"], ["question-resources/graph2.png", "/srv/numbas/media/question-resources/graph2.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["q", "p", "c"], "name": "Equation of Straight Line & Parallel line through given point.", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Recall that the equation of a straight line will have the form $y=mx+c$, where $m$ is the gradient and $(0,c)$ is the point where the line crosses the $y$ axis -- this is often called the $y$ intercept.

\n

You can read off both the gradient and the $y$ intercept from the graph shown.

\n

Parallel lines have the same gradient.

\n

", "rulesets": {}, "parts": [{"vsetrangepoints": 5, "prompt": "

Write down the equation of this line.

", "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "y=-x-2", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "prompt": "

Write down the equation of a line which is parallel to the one shown and that passes through the point ({p},{q}).

", "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "y=-x+{c}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "extensions": [], "statement": "

The graph below shows a straight line.

\n

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"q": {"definition": "random(1..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random( 1..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "c": {"definition": "p+q", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}}, "metadata": {"description": "

Finding equation of a straight line graph and a parallel line through a given point.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}