// Numbas version: finer_feedback_settings {"name": "Link a GeoGebra object to a part's answer", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Link a GeoGebra object to a part's answer", "tags": [], "metadata": {"description": "
This question demonstrates how to link a GeoGebra object to the answer to a part.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(-2..2 except 0)", "description": "", "templateType": "anything"}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-2..2 except 0)", "description": "", "templateType": "anything"}, "lines_app": {"name": "lines_app", "group": "Ungrouped variables", "definition": "geogebra_applet(800,500,\n [\n \"A\": vector(0,0),\n \"l1\": [\n \"definition\": \"Line(({x},0),({x},1))\",\n \"label_visible\": false\n ],\n \"l2\": [\n \"definition\": \"Line((0,{y}),(1,{y}))\",\n \"label_visible\": false\n ]\n ],\n [\n [\"A\",\"p0\"]\n ]\n)", "description": "The applet for the first part, where the student must find the point of intersection of lines $x = \\var{x}$ and $y = \\var{y}$
", "templateType": "anything"}, "width": {"name": "width", "group": "Ungrouped variables", "definition": "random(1..height-1)", "description": "", "templateType": "anything"}, "height": {"name": "height", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "area": {"name": "area", "group": "Ungrouped variables", "definition": "width*height", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y", "lines_app", "width", "height", "area"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{lines_app}
\nWhat is the point of intersection of the lines $x = \\var{x}$ and $y=\\var{y}$?
\nEnter the coordinates or move the point on the diagram above.
", "correctAnswer": "matrix([[x],[y]])", "correctAnswerFractions": false, "numRows": "2", "numColumns": 1, "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{geogebra_applet('https://www.geogebra.org/calculator/yms47z6u',[],[[\"area\",\"p1\"]])}
\nWhat is the area of a rectangle with side lengths {width} and {height}? Drag the points on the diagram above to form the rectangle, and the area will be written below.
", "minValue": "area", "maxValue": "area", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "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/"}]}