// Numbas version: exam_results_page_options {"name": "Pyramid volume", "extensions": [], "custom_part_types": [], "resources": [["question-resources/square_based_pyramid_pOX5FsT.png", "/srv/numbas/media/question-resources/square_based_pyramid_pOX5FsT.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["py", "x", "y", "volume"], "name": "Pyramid volume", "tags": [], "advice": "

The volume of pyramids and cones is:

\n

$\\frac{1}{3} x base area x height

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

What is the volume of the pyramid in cm$^3$?

", "allowFractions": false, "variableReplacements": [], "maxValue": "{volume}+0.1", "minValue": "{volume}-0.1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "

The diagram below shows a square-based pyramid.

\n

{image('resources/question-resources/'+py)}

\n

x = {x} cm

\n

y = {y} cm

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"y": {"definition": "random(5..25)", "templateType": "anything", "group": "Ungrouped variables", "name": "y", "description": ""}, "x": {"definition": "random(1..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "x", "description": ""}, "py": {"definition": "'square_based_pyramid_pOX5FsT.png'", "templateType": "anything", "group": "Ungrouped variables", "name": "py", "description": ""}, "volume": {"definition": "(1/3)*(x*x)*y", "templateType": "anything", "group": "Ungrouped variables", "name": "volume", "description": ""}}, "metadata": {"description": "

Volume of pyramids (also works for cones)

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}