// Numbas version: exam_results_page_options {"name": "Mark a part as correct if the student moves a point to the right position", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Mark a part as correct if the student moves a point to the right position", "tags": [], "metadata": {"description": "

The student is shown a GeoGebra worksheet containing a single point on a grid. They must move the point to the required coordinates.

\n

The part is marked as correct if the point is in the right position.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "variables": {"app": {"name": "app", "group": "Ungrouped variables", "definition": "geogebra_applet(\n 800,500,\n [\n \"A\": [\n \"definition\": vector(0,0),\n \"label_visible\": false\n ]\n ],\n [\n [\"A\", \"p0\"]\n ]\n)", "description": "", "templateType": "anything"}, "target_position": {"name": "target_position", "group": "Ungrouped variables", "definition": "vector(\n random(-2..2 except 0),\n random(-2..2 except 0)\n)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["app", "target_position"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n value(app,\"A\")\n\nmark:\n feedback(\"The point is at $\"+latex(app,'A')+\"$.\");\n correctif(pos=target_position)\n\ninterpreted_answer:\n pos", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{app}

\n

Move the point to $\\var[rowvector]{target_position}$.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}