// Numbas version: exam_results_page_options {"name": "Volume & Surface Area of Cylinder (with formulae)", "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 (with formulae)", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

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

\n

Make sure that you enter the correct calculation into your calculator.

\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": [{"allowFractions": false, "variableReplacements": [], "maxValue": "2*pi*{c}*({a}+{c}+5)+0.1", "minValue": "6.28*{c}*({a}+{c}+5)-0.1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "1", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "pi*{c}^2*({a}+5)+0.1", "minValue": "3.14*{c}^2*({a}+5)-0.1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "1", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

If $r$ is the radius of the circular end, and $h$ the height (or length) of a solid cylinder then the formulae for the volume, $V$, and surface area, $S$, are:

\n

$V=\\pi r^2h$

\n

$S= 2 \\pi r^2 + 2 \\pi rh$.

\n

Calculate the volume and surface area of the solid cylinder shown below.

\n

Give your answers correct to 2 decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "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, given formulae.

", "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/"}]}