// Numbas version: exam_results_page_options {"name": "Rectangle area and perimeter", "extensions": [], "custom_part_types": [], "resources": [["question-resources/rectangle_fFSg27v.png", "/srv/numbas/media/question-resources/rectangle_fFSg27v.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["rect", "a", "b", "perimeter", "area"], "name": "Rectangle area and perimeter", "tags": [], "advice": "

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

\n

The area of a rectangle is height x base.

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

What is the perimeter of the rectangle in cm?

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

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

", "integerAnswer": true, "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 rectangle.

\n

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

\n

a = {a} cm

\n

b = {b} cm

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(1..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "perimeter": {"definition": "a+a+b+b", "templateType": "anything", "group": "Ungrouped variables", "name": "perimeter", "description": ""}, "b": {"definition": "random(10..30)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "rect": {"definition": "'rectangle_fFSg27v.png'", "templateType": "anything", "group": "Ungrouped variables", "name": "rect", "description": ""}, "area": {"definition": "a*b", "templateType": "anything", "group": "Ungrouped variables", "name": "area", "description": ""}}, "metadata": {"description": "

Area and perimeter of rectangles

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