// Numbas version: exam_results_page_options {"name": "Eukleides circle inside a circle", "extensions": ["eukleides"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "rulesets": {}, "name": "Eukleides circle inside a circle", "parts": [{"useCustomName": false, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "gaps": [{"useCustomName": false, "scripts": {}, "correctAnswerStyle": "plain", "precision": "1", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 1, "extendBaseMarkingAlgorithm": true, "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "precisionType": "dp", "strictPrecision": false, "correctAnswerFraction": false, "precisionPartialCredit": 0, "showPrecisionHint": true, "maxValue": "(pi*r^2)-(pi*(r/2)^2)", "showFeedbackIcon": true, "customName": "", "minValue": "(pi*r^2)-(pi*(r/2)^2)", "variableReplacements": [], "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "mustBeReduced": false}], "prompt": "

What is the area of the shaded region?

\n

[[0]]

", "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "customName": "", "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "type": "gapfill"}], "functions": {}, "statement": "

{max_width(20,diagram)}

", "variables": {"diagram": {"definition": "eukleides(\"Circle inside a circle\",[\n let(\n C1,circle(point(0,0),2) filled opacity(0.5) gray\n ),\n let(\n A,point(1,0)\n ,B,point(2,0)\n ,C2,circle(A,1) filled white\n ),\n let(\n A,point(0.1,0)\n ,B,point(2,0)\n ,A..B dashed arrows\n )\n ,point(0,0)\n ,point(1,0.2) text(string(r))\n],[\"r\":r])", "group": "Ungrouped variables", "name": "diagram", "description": "", "templateType": "anything"}, "r": {"definition": "random(2..5)", "group": "Ungrouped variables", "name": "r", "description": "", "templateType": "anything"}, "advice_diagram": {"definition": "eukleides(\"Individual circles\",[\n let(\n C1,circle(point(0,0),2) filled opacity(0.5) gray\n ),\n let(\n A,point(4,0)\n ,B,point(2,0)\n ,C2,circle(A,1) \n ),\n let(\n A,point(0.1,0)\n ,B,point(2,0)\n ,A..B dashed arrows\n )\n let(\n A,point(3,0)\n ,B,point(5,0)\n ,A..B dashed arrows\n )\n ,point(0,0)\n ,point(4,0.2) text(string(r))\n ,point(1,0.2) text(string(r))\n],[\"r\":r])", "group": "Ungrouped variables", "name": "advice_diagram", "description": "", "templateType": "anything"}}, "ungrouped_variables": ["r", "advice_diagram", "diagram"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Basic example of the Eukleides extension"}, "extensions": ["eukleides"], "advice": "

{max_width(30,advice_diagram)}

\n

The larger circle has radius {r}. Therefore its area is $\\pi r^2 = \\pi(\\var{r})^2$.

\n

The smaller circle has diameter {r}, so radius {r/2}. Its area is therefore $\\pi(\\var{r/2})^2$.

\n

The shaded area is therefore

\n

\\[ \\pi(\\var{r})^2 - \\pi(\\var{r/2})^2 = \\var{dpformat(pi*r^2-pi*(r/2)^2,1)}\\text{.}\\]

", "variable_groups": [], "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}]}], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}