// Numbas version: exam_results_page_options {"name": "Q15", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "ungrouped_variables": ["a", "b", "c", "d", "correctAnswer", "Choice1", "Choice2", "Choice3", "choices", "noneofthesemarks", "choicemarks", "marks", "shuffledchoices", "order"], "variable_groups": [], "functions": {}, "extensions": [], "parts": [{"showCellAnswerState": true, "marks": 0, "maxMarks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "displayType": "radiogroup", "shuffleChoices": false, "choices": ["

$y=\\simplify{{shuffledchoices[0]}}$

", "

$y=\\simplify{{shuffledchoices[1]}}$

", "

$y=\\simplify{{shuffledchoices[2]}}$

", "

$y=\\simplify{{shuffledchoices[3]}}$

", "

None of these

"], "customName": "", "type": "1_n_2", "adaptiveMarkingPenalty": 0, "variableReplacementStrategy": "originalfirst", "displayColumns": 0, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "minMarks": 0, "scripts": {}, "useCustomName": false, "matrix": "marks", "unitTests": []}], "advice": "", "preamble": {"js": "", "css": ""}, "name": "Q15", "variablesTest": {"condition": "b*c-d*a<>0\n", "maxRuns": 100}, "variables": {"c": {"definition": "random(1..5)", "description": "", "templateType": "anything", "name": "c", "group": "Ungrouped variables"}, "marks": {"definition": "//marks to award for each choice, then append the marks for \"none of the above\"\n map(choicemarks[j],j,order)+noneofthesemarks", "description": "", "templateType": "anything", "name": "marks", "group": "Ungrouped variables"}, "Choice2": {"definition": "expression(precround(((b-d)/(c-a)),2)+'x+'+precround(((b*c+d*a)/(c-a)),2))", "description": "", "templateType": "anything", "name": "Choice2", "group": "Ungrouped variables"}, "choicemarks": {"definition": "//marks to award for each of the above choices\n [1,0,0,0]", "description": "", "templateType": "anything", "name": "choicemarks", "group": "Ungrouped variables"}, "choices": {"definition": "//choices, apart from \"none of the above\"\n [correctAnswer,Choice1,Choice2,Choice3]", "description": "", "templateType": "anything", "name": "choices", "group": "Ungrouped variables"}, "correctAnswer": {"definition": "expression(precround(((d-b)/(c-a)),2) + 'x+' + precround(((b*c-d*a)/(c-a)),2))", "description": "", "templateType": "anything", "name": "correctAnswer", "group": "Ungrouped variables"}, "d": {"definition": "random(1..7)", "description": "", "templateType": "anything", "name": "d", "group": "Ungrouped variables"}, "b": {"definition": "random(-4..-1)", "description": "", "templateType": "anything", "name": "b", "group": "Ungrouped variables"}, "a": {"definition": "random(-6..-1)", "description": "", "templateType": "anything", "name": "a", "group": "Ungrouped variables"}, "shuffledchoices": {"definition": "//the choice texts, in the shuffled order\n map(choices[j],j,order)", "description": "", "templateType": "anything", "name": "shuffledchoices", "group": "Ungrouped variables"}, "noneofthesemarks": {"definition": "//marks to award for selecting \"none of these\"\n 0", "description": "", "templateType": "anything", "name": "noneofthesemarks", "group": "Ungrouped variables"}, "order": {"definition": "//the order in which to display the choices - pick a random permutation of [0,1,2,3,4]\n deal(4)", "description": "", "templateType": "anything", "name": "order", "group": "Ungrouped variables"}, "Choice1": {"definition": "expression(precround(((b-d)/(c-a)),2) + 'x+' + precround(((b*c-d*a)/(c-a)),2))", "description": "", "templateType": "anything", "name": "Choice1", "group": "Ungrouped variables"}, "Choice3": {"definition": "expression(precround(((b-d)/(a-c)),2)+'x+'+precround(((b*c-d*a)/(a-c)),2))", "description": "", "templateType": "anything", "name": "Choice3", "group": "Ungrouped variables"}}, "tags": [], "statement": "

An equation of the straight line passing through point A ($\\var{a},\\var{b}$)  and point B ($\\var{c},\\var{d}$) is:

", "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}]}]}], "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}]}