// Numbas version: exam_results_page_options {"name": "Kwame's copy of 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": [{"advice": "", "metadata": {"description": "
Work out the volume of a prism with a trapezium cross-section.
", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "extensions": [], "tags": [], "functions": {}, "name": "Kwame's copy of Volume of a swimming pool", "ungrouped_variables": ["length", "width", "depth1", "depth2", "num_lengths", "total_distance", "total_distance_string", "cross_section", "volume"], "variables": {"cross_section": {"group": "Ungrouped variables", "description": "The cross-section of the pool - the area of the trapezium face.
", "templateType": "anything", "name": "cross_section", "definition": "(depth2+depth1)*length/2"}, "depth2": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "depth2", "definition": "depth1+random(2..5)"}, "length": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "length", "definition": "random(25,50)"}, "width": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "width", "definition": "random(10..50#5)"}, "total_distance_string": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "total_distance_string", "definition": "if(total_distance>=1000, total_distance/1000+' kilometres',total_distance+' metres')"}, "total_distance": {"group": "Ungrouped variables", "description": "Total distance Alex swims
", "templateType": "anything", "name": "total_distance", "definition": "length*num_lengths"}, "num_lengths": {"group": "Ungrouped variables", "description": "Number of lengths Alex swims
", "templateType": "anything", "name": "num_lengths", "definition": "random(10..100)"}, "depth1": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "depth1", "definition": "random(2..5)"}, "volume": {"group": "Ungrouped variables", "description": "The volume of the pool, in m3
", "templateType": "anything", "name": "volume", "definition": "cross_section*width"}}, "type": "question", "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "parts": [{"sortAnswers": false, "prompt": "Alex swims a total of {total_distance_string}.
\nHow many lengths did Alex swim?
\n[[0]] lengths
", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "gaps": [{"allowFractions": false, "maxValue": "num_lengths", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "minValue": "num_lengths", "showFeedbackIcon": true, "marks": 1, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "mustBeReduced": false, "scripts": {}}], "marks": 0, "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}}, {"prompt": "Here is a sketch of the swimming pool.
\n", "marks": 0, "unitTests": [], "type": "information", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "scripts": {}, "showFeedbackIcon": true}, {"sortAnswers": false, "prompt": "Work out the cross section of the pool.
\n[[0]] m2
", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "gaps": [{"allowFractions": false, "maxValue": "cross_section", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "minValue": "cross_section", "showFeedbackIcon": true, "marks": 1, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "mustBeReduced": false, "scripts": {}}], "marks": 0, "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}}, {"sortAnswers": false, "prompt": "Work out the capacity of the pool in litres.
\n(1 m3 = 1000 litres)
\n[[0]] litres
", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "gaps": [{"allowFractions": false, "maxValue": "volume*1000", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "minValue": "volume*1000", "showFeedbackIcon": true, "marks": 1, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "mustBeReduced": false, "scripts": {}}], "marks": 0, "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}}], "rulesets": {}, "statement": "Alex visited a swimming pool. The length of the pool is {length} metres.
", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Kwame D Dwamena", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/81/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Kwame D Dwamena", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/81/"}]}