// Numbas version: exam_results_page_options {"name": "Equation of a straight line: using 2 points on the line", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "d", "m", "b1"], "name": "Equation of a straight line: using 2 points on the line", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "

$y=\\;$  [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

answer should contain fractions.

", "showStrings": true, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "({b}-{d})/({a}-{c})*x+ ({a}*{d}-{b}*{c})/({a}-{c})", "marks": 1, "checkvariablenames": true, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Find the equation of the straight line that passes through the ponts, $(\\var{a}, \\var{b})$ and $(\\var{c}, \\var{d})$ in the form $y=mx+b$

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(1..5 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(1..5 except b)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "m": {"definition": "({b}-{d})/({a}-{c})", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "b1": {"definition": "({a}*{d}-{b}*{c})/({a}-{c})", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}}, "metadata": {"notes": "

Equation of a straight line.

", "description": "

Obtain the equation of a straight line that passes through 2 points.

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