// 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": [{"variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"volume": {"description": "

The volume of the pool, in m3

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

Number of lengths Alex swims

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

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

", "templateType": "anything", "definition": "(depth2+depth1)*length/2", "name": "cross_section", "group": "Ungrouped variables"}, "width": {"description": "", "templateType": "anything", "definition": "random(10..50#5)", "name": "width", "group": "Ungrouped variables"}, "total_distance": {"description": "

Total distance Alex swims

", "templateType": "anything", "definition": "length*num_lengths", "name": "total_distance", "group": "Ungrouped variables"}, "depth1": {"description": "", "templateType": "anything", "definition": "random(2..5)", "name": "depth1", "group": "Ungrouped variables"}}, "tags": [], "name": "Volume of a swimming pool", "advice": "", "statement": "

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

", "variable_groups": [], "metadata": {"description": "

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

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "ungrouped_variables": ["length", "width", "depth1", "depth2", "num_lengths", "total_distance", "total_distance_string", "cross_section", "volume"], "preamble": {"js": "", "css": ""}, "parts": [{"showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 0, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "gaps": [{"showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "customMarkingAlgorithm": "", "minValue": "num_lengths", "maxValue": "num_lengths", "scripts": {}, "correctAnswerFraction": false, "extendBaseMarkingAlgorithm": true, "allowFractions": false, "mustBeReducedPC": 0, "type": "numberentry", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "correctAnswerStyle": "plain"}], "type": "gapfill", "unitTests": [], "sortAnswers": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

Alex swims a total of {total_distance_string}.

\n

How many lengths did Alex swim?

\n

[[0]] lengths

"}, {"showCorrectAnswer": true, "type": "information", "customMarkingAlgorithm": "", "marks": 0, "scripts": {}, "prompt": "

Here is a sketch of the swimming pool.

\n

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

Work out the cross section of the pool.

\n

[[0]] m2

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

Work out the capacity of the pool in litres.

\n

(1 m3 = 1000 litres)

\n

[[0]] litres

"}], "extensions": [], "rulesets": {}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}