// Numbas version: exam_results_page_options {"name": "Area and perimeter of trapeziums", "extensions": [], "custom_part_types": [], "resources": [["question-resources/trapezium_59YJGks.png", "/srv/numbas/media/question-resources/trapezium_59YJGks.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["trap", "p", "q", "r", "s", "t", "perimeter", "area"], "name": "Area and perimeter of trapeziums", "tags": [], "advice": "

The perimeter of a shape is the lengths of all the sides added together.

\n

The area of a trapezium is $\\frac{p+t}{2}$ x height (q).

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

What is the perimeter of the trapezium in cm?

", "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{perimeter}", "minValue": "{perimeter}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

What is the area of the trapezium in cm$^2$?

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

The diagram below shows a trapezium.

\n

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

\n

p = {p} cm

\n

q = {q} cm

\n

r = {r} cm

\n

s = {s} cm

\n

t = {t} cm

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"perimeter": {"definition": "r+t+s+p", "templateType": "anything", "group": "Ungrouped variables", "name": "perimeter", "description": ""}, "area": {"definition": "((p+t)/2)*q", "templateType": "anything", "group": "Ungrouped variables", "name": "area", "description": ""}, "q": {"definition": "random (5..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(5..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "s": {"definition": "random(r-1,r,r-2)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "r": {"definition": "random(3..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "trap": {"definition": "'trapezium_59YJGks.png'", "templateType": "anything", "group": "Ungrouped variables", "name": "trap", "description": ""}, "t": {"definition": "p-3", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}}, "metadata": {"description": "

Area and perimeter of trapeziums

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