// Numbas version: exam_results_page_options {"name": "Identifying a point 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 a point on a graph", "statement": "", "advice": "

The correct answers are obtained as follows.

\n

The point 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 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

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

What are the coordinates of the point A on the following graph?

\n

Note that both coordinates are whole numbers.

\n

{dragpoint()}

\n

The \$x\$-coordinate is [[0]].

\n

The \$y\$-coordinate is [[1]].

", "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"}]}], "ungrouped_variables": ["a", "b"], "variablesTest": {"condition": "a<>0 or b<>0", "maxRuns": 100}, "extensions": ["jsxgraph"], "variables": {"a": {"definition": "random(-10..10)", "name": "a", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"definition": "random(-10..10)", "name": "b", "description": "", "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 x = Numbas.jme.unwrapValue(scope.variables.a);\nvar y = Numbas.jme.unwrapValue(scope.variables.b);\n\nvar a = board.create('point',[x,y],{size:5});\na.setProperty({fixed:true});\nvar b = board.create('point',[10,0],{size:-1,name:'x'});\nb.setProperty({fixed:true});\nvar c = board.create('point',[0,10],{size:-1,name:'y'});\nc.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/"}]}