// Numbas version: exam_results_page_options {"name": "Lois's copy (Calculate capacity of cuboid, given its dimensions)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/volume-of-a-cuboid.jpg", "/srv/numbas/media/question-resources/volume-of-a-cuboid.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["dim", "h", "b", "l", "cap", "capl"], "name": "Lois's copy (Calculate capacity of cuboid, given its dimensions)", "tags": ["cpacaity", "litres", "units", "volume", "Volume"], "preamble": {"css": "", "js": ""}, "advice": "

To convert each length from $mm$ to $cm$  you need to divide by 10.

\n

The capacity (volume) of the tank in $cm^3$ is then given by $\\var{h} \\times \\var{b} \\times \\var{l} = \\var{cap} cm^3$.

\n

1 litre = 1000 $cm^3$, so the capacity of the tank in litres is $ \\dfrac{ \\var{cap}}{1000} = \\var{capl} litres. $

\n

Note that you need to round both of these answers before submitting them.

\n

\n

\n

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

What is the capacity of the rectangular oil tank in $cm^3$?

\n

Give your answer to 1 d.p.

\n

[[0]]$cm^3$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{cap}+0.05", "strictPrecision": false, "minValue": "{cap}-0.05", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "1", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

What is the capacity of the tank in litres, to the nearest litre?

\n

[[0]] litres.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{capl}+0.5", "minValue": "{capl}-0.5", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

\n

The oil tank shown above has the dimensions $h=\\var{dim[0]}mm, b=\\var{dim[1]}mm$ and $ l=\\var{dim[2]}mm$.

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "capl>400"}, "variables": {"dim": {"definition": "shuffle(550..850#25)[0..3]", "templateType": "anything", "group": "Ungrouped variables", "name": "dim", "description": ""}, "b": {"definition": "dim[1]/10", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "h": {"definition": "dim[0]/10", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "cap": {"definition": "h*b*l", "templateType": "anything", "group": "Ungrouped variables", "name": "cap", "description": ""}, "l": {"definition": "dim[2]/10", "templateType": "anything", "group": "Ungrouped variables", "name": "l", "description": ""}, "capl": {"definition": "cap/1000\n", "templateType": "anything", "group": "Ungrouped variables", "name": "capl", "description": ""}}, "metadata": {"description": "

Given lengths in mm, find capacity in cm^3 and litres.

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