// Numbas version: exam_results_page_options {"name": "Test GGB Communication", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "Test GGB Communication", "parts": [{"sortAnswers": false, "prompt": "

Where's the centroid?

\n

\n

\n

$\\bar{x} = $ [[0]]

\n

$\\bar{y} = $ [[1]]  

", "unitTests": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"unitTests": [], "showFeedbackIcon": true, "precision": "1", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReduced": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionPartialCredit": 0, "showPrecisionHint": true, "correctAnswerStyle": "plain", "maxValue": "0", "scripts": {"mark": {"order": "before", "script": "this.settings.maxvalue=this.settings.minvalue=\nnumbasGGBApplet0.getValue(\"x(centroid)\");\n\n"}}, "showCorrectAnswer": true, "correctAnswerFraction": false, "minValue": "0", "type": "numberentry", "mustBeReducedPC": 0, "precisionType": "dp", "marks": "2", "strictPrecision": true, "notationStyles": ["plain", "en", "si-en"]}, {"unitTests": [], "showFeedbackIcon": true, "precision": "1", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReduced": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionPartialCredit": 0, "showPrecisionHint": true, "correctAnswerStyle": "plain", "maxValue": "0", "scripts": {"mark": {"order": "before", "script": "this.settings.maxvalue=this.settings.minvalue=\nnumbasGGBApplet0.getValue(\"y(centroid)\");\n\n"}}, "showCorrectAnswer": true, "correctAnswerFraction": false, "minValue": "0", "type": "numberentry", "mustBeReducedPC": 0, "precisionType": "dp", "marks": "2", "strictPrecision": true, "notationStyles": ["plain", "en", "si-en"]}], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacements": []}], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": ["geogebra"], "functions": {}, "advice": "", "rulesets": {}, "metadata": {"description": "

This question demonstrates sending commands to geogebra and getting geogebra values and using them as part of a marking algorithm.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

{geogebra_applet('um6ck7qc',[['A',A],['B',B],['C',C],['D',D]])}

\n

\n

", "variables": {"C": {"templateType": "anything", "description": "", "definition": "vector(Cx,Ay-Cy)", "name": "C", "group": "Ungrouped variables"}, "By": {"templateType": "anything", "description": "

4

", "definition": "0", "name": "By", "group": "Ungrouped variables"}, "Ax": {"templateType": "anything", "description": "", "definition": "0", "name": "Ax", "group": "Ungrouped variables"}, "D": {"templateType": "anything", "description": "", "definition": "vector(Dx,Dy)", "name": "D", "group": "Ungrouped variables"}, "Dy": {"templateType": "anything", "description": "", "definition": "Ay-Cy", "name": "Dy", "group": "Ungrouped variables"}, "Ay": {"templateType": "anything", "description": "", "definition": "4.88", "name": "Ay", "group": "Ungrouped variables"}, "A": {"templateType": "anything", "description": "", "definition": "vector(Ax,Ay)", "name": "A", "group": "Ungrouped variables"}, "Bx": {"templateType": "anything", "description": "", "definition": "1", "name": "Bx", "group": "Ungrouped variables"}, "Dx": {"templateType": "anything", "description": "", "definition": "0.5", "name": "Dx", "group": "Ungrouped variables"}, "B": {"templateType": "anything", "description": "", "definition": "vector(Bx,By)", "name": "B", "group": "Ungrouped variables"}, "Cx": {"templateType": "anything", "description": "", "definition": "0", "name": "Cx", "group": "Ungrouped variables"}, "Cy": {"templateType": "anything", "description": "", "definition": "5\n", "name": "Cy", "group": "Ungrouped variables"}}, "preamble": {"js": "\n", "css": ""}, "tags": [], "ungrouped_variables": ["A", "B", "C", "D", "Ax", "Ay", "Bx", "By", "Cx", "Cy", "Dx", "Dy"], "type": "question", "contributors": [{"name": "Lars Hansson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/774/"}, {"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}]}], "contributors": [{"name": "Lars Hansson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/774/"}, {"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}