// Numbas version: finer_feedback_settings {"name": "Volume & Surface Area of Cylinder", "extensions": [], "custom_part_types": [], "resources": [["images/Cuboid.png", "/srv/numbas/media/images/Cuboid.png"], ["images/Triangular-prism.png", "/srv/numbas/media/images/Triangular-prism.png"], ["images/Cylinder.png", "/srv/numbas/media/images/Cylinder.png"], ["images/Hemisphere.png", "/srv/numbas/media/images/Hemisphere.png"], ["images/Frustrum.png", "/srv/numbas/media/images/Frustrum.png"], ["images/Frustrumtop.png", "/srv/numbas/media/images/Frustrumtop.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "l", "hyp", "r"], "name": "Volume & Surface Area of Cylinder", "tags": [], "advice": "

Recall that the formula for the volume, $V$, of a cylinder is given by $V= \\pi r^2h$, where $r$ is the radius of the cicrular end and $h$, the height (or length) of the cylinder.

\n

The area of the curved surface of the cylinder is given by $2 \\pi rh$. (To see why this is, imagine unwrapping the surface.) The total surface area, $S$, is found by adding on the area of the two circular ends and so is given by $S=2 \\pi r h + 2 \\pi r^2$.

\n

Note that the question gives you the diameter not the radius.

\n

", "rulesets": {}, "parts": [{"prompt": "

\n

A cylinder with diameter $\\var{2c}$cm and length $\\var{a+5}$cm.

\n

Surface area: [[0]] cm$^2$

\n

Volume: [[1]] cm$^3$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "2*pi*{c}*({a}+{c}+5)", "minValue": "6.28*{c}*({a}+{c}+5)", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": "1", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": 0, "maxValue": "pi*{c}^2*({a}+5)", "minValue": "3.14*{c}^2*({a}+5)", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 2, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Calculate the volume and surface area of this solid cylinder.

\n

Give your answers correct to 2 decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(b+1..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(b+1..10 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(1..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(5..12 #0.1)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "l": {"definition": "sqrt((2b+8)^2+r^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "l", "description": ""}, "hyp": {"definition": "sqrt((b+2)^2+(c-1)^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "hyp", "description": ""}, "r": {"definition": "(d-1.1)/2", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}}, "metadata": {"description": "

Finding surface area and volume; formulae not given.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}