// Numbas version: exam_results_page_options {"name": "Area and perimeter of triangles", "extensions": [], "custom_part_types": [], "resources": [["question-resources/triangle_Al1hBKj.png", "/srv/numbas/media/question-resources/triangle_Al1hBKj.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["tri", "f", "g", "h", "perimeter", "area"], "name": "Area and perimeter of triangles", "tags": [], "advice": "

The perimeter of a shape is the lengths of all the sides added together. This is an isosceles triangle, so both of the sides pointing up are equal.

\n

The area of a triangle is $\\frac{1}{2}$ x base x height.

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

What is the perimeter of the triangle 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 triangle 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 an isosceles triangle.

\n

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

\n

f = {f} cm

\n

g = {g} cm

\n

h = {h} cm

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"tri": {"definition": "'triangle_Al1hBKj.png'", "templateType": "anything", "group": "Ungrouped variables", "name": "tri", "description": ""}, "perimeter": {"definition": "f+g+g", "templateType": "anything", "group": "Ungrouped variables", "name": "perimeter", "description": ""}, "g": {"definition": "random(15..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(4..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "random(10..15 except g)", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "area": {"definition": "0.5*f*h", "templateType": "anything", "group": "Ungrouped variables", "name": "area", "description": ""}}, "metadata": {"description": "

Area and perimeter of triangles.

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