// 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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b"], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "description": "", "definition": "random(-10..10)", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "description": "", "definition": "random(-10..10)", "templateType": "anything"}}, "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

", "preamble": {"js": "", "css": ""}, "statement": "

This question asks you to identify a point on a graph.

", "functions": {"dragpoint": {"language": "javascript", "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": [], "type": "html"}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question asks you to identify a point on a graph.

"}, "name": "Identifying a point on a graph", "tags": [], "rulesets": {}, "extensions": ["jsxgraph"], "variablesTest": {"condition": "a<>0 or b<>0", "maxRuns": 100}, "parts": [{"showCorrectAnswer": true, "variableReplacements": [], "customMarkingAlgorithm": "", "sortAnswers": false, "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]].

", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "unitTests": [], "marks": 0, "gaps": [{"showCorrectAnswer": true, "correctAnswerFraction": false, "variableReplacements": [], "maxValue": "a", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "scripts": {}, "mustBeReduced": false, "allowFractions": false, "type": "numberentry", "minValue": "a", "unitTests": [], "marks": "0.5", "notationStyles": ["plain", "en", "si-en"]}, {"showCorrectAnswer": true, "correctAnswerFraction": false, "variableReplacements": [], "maxValue": "b", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "scripts": {}, "mustBeReduced": false, "allowFractions": false, "type": "numberentry", "minValue": "b", "unitTests": [], "marks": "0.5", "notationStyles": ["plain", "en", "si-en"]}]}], "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/"}]}