// Numbas version: exam_results_page_options {"name": "Calculating gradient 2", "extensions": [], "custom_part_types": [], "resources": [["question-resources/dydx.png", "/srv/numbas/media/question-resources/dydx.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculating gradient 2", "ungrouped_variables": ["a", "b", "c", "d", "ans1", "ans2"], "variables": {"a": {"group": "Ungrouped variables", "definition": "random(-20..20)", "name": "a", "templateType": "anything", "description": ""}, "ans1": {"group": "Ungrouped variables", "definition": "(d-b)/(c-a)", "name": "ans1", "templateType": "anything", "description": ""}, "d": {"group": "Ungrouped variables", "definition": "random(-20..20 except b)", "name": "d", "templateType": "anything", "description": ""}, "b": {"group": "Ungrouped variables", "definition": "random(-20..20)", "name": "b", "templateType": "anything", "description": ""}, "c": {"group": "Ungrouped variables", "definition": "random(-20..20)", "name": "c", "templateType": "anything", "description": ""}, "ans2": {"group": "Ungrouped variables", "definition": "b-ans1*a", "name": "ans2", "templateType": "anything", "description": ""}}, "advice": "

Gradient is calculated as:

\n

$\\frac{\\text{difference in }y}{\\text{difference in }x}$

", "tags": [], "functions": {}, "rulesets": {}, "extensions": [], "preamble": {"css": "", "js": ""}, "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Calculating gradients

"}, "statement": "", "parts": [{"correctAnswerFraction": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "

A line passes through 2 points: $(\\var{a}$,$\\var{b})$ and $(\\var{c}$,$\\var{d})$

\n

What is the Gradient of the line that passes through these two points?

", "minValue": "ans1", "mustBeReducedPC": 0, "maxValue": "ans1", "variableReplacements": [], "marks": 1, "correctAnswerStyle": "plain", "allowFractions": true, "scripts": {}, "showCorrectAnswer": true, "mustBeReduced": false, "type": "numberentry"}, {"scripts": {}, "marks": 0, "gaps": [{"correctAnswerFraction": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "minValue": "ans1", "mustBeReducedPC": 0, "maxValue": "ans1", "variableReplacements": [], "marks": 1, "correctAnswerStyle": "plain", "allowFractions": true, "scripts": {}, "showCorrectAnswer": true, "mustBeReduced": false, "type": "numberentry"}, {"correctAnswerFraction": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "minValue": "ans2", "mustBeReducedPC": 0, "maxValue": "ans2", "variableReplacements": [], "marks": 1, "correctAnswerStyle": "plain", "allowFractions": true, "scripts": {}, "showCorrectAnswer": true, "mustBeReduced": false, "type": "numberentry"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "

What is the equation of the line that passes through these two points?

\n

y = [[0]]x + [[1]]

", "type": "gapfill", "showCorrectAnswer": true}], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}