// Numbas version: exam_results_page_options {"name": "Volume of a swimming pool", "extensions": [], "custom_part_types": [], "resources": [["question-resources/pool_TB2Lho6.svg", "/srv/numbas/media/question-resources/pool_TB2Lho6.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "statement": "

Alex visited a swimming pool. The length of the pool is {length} metres.

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Work out the volume of a prism with a trapezium cross-section.

"}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"variableReplacementStrategy": "originalfirst", "marks": 0, "unitTests": [], "prompt": "

Alex swims a total of {total_distance_string}.

\n

How many lengths did Alex swim?

\n

[[0]] lengths

", "showCorrectAnswer": true, "sortAnswers": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 1, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "type": "numberentry", "maxValue": "num_lengths", "unitTests": [], "minValue": "num_lengths", "variableReplacements": [], "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "variableReplacements": [], "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "customMarkingAlgorithm": "", "type": "information", "prompt": "

Here is a sketch of the swimming pool.

\n

", "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "unitTests": []}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "unitTests": [], "prompt": "

Work out the cross section of the pool.

\n

[[0]] m2

", "showCorrectAnswer": true, "sortAnswers": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 1, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "type": "numberentry", "maxValue": "cross_section", "unitTests": [], "minValue": "cross_section", "variableReplacements": [], "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "variableReplacements": [], "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "unitTests": [], "prompt": "

Work out the capacity of the pool in litres.

\n

(1 m3 = 1000 litres)

\n

[[0]] litres

", "showCorrectAnswer": true, "sortAnswers": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 1, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "type": "numberentry", "maxValue": "volume*1000", "unitTests": [], "minValue": "volume*1000", "variableReplacements": [], "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "variableReplacements": [], "scripts": {}}], "functions": {}, "preamble": {"css": "", "js": ""}, "variables": {"cross_section": {"group": "Ungrouped variables", "description": "

The cross-section of the pool - the area of the trapezium face.

", "definition": "(depth2+depth1)*length/2", "name": "cross_section", "templateType": "anything"}, "num_lengths": {"group": "Ungrouped variables", "description": "

Number of lengths Alex swims

", "definition": "random(10..100)", "name": "num_lengths", "templateType": "anything"}, "total_distance_string": {"group": "Ungrouped variables", "description": "", "definition": "if(total_distance>=1000, total_distance/1000+' kilometres',total_distance+' metres')", "name": "total_distance_string", "templateType": "anything"}, "depth2": {"group": "Ungrouped variables", "description": "", "definition": "depth1+random(2..5)", "name": "depth2", "templateType": "anything"}, "volume": {"group": "Ungrouped variables", "description": "

The volume of the pool, in m3

", "definition": "cross_section*width", "name": "volume", "templateType": "anything"}, "length": {"group": "Ungrouped variables", "description": "", "definition": "random(25,50)", "name": "length", "templateType": "anything"}, "depth1": {"group": "Ungrouped variables", "description": "", "definition": "random(2..5)", "name": "depth1", "templateType": "anything"}, "total_distance": {"group": "Ungrouped variables", "description": "

Total distance Alex swims

", "definition": "length*num_lengths", "name": "total_distance", "templateType": "anything"}, "width": {"group": "Ungrouped variables", "description": "", "definition": "random(10..50#5)", "name": "width", "templateType": "anything"}}, "advice": "", "type": "question", "ungrouped_variables": ["length", "width", "depth1", "depth2", "num_lengths", "total_distance", "total_distance_string", "cross_section", "volume"], "rulesets": {}, "extensions": [], "name": "Volume of a swimming pool", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}