// Numbas version: exam_results_page_options {"name": "Identifying points on a graph", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Identifying points on a graph", "statement": "", "advice": "

The correct answers are obtained as follows.

\n

The point $A$ is distance $\\var{a}$ from the origin in the horizontal direction (positive is to the right and negative is to the left), so its $x$-coordinate is $\\var{a}$.

\n

The point $A$ is distance $\\var{b}$ from the origin in the vertical direction (positive is upwards and negative is downwards), so its $y$-coordinate is $\\var{b}$.

\n

The point $B$ is distance $\\var{c}$ from the origin in the horizontal direction (positive is to the right and negative is to the left), so its $x$-coordinate is $\\var{c}$.

\n

The point $B$ is distance $\\var{d}$ from the origin in the vertical direction (positive is upwards and negative is downwards), so its $y$-coordinate is $\\var{d}$.

\n

The point $C$ is distance $\\var{ee}$ from the origin in the horizontal direction (positive is to the right and negative is to the left), so its $x$-coordinate is $\\var{ee}$.

\n

The point $C$ is distance $\\var{f}$ from the origin in the vertical direction (positive is upwards and negative is downwards), so its $y$-coordinate is $\\var{f}$.

\n

The point $D$ is distance $\\var{g}$ from the origin in the horizontal direction (positive is to the right and negative is to the left), so its $x$-coordinate is $\\var{g}$.

\n

The point $D$ is distance $\\var{h}$ from the origin in the vertical direction (positive is upwards and negative is downwards), so its $y$-coordinate is $\\var{h}$.

\n

", "parts": [{"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

What are the coordinates of the points $A$-$D$ on the following graph?

\n

Note that all coordinates are whole numbers.

\n

{dragpoint()}

\n

The $x$-coordinate of $A$ is [[0]].

\n

The $y$-coordinate of $A$ is [[1]].

\n

The $x$-coordinate of $B$ is [[2]].

\n

The $y$-coordinate of $B$ is [[3]].

\n

The $x$-coordinate of $C$ is [[4]].

\n

The $y$-coordinate of $C$ is [[5]].

\n

The $x$-coordinate of $D$ is [[6]].

\n

The $y$-coordinate of $D$ is [[7]].

", "type": "gapfill", "unitTests": [], "sortAnswers": false, "marks": 0, "gaps": [{"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "a", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "a", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "b", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "b", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "c", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "c", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "d", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "d", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "ee", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "ee", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "f", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "f", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "g", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "g", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}, {"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "minValue": "h", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "maxValue": "h", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "unitTests": [], "marks": 1, "correctAnswerStyle": "plain"}]}], "ungrouped_variables": ["a", "b", "c", "d", "ee", "f", "g", "h"], "variablesTest": {"condition": "c<>a and ee<>a and g<>a and ee<>c and g<>c and g<>ee", "maxRuns": 100}, "extensions": ["jsxgraph"], "variables": {"f": {"definition": "random(-10..10)", "name": "f", "description": "

This is the y-coordinate of the third point.

", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"definition": "random(-10..10)", "name": "a", "description": "

This is the x-coordinate of the first point.

", "group": "Ungrouped variables", "templateType": "anything"}, "h": {"definition": "random(-10..10)", "name": "h", "description": "

This is the y-coordinate of the fourth point.

", "group": "Ungrouped variables", "templateType": "anything"}, "g": {"definition": "random(-10..10)", "name": "g", "description": "

This is the x-coordinate of the fourth point.

", "group": "Ungrouped variables", "templateType": "anything"}, "ee": {"definition": "random(-10..10)", "name": "ee", "description": "

This is the x-coordinate of the third point.

", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"definition": "random(-10..10)", "name": "b", "description": "

This is the y-coordinate of the first point.

", "group": "Ungrouped variables", "templateType": "anything"}, "d": {"definition": "random(-10..10)", "name": "d", "description": "

This is the y-coordinate of the second point.

", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"definition": "random(-10..10)", "name": "c", "description": "

This is the x-coordinate of the second point.

", "group": "Ungrouped variables", "templateType": "anything"}}, "preamble": {"js": "", "css": ""}, "rulesets": {}, "metadata": {"description": "

This question allows you to practice identifying points on graphs.

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {"dragpoint": {"definition": "// set up the board\nvar div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-11,11,11,-11],grid:true,withLabel:true});\n\nvar board = div.board;\n\nvar x1 = Numbas.jme.unwrapValue(scope.variables.a);\nvar y1 = Numbas.jme.unwrapValue(scope.variables.b);\nvar x2 = Numbas.jme.unwrapValue(scope.variables.c);\nvar y2 = Numbas.jme.unwrapValue(scope.variables.d);\nvar x3 = Numbas.jme.unwrapValue(scope.variables.ee);\nvar y3 = Numbas.jme.unwrapValue(scope.variables.f);\nvar x4 = Numbas.jme.unwrapValue(scope.variables.g);\nvar y4 = Numbas.jme.unwrapValue(scope.variables.h);\n\nvar e = board.create('point',[10,0],{size:-1,name:'x'});\ne.setProperty({fixed:true});\nvar f = board.create('point',[0,10],{size:-1,name:'y'});\nf.setProperty({fixed:true});\n\nvar a = board.create('point',[x1,y1],{size:5});\na.setProperty({fixed:true});\nvar b = board.create('point',[x2,y2],{size:5});\nb.setProperty({fixed:true});\nvar c = board.create('point',[x3,y3],{size:5});\nc.setProperty({fixed:true});\nvar d = board.create('point',[x4,y4],{size:5});\nd.setProperty({fixed:true});\n\nreturn div;", "parameters": [], "language": "javascript", "type": "html"}}, "tags": [], "variable_groups": [], "type": "question", "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}]}], "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}