// Numbas version: exam_results_page_options {"name": "Fady's copy of Drag points to given Cartesian coordinates", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Move the points to the required coordinates on the graph.

Drag points on a graph to the given Cartesian coordinates. There are points in each of the four quadrants and on each axis.

{dragpoints()}

\n

Move the points as follows:

\n

A to $(\\var{a1},\\var{a2})$.

", "variableReplacements": []}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.b.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "marks": 0, "type": "gapfill", "gaps": [{"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{b1}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{b1}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}, {"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{b2}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{b2}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacementStrategy": "originalfirst", "prompt": "

B to $(\\var{b1},\\var{b2})$.

\n

", "variableReplacements": []}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.c.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "marks": 0, "type": "gapfill", "gaps": [{"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{c1}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{c1}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}, {"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{c2}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{c2}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacementStrategy": "originalfirst", "prompt": "

C to $(\\var{c1},\\var{c2})$.

\n

", "variableReplacements": []}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.d.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "marks": 0, "type": "gapfill", "gaps": [{"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{d1}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{d1}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}, {"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{d2}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{d2}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacementStrategy": "originalfirst", "prompt": "

D to $(\\var{d1},\\var{d2})$.

\n

", "variableReplacements": []}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.e.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});", "order": "after"}}, "marks": 0, "type": "gapfill", "gaps": [{"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{e1}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{e1}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}, {"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{e2}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{e2}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacementStrategy": "originalfirst", "prompt": "

E to $(\\var{e1},\\var{e2})$.

", "variableReplacements": []}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.f.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});", "order": "after"}}, "marks": 0, "type": "gapfill", "gaps": [{"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{f1}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{f1}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}, {"type": "numberentry", "allowFractions": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{f2}", "scripts": {}, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "maxValue": "{f2}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacementStrategy": "originalfirst", "prompt": "

F to $(\\var{f1},\\var{f2})$.

\n

Coordinates are given as $(x\\text{-coordinate},y\\text{-coordinate})$. So, for example $(2,5)$ has $x$-coordinate $= 2$ and $y$-coordinate$= 5$.
Plot the first coordinate ($x$-coordinate) against the horizontal axis and then plot the second coordinate ($y$-coordinate) against the vertical axis.