// Numbas version: exam_results_page_options {"metadata": {"licence": "None specified", "description": ""}, "duration": 0, "showstudentname": true, "name": "Maths refresher self diagnostic test 1", "question_groups": [{"pickQuestions": 1, "name": "Group", "pickingStrategy": "all-ordered", "questions": [{"name": "Temperature arithmetic", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This question tests ability to calculate differences using negative numbers in context.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"rise": {"name": "rise", "group": "Ungrouped variables", "definition": "random(9..19 except 10)", "description": "", "templateType": "anything", "can_override": false}, "stockholm": {"name": "stockholm", "group": "Ungrouped variables", "definition": "random(-15..-2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["stockholm", "rise"], "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": "

The temperature in Stockholm is $\\var{stockholm}^\\circ\\mbox{C}$. In Plymouth, it is $\\var{rise}^\\circ\\mbox{C}$ warmer. What is the temperature in Plymouth?

\n

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

$\\simplify{{stockholm}-{rise}}^\\circ\\mbox{C}$

", "

$\\simplify{{stockholm}+2*{rise}}^\\circ\\mbox{C}$

", "

$\\simplify{{stockholm}+{rise}}^\\circ\\mbox{C}$

", "

$\\var{rise}^\\circ\\mbox{C}$

"], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Rounding to a whole number_to_delete", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This question tests ability to calculate differences using negative numbers in context.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"round_me": {"name": "round_me", "group": "Ungrouped variables", "definition": "random(1..19)+random(1..9)/10+random(1..9)/100", "description": "", "templateType": "anything", "can_override": false}, "rounded_number": {"name": "rounded_number", "group": "Ungrouped variables", "definition": " precround(round_me, 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["round_me", "rounded_number"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Round $\\var{round_me}$ to the nearest whole number.

\n

Answer: [[0]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "rounded_number", "maxValue": "rounded_number", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Arithmetic with squares_to_delete", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"base_2": {"name": "base_2", "group": "Ungrouped variables", "definition": "random(2..9 except base_1)", "description": "", "templateType": "anything", "can_override": false}, "base_1": {"name": "base_1", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["base_1", "base_2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_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": "

Work out $\\var{base_1}^2+\\var{base_2}^2$.

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["

$\\simplify{{base_1}^2}$

", "

$\\simplify{{base_1}^2+{base_2}}$

", "

$\\simplify{{base_1}+{base_2}^2}$

", "

$\\simplify{{base_1}^2+{base_2}^2}$

"], "matrix": [0, 0, 0, "1"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Linear equation_to_delete", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"const_2": {"name": "const_2", "group": "Ungrouped variables", "definition": "random((1+const_1)..(15+const_1))", "description": "", "templateType": "anything", "can_override": false}, "const_1": {"name": "const_1", "group": "Ungrouped variables", "definition": "random(15..29 except 20)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["const_1", "const_2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

If  $\\var{const_2}-x=\\var{const_1}$, what is the value of $x$?

\n

Answer: [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "const_2-const_1", "maxValue": "const_2-const_1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Volume of a cuboid", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Cuboid_simple.svg_ygcD7ac.png", "/srv/numbas/media/question-resources/Cuboid_simple.svg_ygcD7ac.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"width": {"name": "width", "group": "Ungrouped variables", "definition": "random(7..11 except 10)", "description": "", "templateType": "anything", "can_override": false}, "height": {"name": "height", "group": "Ungrouped variables", "definition": "random(4..6)", "description": "", "templateType": "anything", "can_override": false}, "depth": {"name": "depth", "group": "Ungrouped variables", "definition": "random(3..5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["width", "height", "depth"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

The following diagram shows a cuboid which has width $\\var{width}$ cm, height $\\var{height}$ cm and depth $\\var{depth}$ cm. What is the volume of the cube?

\n

\n

Answer: [[0]] $\\mbox{cm}^3$

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "width*height*depth", "maxValue": "width*height*depth", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Highest common factor and least common multiple_spare", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

Understanding the concept of the highest common factor and least common multiple of two positive integers.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"base": {"name": "base", "group": "Ungrouped variables", "definition": "random(2,3)", "description": "", "templateType": "anything", "can_override": false}, "power_1": {"name": "power_1", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "const_2": {"name": "const_2", "group": "Ungrouped variables", "definition": "2^power_2*base^2", "description": "", "templateType": "anything", "can_override": false}, "const_3": {"name": "const_3", "group": "Ungrouped variables", "definition": "random([3,5,7])*base", "description": "", "templateType": "anything", "can_override": false}, "const_1": {"name": "const_1", "group": "Ungrouped variables", "definition": "2^power_1*base*5", "description": "", "templateType": "anything", "can_override": false}, "power_2": {"name": "power_2", "group": "Ungrouped variables", "definition": "random(1..3 except power_1)", "description": "", "templateType": "anything", "can_override": false}, "hint": {"name": "hint", "group": "Ungrouped variables", "definition": "gcd(const_1,const_2)/base", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["power_1", "power_2", "base", "const_1", "const_2", "const_3", "hint"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

What is the highest common factor of $\\var{const_1}$ and $\\var{const_2}$?

\n

Answer: [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

You need to find the largest whole number that goes into both of the original numbers exactly. For example, $\\var{const_1}$ and $\\var{const_2}$ have a common factor of $\\var{hint}$, but this is not the highest common factor.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "gcd(const_1,const_2)", "maxValue": "gcd(const_1,const_2)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What is the least common multiple of $\\var{const_2}$ and $\\var{const_3}$?

\n

Answer: [[0]]

", "stepsPenalty": "1", "steps": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

You need to find the smallest whole number that is a multiple of both $\\var{const_2}$ and $\\var{const_3}$. For example, $\\var{const_2}\\times\\var{const_3}=\\simplify{{const_2}*{const_3}}$ is a common multiple of $\\var{const_2}$ and $\\var{const_3}$, but it is not the least common multiple.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "lcm(const_2,const_3)", "maxValue": "lcm(const_2,const_3)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Perimeter_Trapezoid", "extensions": [], "custom_part_types": [], "resources": [["question-resources/trapezium_y9AhE2q_RZQpvna.png", "/srv/numbas/media/question-resources/trapezium_y9AhE2q_RZQpvna.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

Tests basic arithmetic and the concept of perimeter.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"seed_side": {"name": "seed_side", "group": "Ungrouped variables", "definition": "random(9..15)", "description": "", "templateType": "anything", "can_override": false}, "side_3": {"name": "side_3", "group": "Ungrouped variables", "definition": "seed_side+random(6..9)", "description": "", "templateType": "anything", "can_override": false}, "side_2": {"name": "side_2", "group": "Ungrouped variables", "definition": "seed_side+random(3..4)", "description": "", "templateType": "anything", "can_override": false}, "side_1": {"name": "side_1", "group": "Ungrouped variables", "definition": "seed_side+random(1..2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["seed_side", "side_2", "side_3", "side_1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

The following shape has two sides of lengths $\\var{seed_side}$ cm and $\\var{side_3}$ cm. The other two sides have length $\\var{side_1}$ and $\\var{side_2}$cm. Work out the perimeter of the shape.

\n

\n

Answer: [[0]] cm

\n

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

The perimeter of the shape is the total length of all its sides added together $\\var{seed_side}+\\var{side_2}+\\var{side_2}+\\var{side_3}$.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "seed_side+side_3+side_1+side_2", "maxValue": "seed_side+side_3+side_1+side_2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Time calculations_spare", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

Test ability to calculate the difference between two times.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"sleep_minutes": {"name": "sleep_minutes", "group": "Ungrouped variables", "definition": "random(2..11 except (wake_minutes)/5)*5", "description": "", "templateType": "anything", "can_override": false}, "sleep_hour": {"name": "sleep_hour", "group": "Ungrouped variables", "definition": "random(9..11)", "description": "", "templateType": "anything", "can_override": false}, "wake_minutes": {"name": "wake_minutes", "group": "Ungrouped variables", "definition": "random(2..11)*5", "description": "", "templateType": "anything", "can_override": false}, "calc_minutes": {"name": "calc_minutes", "group": "Ungrouped variables", "definition": "(60-wake_minutes)+sleep_minutes", "description": "", "templateType": "anything", "can_override": false}, "wake_hour": {"name": "wake_hour", "group": "Ungrouped variables", "definition": "random(5..9)", "description": "", "templateType": "anything", "can_override": false}, "hour_carry": {"name": "hour_carry", "group": "Ungrouped variables", "definition": "(calc_minutes-remainder_minutes)/60", "description": "", "templateType": "anything", "can_override": false}, "remainder_minutes": {"name": "remainder_minutes", "group": "Ungrouped variables", "definition": "mod(calc_minutes,60)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["wake_hour", "wake_minutes", "sleep_hour", "sleep_minutes", "calc_minutes", "remainder_minutes", "hour_carry"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Gabriel wakes up at $\\var{wake_hour}:\\var{wake_minutes}$ am and goes to sleep at $\\var{sleep_hour}:\\var{sleep_minutes}$ pm. How long is Gabriel awake?

\n

Answer: [[0]] hours [[1]] minutes

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

It is $\\simplify{12-({wake_hour}+1)}$ hours and $\\simplify{60-{wake_minutes}}$ minutes from when Gabriel wakes up until 12 noon. Add this time in hours and minutes to the time Gabriel goes to sleep. If the sum of the minutes is more than sixty, then the total number of hours increases by 1 and the total number of minutes decreases by 60.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "12-(wake_hour+1)+sleep_hour+hour_carry", "maxValue": "12-(wake_hour+1)+sleep_hour+hour_carry", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "remainder_minutes", "maxValue": "remainder_minutes", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "fay frost", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11926/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

Find percentages and valculate percentages of values. 

", "licence": "None specified"}, "statement": "

These questions are all about finding percentages and calculating percentages of things.

\n

In general, to find a percentage, you need to calculate

\n

$\\frac{n}{\\text{total}} * 100$

\n

For example, if you are interesting in finding  the percentage of people who voted for the Labour party in a general election you must calculate 

\n

$\\frac{\\text{# number of votes for Labour}}{\\text{total # of votes}} * 100$.

\n

\n

In contrast, if you are asked to calculate $x\\%$ of a number, $n$,  then you must calculate $\\frac{x}{100}*n$

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"freq1": {"name": "freq1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "freq2": {"name": "freq2", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "freq3": {"name": "freq3", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "freq4": {"name": "freq4", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "freq5": {"name": "freq5", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "freq1+freq2+freq3+freq4+freq5", "description": "", "templateType": "anything", "can_override": false}, "saving": {"name": "saving", "group": "Ungrouped variables", "definition": "random(1..7)", "description": "", "templateType": "anything", "can_override": false}, "income": {"name": "income", "group": "Ungrouped variables", "definition": "random(800..1200)", "description": "", "templateType": "anything", "can_override": false}, "pan": {"name": "pan", "group": "Shopping group", "definition": "random(12..20)", "description": "", "templateType": "anything", "can_override": false}, "mug": {"name": "mug", "group": "Shopping group", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "dset": {"name": "dset", "group": "Shopping group", "definition": "random(15..25)", "description": "", "templateType": "anything", "can_override": false}, "pandiscount": {"name": "pandiscount", "group": "Shopping group", "definition": "(0.7)*pan", "description": "", "templateType": "anything", "can_override": false}, "mugdiscount": {"name": "mugdiscount", "group": "Shopping group", "definition": "0.7*mug", "description": "", "templateType": "anything", "can_override": false}, "dsetdiscount": {"name": "dsetdiscount", "group": "Shopping group", "definition": "0.7*dset", "description": "", "templateType": "anything", "can_override": false}, "totaldiscount": {"name": "totaldiscount", "group": "Shopping group", "definition": "pandiscount+4*mugdiscount+dsetdiscount", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "random(300 .. 1000#1)", "description": "", "templateType": "randrange", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(10 .. 30#1)", "description": "", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["freq1", "freq2", "freq3", "freq4", "freq5", "total", "saving", "income", "x", "y"], "variable_groups": [{"name": "Shopping group", "variables": ["pan", "mug", "dset", "pandiscount", "mugdiscount", "dsetdiscount", "totaldiscount"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "BMI", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A survey {total} individuals' Body Mass Index (BMI) are recorded in the table below.

\n

\n

\"What

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
BMI<18.518.5-24.925-29.930-34.9>35
Freq{freq1}{freq2}{freq3}{freq4}{freq5}
\n

\n

What is the percentage of individuals who are considered to have a \"normal\" BMI, that is, those between 18.5 and 24.9 BMI? 

\n

[[0]]$\\%$

\n

\n

What is the percentage of individuals who have a BMI strictly less than 30?

\n

[[1]] $\\%$

\n

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "percentage_norm", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "(freq2/total)*100", "maxValue": "(freq2/total)*100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You must give your answer to 2 decimal places. ", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Perc<30", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "((freq1+freq2+freq3)/total)*100", "maxValue": "((freq1+freq2+freq3)/total)*100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You must supply your answer to 2 decimal  places.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Savings", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Raheem has opened a savings account which he wishes to put {saving}$\\%$ of his earnigns into each month. 

\n

Raheem earns £{income} per month. \"Piggy

\n

\n

Calculate the amount of money Raheem will deposit into his savings account per month.

\n

Answer: £[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "saving", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "(saving/100) * income", "maxValue": "(saving/100) * income", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "jme", "useCustomName": true, "customName": "Discounts 1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The price of a TV was £{x} . It will be decreased by {y}% for the upcoming sales period. What will be reduced price?

\n

(Round your answer to 2 decimal places).

", "answer": "((100-{y})*{x})/100", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "numberentry", "useCustomName": true, "customName": "Discounts 2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A store has a closing down sale where all items are 30% off their retail price. 

\n

\"Sales

\n

Jenny wants to buy 

\n

1 x frying pan whose retail price is £{pan}

\n

4 x Mugs whose retail price are £{mug} each.

\n

1 x dinner set whose retail price is £{dset}

\n

\n

How much does Jenny's shopping list come to?

\n

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

To calculate a discount you need to subtract the % discount of the item from the original price. 

"}], "minValue": "totaldiscount", "maxValue": "totaldiscount", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Addition of fractions with hints", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}], "preamble": {"css": "", "js": ""}, "functions": {}, "rulesets": {}, "statement": "", "advice": "", "parts": [{"prompt": "

Calculate the following and give your answer as a fraction (enter your answer in the form $a/b$ using the slash symbol).

\n

$\\frac{{\\var{num1}}}{{\\var{denominator}}}+\\frac{{\\var{num2}}}{\\simplify{{denominator}+1}}=$ [[0]]

\n

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "steps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "type": "information", "marks": 0, "prompt": "

To add the fractions, you need to find a common denominator. This is a whole number which is a multiple of both $\\var{denominator}$ and $\\simplify{{denominator}+1}$. The easiest choice is $\\var{common_denominator}$. Then rewrite the calcuation as

\n

$\\dfrac{\\Box}{\\var{common_denominator}}+\\dfrac{\\Box}{\\var{common_denominator}}$

\n

where you need to work out the new numerators to fill in the boxes. For example, $\\dfrac{\\var{num1}}{\\var{denominator}}=\\dfrac{\\simplify{{num1}*({denominator}+1)}}{\\var{common_denominator}}$ and this tells you what to enter in the first box. 

", "variableReplacements": []}], "stepsPenalty": "1", "variableReplacements": [], "gaps": [{"correctAnswerFraction": true, "marks": "2", "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "showCorrectAnswer": true, "maxValue": "(num1/denominator)+(num2/(denominator+1))", "minValue": "(num1/denominator)+(num2/(denominator+1))", "variableReplacements": []}]}], "variable_groups": [], "ungrouped_variables": ["num1", "num2", "denominator", "common_denominator"], "variables": {"num1": {"description": "", "name": "num1", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)"}, "denominator": {"description": "", "name": "denominator", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..8 except num1)"}, "num2": {"description": "", "name": "num2", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except denominator+1)"}, "common_denominator": {"description": "", "name": "common_denominator", "templateType": "anything", "group": "Ungrouped variables", "definition": "denominator*(denominator+1)"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "

Tests the addition rule for fractions.

", "licence": null}, "tags": [], "type": "question"}, {"name": "Comparing cost per item_spare", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This application of arithmetic tests division as a method to compare cost per item, in order to determine value for money.

", "licence": "None specified"}, "statement": "

Supermarket A has an offer for $\\var{num1}$ gala apples for £$\\var{cost1_string}$. Supermarket B has an offer for $\\var{num2}$ gala apples for £$\\var{cost2_string}$.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cost1": {"name": "cost1", "group": "Ungrouped variables", "definition": "num1*(random(25..45 except[30,40])/100)", "description": "", "templateType": "anything", "can_override": false}, "cost1_string": {"name": "cost1_string", "group": "Ungrouped variables", "definition": "dpformat(cost1,2)", "description": "", "templateType": "anything", "can_override": false}, "num1": {"name": "num1", "group": "Ungrouped variables", "definition": "random(4..7)", "description": "", "templateType": "anything", "can_override": false}, "cheapest_cost_per_apple": {"name": "cheapest_cost_per_apple", "group": "Ungrouped variables", "definition": "min(cost1*100/num1,cost2*100/num2)", "description": "", "templateType": "anything", "can_override": false}, "num2": {"name": "num2", "group": "Ungrouped variables", "definition": "num1+2", "description": "", "templateType": "anything", "can_override": false}, "cost2_string": {"name": "cost2_string", "group": "Ungrouped variables", "definition": "dpformat(cost2,2)", "description": "", "templateType": "anything", "can_override": false}, "cost2": {"name": "cost2", "group": "Ungrouped variables", "definition": "num2*(random(25..45 except[30,40,cost1*100/num1])/100)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["num1", "num2", "cost1", "cost1_string", "cost2", "cost2_string", "cheapest_cost_per_apple"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

What is the cost per apple at the cheapest supermarket (answer in pence)?

\n

Answer: [[0]] pence

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

First work out the cost per apple in supermarket A in pence, that is, $\\simplify{{cost1}*100}\\div\\var{num1}$. Then you will need to do a similar calculation for supermarket B. Compare your answers to find the cheapest cost per apple.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "cheapest_cost_per_apple", "maxValue": "cheapest_cost_per_apple", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Bar charts", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Untitled_2_DcrVMAD.png", "/srv/numbas/media/question-resources/Untitled_2_DcrVMAD.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "fay frost", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11926/"}, {"name": "Phillips Obasohan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11959/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

A group of people were asked to vote for their favourite British film of all time from a selection of six taken from the the BFI top 100. The following bar chart shows the results of the survey.

\n

\n

", "advice": "

Click \"Show Steps\" above to see how to answer this question.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "precround((freq2/49)*100,0)", "description": "", "templateType": "anything", "can_override": false}, "film1": {"name": "film1", "group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"])", "description": "", "templateType": "anything", "can_override": false}, "film2": {"name": "film2", "group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"] except film1)", "description": "", "templateType": "anything", "can_override": false}, "freq2": {"name": "freq2", "group": "Ungrouped variables", "definition": "switch(film2=\"The Third Man\",15,film2=\"Brief Encounter\",4,film2=\"Lawrence of Arabia\",13,film2=\"The 39 Steps\",8,film2=\"Great Expectations\",3,film2=\"Kes\",7,0)", "description": "", "templateType": "anything", "can_override": false}, "freq1": {"name": "freq1", "group": "Ungrouped variables", "definition": "switch(film1=\"The Third Man\",15,film1=\"Brief Encounter\",4,film1=\"Lawrence of Arabia\",13,film1=\"The 39 Steps\",8,film1=\"Great Expectations\",3,film1=\"Kes\",7,0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["film1", "film2", "freq1", "freq2", "percentage"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

How many people voted for {film1}?

\n

Answer: [[0]]

\n

\n

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

Find the bar for {film1}. Use the scale on the Y-axis to find how many people voted for it.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "freq1", "maxValue": "freq1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

How many people voted for either {film1} or {film2}?

\n

Answer: [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "freq1 + freq2", "maxValue": "freq1 + freq2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What percentage of people surveyed voted for {film2}?

\n

Answer: [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

To find an exact percentage, if $n$ is the number of votes for {film2}, then you need to calculate

\n

$\\frac{n}{\\text{total # of votes}} * 100$

\n

Since there are 50 votes in total, you will be able to simplify this and give your answer as a whole number.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "percentage", "maxValue": "percentage", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Scatter plot", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "fay frost", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11926/"}], "tags": [], "metadata": {"description": "

Tests understanding of scatter plots and related concepts.

", "licence": "None specified"}, "statement": "

The scatter plot below shows the relationship between an employee’s height in centimetres and how long it takes them to walk to work in minutes.

\n\n\n\n\n\n\n\n\n\n\n\n
time (mins){drawgraph()}
height (cm)
\n

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p2y": {"name": "p2y", "group": "Points", "definition": "random(16..25)", "description": "", "templateType": "anything", "can_override": false}, "minx": {"name": "minx", "group": "Graph Limits", "definition": "140", "description": "", "templateType": "anything", "can_override": false}, "p6x": {"name": "p6x", "group": "Points", "definition": "random(176..185 except p4x)", "description": "", "templateType": "anything", "can_override": false}, "p1x": {"name": "p1x", "group": "Points", "definition": "random(142..155)", "description": "", "templateType": "anything", "can_override": false}, "p1y": {"name": "p1y", "group": "Points", "definition": "random(6..15)", "description": "", "templateType": "anything", "can_override": false}, "p2x": {"name": "p2x", "group": "Points", "definition": "random(156..165)", "description": "", "templateType": "anything", "can_override": false}, "miny": {"name": "miny", "group": "Graph Limits", "definition": "-10", "description": "", "templateType": "anything", "can_override": false}, "timemin": {"name": "timemin", "group": "Calculation variables", "definition": "min([p1y,p2y,p3y,p4y,p5y,p6y])", "description": "", "templateType": "anything", "can_override": false}, "p6y": {"name": "p6y", "group": "Points", "definition": "random(46..55)", "description": "

p6y

", "templateType": "anything", "can_override": false}, "sumxy": {"name": "sumxy", "group": "Regression variables", "definition": "p1x*p1y+p2x*p2y+p3x*p3y+p4x*p4y+p5x*p5y+p6x*p6y", "description": "", "templateType": "anything", "can_override": false}, "p4y": {"name": "p4y", "group": "Points", "definition": "random(36..45)", "description": "", "templateType": "anything", "can_override": false}, "p5x": {"name": "p5x", "group": "Points", "definition": "random(146..155 except p1x)", "description": "", "templateType": "anything", "can_override": false}, "slope": {"name": "slope", "group": "Regression variables", "definition": "(6*sumxy-sumx*sumy)/(6*sumxx-(sumx)^2)", "description": "

s

", "templateType": "anything", "can_override": false}, "sumxx": {"name": "sumxx", "group": "Regression variables", "definition": "p1x^2+p2x^2+p3x^2+p4x^2+p5x^2+p6x^2", "description": "", "templateType": "anything", "can_override": false}, "timemax": {"name": "timemax", "group": "Calculation variables", "definition": "max([p1y,p2y,p3y,p4y,p5y,p6y])", "description": "", "templateType": "anything", "can_override": false}, "roundedslope": {"name": "roundedslope", "group": "Regression variables", "definition": "precround(slope,2)", "description": "", "templateType": "anything", "can_override": false}, "sumy": {"name": "sumy", "group": "Regression variables", "definition": "p1y+p2y+p3y+p4y+p5y+p6y", "description": "", "templateType": "anything", "can_override": false}, "tallest": {"name": "tallest", "group": "Calculation variables", "definition": "max([p1x,p2x,p3x,p4x,p5x,p6x])", "description": "", "templateType": "anything", "can_override": false}, "regy1": {"name": "regy1", "group": "Regression variables", "definition": "slope*minx+yintercept", "description": "", "templateType": "anything", "can_override": false}, "timediff": {"name": "timediff", "group": "Calculation variables", "definition": "timemax-timemin", "description": "", "templateType": "anything", "can_override": false}, "p5y": {"name": "p5y", "group": "Points", "definition": "random(6..15)", "description": "", "templateType": "anything", "can_override": false}, "maxx": {"name": "maxx", "group": "Graph Limits", "definition": "188", "description": "", "templateType": "anything", "can_override": false}, "maxy": {"name": "maxy", "group": "Graph Limits", "definition": "63", "description": "", "templateType": "anything", "can_override": false}, "p3y": {"name": "p3y", "group": "Points", "definition": "random(26..35)", "description": "", "templateType": "anything", "can_override": false}, "regy2": {"name": "regy2", "group": "Regression variables", "definition": "slope*maxx+yintercept", "description": "", "templateType": "anything", "can_override": false}, "p3x": {"name": "p3x", "group": "Points", "definition": "random(166..175)", "description": "", "templateType": "anything", "can_override": false}, "sumx": {"name": "sumx", "group": "Regression variables", "definition": "p1x+p2x+p3x+p4x+p5x+p6x", "description": "", "templateType": "anything", "can_override": false}, "p4x": {"name": "p4x", "group": "Points", "definition": "random(176..185)", "description": "", "templateType": "anything", "can_override": false}, "yintercept": {"name": "yintercept", "group": "Regression variables", "definition": "(sumy-slope*sumx)/6", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Graph Limits", "variables": ["minx", "maxx", "miny", "maxy"]}, {"name": "Points", "variables": ["p1x", "p1y", "p2x", "p2y", "p3x", "p3y", "p4x", "p4y", "p5x", "p5y", "p6x", "p6y"]}, {"name": "Calculation variables", "variables": ["tallest", "timemax", "timemin", "timediff"]}, {"name": "Regression variables", "variables": ["sumx", "sumy", "sumxy", "sumxx", "slope", "yintercept", "regy1", "regy2", "roundedslope"]}], "functions": {"drawgraph": {"parameters": [], "type": "html", "language": "javascript", "definition": " var miny = Numbas.jme.unwrapValue(scope.variables.miny);\n var maxy = Numbas.jme.unwrapValue(scope.variables.maxy);\n var minx = Numbas.jme.unwrapValue(scope.variables.minx);\n var maxx = Numbas.jme.unwrapValue(scope.variables.maxx);\n var regy1 = Numbas.jme.unwrapValue(scope.variables.regy1);\n var regy2 = Numbas.jme.unwrapValue(scope.variables.regy2);\n\n var p1x = Numbas.jme.unwrapValue(scope.variables.p1x);\n var p1y = Numbas.jme.unwrapValue(scope.variables.p1y);\n var p2x = Numbas.jme.unwrapValue(scope.variables.p2x);\n var p2y= Numbas.jme.unwrapValue(scope.variables.p2y);\n var p3x = Numbas.jme.unwrapValue(scope.variables.p3x);\n var p3y= Numbas.jme.unwrapValue(scope.variables.p3y);\n var p4x = Numbas.jme.unwrapValue(scope.variables.p4x);\n var p4y= Numbas.jme.unwrapValue(scope.variables.p4y);\n var p5x = Numbas.jme.unwrapValue(scope.variables.p5x);\n var p5y= Numbas.jme.unwrapValue(scope.variables.p5y);\n var p6x = Numbas.jme.unwrapValue(scope.variables.p6x);\n var p6y= Numbas.jme.unwrapValue(scope.variables.p6y);\n \n var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n {boundingBox:[minx,maxy,maxx,miny],\n axis:false,\n showNavigation:false,\n grid:true});\n var brd = div.board; \n var xaxis=brd.createElement('axis', [[minx,0],[maxx,0]]);\n var yaxis=brd.createElement('axis', [[minx+5,miny],[minx+5,maxy]]);\n var li1=brd.create('line',[[minx,regy1],[maxx,regy2]],{fixed:true,withLabel:false});\n var pt1=brd.create('point',[p1x,p1y],{visible:true,withLabel:false}); \n var pt2=brd.create('point',[p2x,p2y],{visible:true,withLabel:false}); \n var pt3=brd.create('point',[p3x,p3y],{visible:true,withLabel:false}); \n var pt4=brd.create('point',[p4x,p4y],{visible:true,withLabel:false}); \n var pt5=brd.create('point',[p5x,p5y],{visible:true,withLabel:false}); \n var pt6=brd.create('point',[p6x,p6y],{visible:true,withLabel:false}); \nreturn div;\n "}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

What is the height of the tallest person in the sample?

\n

Answer: [[0]] cm

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "tallest", "maxValue": "tallest", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What is the maximum difference in time taken to walk to work for people in the sample?

\n

Answer: [[0]] minutes

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "timediff-1", "maxValue": "timediff+1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

Mark the statement that best describes what this scatter plot shows.

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

In general, there is a positive correlation between a person's height and how long it takes them to walk to work.

", "

There is a positive correlation between the variables for the sample.

", "

In general, there is a negative correlation between a person's height and how long it takes them to walk to work.

", "

There is a negative correlation between the variables for the sample.

", "

In general, there is a no correlation between a person's height and how long it takes them to walk to work.

", "

There is a no correlation between the variables for the sample.

"], "matrix": ["0", "1", 0, "1", 0, 0], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Averages ungrouped data (mean, mode and median)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}, {"name": "Luis Alfredo Sanchez Andalco", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11977/"}], "tags": [], "metadata": {"description": "

This question tests ability to deal with measures of central tendancy for a small data set. The mode or median is required at random.

", "licence": "None specified"}, "statement": "

Calculating averages:

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"median": {"name": "median", "group": "Ungrouped variables", "definition": "random(91..100)", "description": "", "templateType": "anything", "can_override": false}, "x4": {"name": "x4", "group": "Ungrouped variables", "definition": "median+random(11..20)", "description": "", "templateType": "anything", "can_override": false}, "x3": {"name": "x3", "group": "Ungrouped variables", "definition": "median-random(21..30)", "description": "", "templateType": "anything", "can_override": false}, "mean": {"name": "mean", "group": "Ungrouped variables", "definition": "precround(total/7,2)", "description": "", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "median-random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "median-random(11..20)", "description": "", "templateType": "anything", "can_override": false}, "mode": {"name": "mode", "group": "Ungrouped variables", "definition": "median+random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "median+2*mode+x1+x2+x3+x4", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["median", "mode", "x1", "x2", "x3", "x4", "total", "mean"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Seven children's heights in centimetres are recorded as follows: $\\var{mode},\\var{median},\\var{mode},\\var{x2},\\var{x3},\\var{x4},\\var{x1}$.

\n

\n

What is the mean height of the group of children in centimetres?

\n

Answer: [[0]] cm

", "stepsPenalty": "0", "steps": [{"type": "information", "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": "

To find the mean of the set of numbers, first add all the numbers together ($\\var{total}$) and then divide by how many numbers there are. So, you need to calculate $\\var{total}\\div 7$.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "m1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "mean", "maxValue": "mean", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What is the median for this sample of measurements?

\n

Answer: [[0]]  cm

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

\"The median is the middle number when all of the numbers are placed in order.\"

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "m2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "median", "maxValue": "median", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What is the mode for this sample of measurements?

\n

Answer: [[0]]  cm

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

\"The mode is the most commonly occuring value.\"

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "m3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "mode", "maxValue": "mode", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Expanding brackets_to_delete", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This question tests the method of expanding a pair of brackets.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"const2": {"name": "const2", "group": "Ungrouped variables", "definition": "random(2..9 except const1)", "description": "", "templateType": "anything", "can_override": false}, "const1": {"name": "const1", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["const1", "const2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Expand and simplify the following algebraic expression:

\n

$(x+\\var{const1})(x+\\var{const2})$

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

You need to multiply everything in the first bracket by the second bracket. That is,

\n

$x (x + \\var{const2}) + \\var{const1} (x + \\var{const2})=x^2+\\var{const2}x+\\var{const1}x+(\\var{const1}\\times\\var{const2})$

\n

and then simplify your answer.

"}], "answer": "x^2+({const1}+{const2})*x+({const1}*{const2})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "maxlength": {"length": "14", "partialCredit": "50", "message": "

You need to simplify your solution as far as possible.

"}, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Missing side in a right-angled triangle_to_delete", "extensions": [], "custom_part_types": [], "resources": [["question-resources/triangle_yeq6Xd0_wpRhdOT.png", "/srv/numbas/media/question-resources/triangle_yeq6Xd0_wpRhdOT.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This question tests ability to use Pythagoras' theorem.

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"hypotenuse": {"name": "hypotenuse", "group": "Ungrouped variables", "definition": "precround(sqrt(short_side^2+long_side^2), 1)", "description": "", "templateType": "anything", "can_override": false}, "sum_of_squares": {"name": "sum_of_squares", "group": "Ungrouped variables", "definition": "precround(short_side^2+long_side^2, 1)", "description": "", "templateType": "anything", "can_override": false}, "long_side": {"name": "long_side", "group": "Ungrouped variables", "definition": "short_side+random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "short_side": {"name": "short_side", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["short_side", "long_side", "hypotenuse", "sum_of_squares"], "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": "

The following triangle has two sides of length $\\var{short_side}$ cm and $\\var{long_side}$ cm. 

\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{long_side}$ cm
$\\var{short_side}$ cm
\n

What is the length of the longest side correct to 1 decimal place?

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

If the longest side has length $x$ cm, then $x$ needs to satisfy Pythagoras' theorem:

\n

$x^2=\\var{short_side}^2+\\var{long_side}^2=\\simplify{{short_side}^2+{long_side}^2}$.

\n

Depending on the accuracy of $x$, this relationship may only be approximate.

\n

You need to check which of the choices best satisfies this relationship.

"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

$\\simplify{{hypotenuse}-0.4}$ cm

", "

$\\var{sum_of_squares}$ cm

", "

$\\var{hypotenuse}$ cm

", "

$\\simplify{{hypotenuse}+0.5}$ cm

"], "matrix": [0, 0, "3", 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Interpreting tables_to_delete", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}], "tags": [], "metadata": {"description": "

This question tests the ability to read and interpret numerical data summarised in a table and make predictions based on algebraic skills.

", "licence": "None specified"}, "statement": "

The following table shows monthly financial data for a small business.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
budget forecast (£)actual (£)actual - forecast (£)
Revenue{revenue_forecast}{revenue}$\\simplify{{revenue}-{revenue_forecast}}$
Materials{materials_forecast}{materials}$\\simplify{{materials}-{materials_forecast}}$
Overheads{overheads_forecast}{overheads}$\\simplify{{overheads}-{overheads_forecast}}$
Net profit{net_profit_forecast}?$\\simplify{{net_profit}-{net_profit_forecast}}$
", "advice": "

Click \"Show Steps\" above to see how to answer this question.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"materials_forecast": {"name": "materials_forecast", "group": "Ungrouped variables", "definition": "random(30..39)*10", "description": "", "templateType": "anything", "can_override": false}, "overheads_forecast": {"name": "overheads_forecast", "group": "Ungrouped variables", "definition": "random(20..39)*10", "description": "", "templateType": "anything", "can_override": false}, "net_profit": {"name": "net_profit", "group": "Ungrouped variables", "definition": "revenue-materials-overheads", "description": "", "templateType": "anything", "can_override": false}, "net_profit_forecast": {"name": "net_profit_forecast", "group": "Ungrouped variables", "definition": "revenue_forecast-materials_forecast-overheads_forecast", "description": "", "templateType": "anything", "can_override": false}, "materials": {"name": "materials", "group": "Ungrouped variables", "definition": "materials_forecast+random(1..4)*10", "description": "", "templateType": "anything", "can_override": false}, "revenue": {"name": "revenue", "group": "Ungrouped variables", "definition": "revenue_forecast-random(1..10)*10", "description": "", "templateType": "anything", "can_override": false}, "revenue_forecast": {"name": "revenue_forecast", "group": "Ungrouped variables", "definition": "1000+random(1..5)*50", "description": "", "templateType": "anything", "can_override": false}, "overheads": {"name": "overheads", "group": "Ungrouped variables", "definition": "overheads_forecast", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["revenue_forecast", "materials_forecast", "overheads_forecast", "net_profit_forecast", "revenue", "materials", "overheads", "net_profit"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Calculate the actual net profit.

\n

Answer: £[[0]]

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

We can see from the table that the actual net profit subtract the forcast is {{net_profit}-{net_profit_forecast}}.

\n

Therefore \"actual net profit\" - {net_profit_forecast} = {{net_profit}-{net_profit_forecast}}

\n

So the number we want is {{net_profit}-{net_profit_forecast}}+{net_profit_forecast} = {{{net_profit}-{net_profit_forecast}}+{net_profit_forecast}}

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "net_profit", "maxValue": "net_profit", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

What would the actual material costs need to be so that the actual net profit is the same as the forecast?

\n

Answer: £[[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "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": "

From the table, we can see that 

\n\n\n\n\n\n\n
Net profit = Revenue - Materials - Overheads.
\n

Since the overheads are the same for the forecast and in reality, for the the actual net profit to be equal to that of the forecast, we need

\n\n\n\n\n\n\n
Forecast Revenue - Forecast Materials = Actual Revenue - Actual Materials
\n

If the actual materials are considered to be an unknown ($x$), then we can fill in all the other values from the table and rearrange the equation to find $x$. 

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "revenue-revenue_forecast+materials_forecast", "maxValue": "revenue-revenue_forecast+materials_forecast", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "showQuestionGroupNames": false, "timing": {"timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}, "allowPause": true}, "percentPass": 0, "feedback": {"showanswerstate": true, "allowrevealanswer": true, "showtotalmark": true, "feedbackmessages": [], "intro": "", "advicethreshold": 0, "showactualmark": true}, "navigation": {"reverse": true, "allowregen": true, "preventleave": true, "onleave": {"action": "none", "message": ""}, "browse": true, "showfrontpage": true, "showresultspage": "oncompletion"}, "type": "exam", "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}], "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/Cuboid_simple.svg_ygcD7ac.png", "/srv/numbas/media/question-resources/Cuboid_simple.svg_ygcD7ac.png"], ["question-resources/trapezium_y9AhE2q_RZQpvna.png", "/srv/numbas/media/question-resources/trapezium_y9AhE2q_RZQpvna.png"], ["question-resources/Untitled_2_DcrVMAD.png", "/srv/numbas/media/question-resources/Untitled_2_DcrVMAD.png"], ["question-resources/triangle_yeq6Xd0_wpRhdOT.png", "/srv/numbas/media/question-resources/triangle_yeq6Xd0_wpRhdOT.png"]]}