// Numbas version: exam_results_page_options {"name": "NCPreCal U1L1 Distance, Midpoint and Slope given two points", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "extensions": ["geogebra"], "advice": "", "functions": {}, "variables": {"slope": {"definition": "rational_approximation((b[1]-a[1])/(b[0]-a[0]))", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "slope"}, "midpoint": {"definition": "vector((a[0]+b[0])/2,(a[1]+b[1])/2)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "midpoint"}, "b": {"definition": "vector(random(-10..10 except a[0]), random(-10..10 except a[1]))", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "distance": {"definition": "sqrt((a[0]-b[0])^2+(a[1]-b[1])^2)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "distance"}, "a": {"definition": "vector(random(-10..10),random(-10..10))", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "yint": {"definition": "rational_approximation(a[1]-slope[0]*a[0]/slope[1])", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "yint"}}, "statement": "

Given:  The two points in the coordinate plane below.

\n

\n

{geogebra_applet('https://www.geogebra.org/m/xgc879dg',[ ['A',a], ['B',b] ])}

", "ungrouped_variables": ["a", "b", "distance", "midpoint", "slope", "yint"], "rulesets": {}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "parts": [{"correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 1, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "customName": "", "type": "numberentry", "precisionType": "dp", "showPrecisionHint": true, "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "mustBeReduced": false, "precision": "2", "variableReplacements": [], "maxValue": "{distance}", "useCustomName": false, "unitTests": [], "showCorrectAnswer": true, "minValue": "{distance}", "prompt": "

(a) FIND the distance between points A and B.

", "strictPrecision": false, "extendBaseMarkingAlgorithm": true, "precisionPartialCredit": "50"}, {"customMarkingAlgorithm": "", "scripts": {}, "variableReplacementStrategy": "originalfirst", "gaps": [{"correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 1, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "customName": "", "type": "numberentry", "precisionType": "dp", "showPrecisionHint": true, "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "mustBeReduced": false, "precision": "2", "variableReplacements": [], "maxValue": "midpoint[0]", "useCustomName": false, "unitTests": [], "showCorrectAnswer": true, "minValue": "midpoint[0]", "strictPrecision": false, "extendBaseMarkingAlgorithm": true, "precisionPartialCredit": "50"}, {"correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 1, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "customName": "", "type": "numberentry", "precisionType": "dp", "showPrecisionHint": true, "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "mustBeReduced": false, "precision": "2", "variableReplacements": [], "maxValue": "midpoint[1]", "useCustomName": false, "unitTests": [], "showCorrectAnswer": true, "minValue": "midpoint[1]", "strictPrecision": false, "extendBaseMarkingAlgorithm": true, "precisionPartialCredit": 0}], "marks": 0, "variableReplacements": [], "sortAnswers": false, "useCustomName": false, "unitTests": [], "showFeedbackIcon": true, "customName": "", "prompt": "

(b) FIND the midpoint of points A and B.

\n

([[0]],[[1]])

", "showCorrectAnswer": true, "type": "gapfill", "extendBaseMarkingAlgorithm": true}, {"correctAnswerFraction": true, "notationStyles": ["plain", "en", "si-en"], "customName": "", "variableReplacementStrategy": "originalfirst", "marks": 1, "mustBeReducedPC": "50", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "scripts": {}, "type": "numberentry", "allowFractions": true, "customMarkingAlgorithm": "", "mustBeReduced": true, "variableReplacements": [], "maxValue": "slope[0]/slope[1]", "showFractionHint": true, "useCustomName": false, "unitTests": [], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "prompt": "

(c) FIND the slope of the line that passes through points A and B.

", "minValue": "slope[0]/slope[1]"}, {"customMarkingAlgorithm": "", "scripts": {}, "variableReplacementStrategy": "originalfirst", "gaps": [{"correctAnswerFraction": true, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "customName": "", "variableReplacementStrategy": "originalfirst", "useCustomName": false, "marks": 1, "mustBeReduced": true, "variableReplacements": [], "mustBeReducedPC": "50", "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "maxValue": "slope[0]/slope[1]", "unitTests": [], "showFeedbackIcon": true, "minValue": "slope[0]/slope[1]", "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "allowFractions": true, "extendBaseMarkingAlgorithm": true}, {"correctAnswerFraction": true, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "customName": "", "variableReplacementStrategy": "originalfirst", "useCustomName": false, "marks": 1, "mustBeReduced": true, "variableReplacements": [], "mustBeReducedPC": "50", "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "maxValue": "yint[0]/yint[1]", "unitTests": [], "showFeedbackIcon": true, "minValue": "yint[0]/yint[1]", "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "allowFractions": true, "extendBaseMarkingAlgorithm": true}], "marks": 0, "variableReplacements": [], "sortAnswers": false, "useCustomName": false, "unitTests": [], "showFeedbackIcon": true, "customName": "", "prompt": "

(d) FIND the equation of the line that passes through the points A and B.

\n

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

", "showCorrectAnswer": true, "type": "gapfill", "extendBaseMarkingAlgorithm": true}], "metadata": {"description": "", "licence": "All rights reserved"}, "name": "NCPreCal U1L1 Distance, Midpoint and Slope given two points", "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}