// Numbas version: exam_results_page_options {"name": "Identifying a point on a graph", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "allowregen": true, "showfrontpage": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question allows you to practice identifying points on graphs.

"}, "functions": {"dragpoint": {"language": "javascript", "type": "html", "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": []}}, "extensions": ["jsxgraph"], "variablesTest": {"maxRuns": 100, "condition": "a<>0 or b<>0"}, "type": "question", "statement": "", "ungrouped_variables": ["a", "b"], "parts": [{"sortAnswers": false, "gaps": [{"marks": 1, "minValue": "a", "showFeedbackIcon": true, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "mustBeReducedPC": 0, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "mustBeReduced": false, "maxValue": "a", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": ""}, {"marks": 1, "minValue": "b", "showFeedbackIcon": true, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "mustBeReducedPC": 0, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "mustBeReduced": false, "maxValue": "b", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": ""}], "marks": 0, "showFeedbackIcon": true, "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "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]].

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": ""}], "variable_groups": [], "variables": {"a": {"definition": "random(-10..10)", "name": "a", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"definition": "random(-10..10)", "name": "b", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "name": "Identifying a point on a graph", "preamble": {"js": "", "css": ""}, "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

", "tags": [], "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/"}]}