// Numbas version: exam_results_page_options {"name": "Merryn's copy of Formula for area or perimeter", "extensions": ["random_person"], "custom_part_types": [], "resources": [["question-resources/handball_court.png", "/srv/numbas/media/question-resources/handball_court.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Merryn's copy of Formula for area or perimeter", "tags": [], "metadata": {"description": "

The dimensions of a rectangle are given in m and cm. Compute the area or perimeter.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{name1} and {name2} were asked by their teacher to measure the school's rectangular handball court and work out the {quantity}.

\n

{name1} measured the length in metres, but {name2} measured the width in centimetres.

\n

\n

", "advice": "

{advice}

", "rulesets": {}, "extensions": ["random_person"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n{\\n\\\"qn\\\":\\\"Which formula can be applied to their measurements to correctly give the area of the handball court in square metres?\\\",\\n\\\"quant\\\":\\\"area\\\",\\n\\\"ans\\\":\\\"Area = length x (width \u00f7 100)\\\",\\n\\\"dis1\\\":\\\"Area = length x width\\\",\\n\\\"dis2\\\":\\\"Area = length x (width x 100)\\\",\\n\\\"dis3\\\":\\\"Area = 2 x length + 2 x width \u00f7 100\\\",\\n\\\"adv\\\":\\\"The answer is to be given in square metres, so the width needs to be converted from centimetres to metres by dividing by 100.
The area of any rectangle is found by multiplying the length by the width.
So Area = length x (width \u00f7 100) is the correct formula.
Note that multiplication and division have equal priority in the order of operations, so the position of the brackets does not make a difference to the answer in this question.
Therefore other possible correct formulae include Area = length x width \u00f7 100 and Area = (length x width) \u00f7 100.\\\"\\n},\\n{\\n\\\"qn\\\":\\\"Which formula can be applied to their measurements to correctly give the perimeter of the handball court in centimetres?\\\",\\n\\\"quant\\\":\\\"perimeter\\\",\\n\\\"ans\\\":\\\"Perimeter = 2 x (length x 100 + width)\\\",\\n\\\"dis1\\\":\\\"Perimeter = 2 x length \u00f7 100 + 2 x width\\\",\\n\\\"dis2\\\":\\\"Perimeter = 2 x (length \u00f7 100 + width)\\\",\\n\\\"dis3\\\":\\\"Perimeter = 2 x width x (length x 100)\\\",\\n\\\"adv\\\":\\\"The answer is to be given in centimetres, so the length needs to be converted from metres to centimetres by multiplying by 100.
The perimeter of any rectangle is found by adding the length and the width, then doubling this result.
So Perimeter = 2 x (length x 100 + width) is the correct formula.
The brackets are necessary to ensure that the length and width are added together before the doubling takes place.
Note that the length and width could be each doubled first, then added together.
Therefore other possible correct formulae are Perimeter = 2 x length x 100 + 2 x width and Perimeter = (2 x length x 100) + (2 x width).\\\"\\n}\\n]\"))", "description": "", "templateType": "json", "can_override": false}, "scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "", "templateType": "anything", "can_override": false}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "scenario[\"qn\"]", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "scenario[\"ans\"]", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "scenario[\"adv\"]", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "scenario[\"dis1\"]", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "scenario[\"dis2\"]", "description": "", "templateType": "anything", "can_override": false}, "d3": {"name": "d3", "group": "Ungrouped variables", "definition": "scenario[\"dis3\"]", "description": "", "templateType": "anything", "can_override": false}, "people": {"name": "people", "group": "Ungrouped variables", "definition": "random_people(2)", "description": "", "templateType": "anything", "can_override": false}, "person1": {"name": "person1", "group": "Ungrouped variables", "definition": "people[1]", "description": "", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "person1[\"name\"]", "description": "", "templateType": "anything", "can_override": false}, "name2": {"name": "name2", "group": "Ungrouped variables", "definition": "person2[\"name\"]", "description": "", "templateType": "anything", "can_override": false}, "person2": {"name": "person2", "group": "Ungrouped variables", "definition": "people[0]", "description": "", "templateType": "anything", "can_override": false}, "quantity": {"name": "quantity", "group": "Ungrouped variables", "definition": "scenario[\"quant\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "question", "quantity", "answer", "d1", "d2", "d3", "advice", "people", "person1", "person2", "name1", "name2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{question}

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["{answer}", "{d1}", "{d2}", "{d3}"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}