// Numbas version: finer_feedback_settings {"showQuestionGroupNames": false, "percentPass": 0, "name": "Maths refresher self diagnostic test 2", "metadata": {"description": "", "licence": "None specified"}, "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": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["stockholm", "rise"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"displayColumns": 0, "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", "matrix": [0, 0, "1", 0], "shuffleChoices": false, "variableReplacements": [], "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}$
"], "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"rise": {"definition": "random(9..19 except 10)", "templateType": "anything", "group": "Ungrouped variables", "name": "rise", "description": ""}, "stockholm": {"definition": "random(-15..-2)", "templateType": "anything", "group": "Ungrouped variables", "name": "stockholm", "description": ""}}, "metadata": {"description": "This question tests ability to calculate differences using negative numbers in context.
", "licence": "None specified"}, "type": "question"}, {"name": "Rounding to a whole number", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["round_me", "rounded_number"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "Round $\\var{round_me}$ to the nearest whole number.
\nAnswer: [[0]]
\n", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "rounded_number", "minValue": "rounded_number", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"rounded_number": {"definition": " precround(round_me, 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "rounded_number", "description": ""}, "round_me": {"definition": "random(1..19)+random(1..9)/10+random(1..9)/100", "templateType": "anything", "group": "Ungrouped variables", "name": "round_me", "description": ""}}, "metadata": {"description": "This question tests ability to calculate differences using negative numbers in context.
", "licence": "None specified"}, "type": "question"}, {"name": "Arithmetic with squares", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["base_1", "base_2"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"maxAnswers": 0, "displayColumns": 0, "prompt": "Work out $\\var{base_1}^2+\\var{base_2}^2$.
", "matrix": [0, 0, 0, "1"], "shuffleChoices": false, "variableReplacements": [], "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "warningType": "none", "marks": 0, "choices": ["$\\simplify{{base_1}^2}$
", "$\\simplify{{base_1}^2+{base_2}}$
", "$\\simplify{{base_1}+{base_2}^2}$
", "$\\simplify{{base_1}^2+{base_2}^2}$
"], "type": "m_n_2", "displayType": "checkbox", "minMarks": 0}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"base_1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "base_1", "description": ""}, "base_2": {"definition": "random(2..9 except base_1)", "templateType": "anything", "group": "Ungrouped variables", "name": "base_2", "description": ""}}, "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "Linear equation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["const_1", "const_2"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "If $\\var{const_2}-x=\\var{const_1}$, what is the value of $x$?
\nAnswer: [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "const_2-const_1", "minValue": "const_2-const_1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"const_2": {"definition": "random((1+const_1)..(15+const_1))", "templateType": "anything", "group": "Ungrouped variables", "name": "const_2", "description": ""}, "const_1": {"definition": "random(15..29 except 20)", "templateType": "anything", "group": "Ungrouped variables", "name": "const_1", "description": ""}}, "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "Volume of a cuboid", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Cuboid_simple.svg.png", "/srv/numbas/media/question-resources/Cuboid_simple.svg.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["width", "height", "depth"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"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\nAnswer: [[0]] $\\mbox{cm}^3$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "width*height*depth", "minValue": "width*height*depth", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"width": {"definition": "random(7..11 except 10)", "templateType": "anything", "group": "Ungrouped variables", "name": "width", "description": ""}, "depth": {"definition": "random(3..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "depth", "description": ""}, "height": {"definition": "random(4..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "height", "description": ""}}, "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "Highest common factor and least common multiple", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["power_1", "power_2", "base", "const_1", "const_2", "const_3", "hint"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "What is the highest common factor of $\\var{const_1}$ and $\\var{const_2}$?
\nAnswer: [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "gcd(const_1,const_2)", "minValue": "gcd(const_1,const_2)", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "What is the least common multiple of $\\var{const_2}$ and $\\var{const_3}$?
\nAnswer: [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "lcm(const_2,const_3)", "minValue": "lcm(const_2,const_3)", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"const_3": {"definition": "random([3,5,7])*base", "templateType": "anything", "group": "Ungrouped variables", "name": "const_3", "description": ""}, "const_2": {"definition": "2^power_2*base^2", "templateType": "anything", "group": "Ungrouped variables", "name": "const_2", "description": ""}, "const_1": {"definition": "2^power_1*base*5", "templateType": "anything", "group": "Ungrouped variables", "name": "const_1", "description": ""}, "hint": {"definition": "gcd(const_1,const_2)/base", "templateType": "anything", "group": "Ungrouped variables", "name": "hint", "description": ""}, "base": {"definition": "random(2,3)", "templateType": "anything", "group": "Ungrouped variables", "name": "base", "description": ""}, "power_1": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "power_1", "description": ""}, "power_2": {"definition": "random(1..3 except power_1)", "templateType": "anything", "group": "Ungrouped variables", "name": "power_2", "description": ""}}, "metadata": {"description": "Understanding the concept of the highest common factor and least common multiple of two positive integers.
", "licence": "None specified"}, "type": "question"}, {"name": "Perimeter", "extensions": [], "custom_part_types": [], "resources": [["question-resources/trapezium_y9AhE2q.png", "/srv/numbas/media/question-resources/trapezium_y9AhE2q.png"], ["question-resources/trapezium_ySmDvow.png", "/srv/numbas/media/question-resources/trapezium_ySmDvow.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["seed_side", "side_2", "side_3"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "The following shape has two sides of lengths $\\var{seed_side}$ cm and $\\var{side_3}$ cm. The other two sides both have length $\\var{side_2}$ cm. Work out the perimeter of the shape.
\n\nAnswer: [[0]] cm
\n", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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}$.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "seed_side+side_3+2*side_2", "minValue": "seed_side+side_3+2*side_2", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"side_2": {"definition": "seed_side+random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "side_2", "description": ""}, "side_3": {"definition": "seed_side+random(6..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "side_3", "description": ""}, "seed_side": {"definition": "random(9..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "seed_side", "description": ""}}, "metadata": {"description": "Tests basic arithmetic and the concept of perimeter.
", "licence": "None specified"}, "type": "question"}, {"name": "Time calculations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["wake_hour", "wake_minutes", "sleep_hour", "sleep_minutes", "calc_minutes", "remainder_minutes", "hour_carry"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "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?
\nAnswer: [[0]] hours [[1]] minutes
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "12-(wake_hour+1)+sleep_hour+hour_carry", "minValue": "12-(wake_hour+1)+sleep_hour+hour_carry", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "remainder_minutes", "minValue": "remainder_minutes", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"wake_hour": {"definition": "random(5..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "wake_hour", "description": ""}, "remainder_minutes": {"definition": "mod(calc_minutes,60)", "templateType": "anything", "group": "Ungrouped variables", "name": "remainder_minutes", "description": ""}, "wake_minutes": {"definition": "random(2..11)*5", "templateType": "anything", "group": "Ungrouped variables", "name": "wake_minutes", "description": ""}, "hour_carry": {"definition": "(calc_minutes-remainder_minutes)/60", "templateType": "anything", "group": "Ungrouped variables", "name": "hour_carry", "description": ""}, "sleep_hour": {"definition": "random(9..11)", "templateType": "anything", "group": "Ungrouped variables", "name": "sleep_hour", "description": ""}, "sleep_minutes": {"definition": "random(2..11 except (wake_minutes)/5)*5", "templateType": "anything", "group": "Ungrouped variables", "name": "sleep_minutes", "description": ""}, "calc_minutes": {"definition": "(60-wake_minutes)+sleep_minutes", "templateType": "anything", "group": "Ungrouped variables", "name": "calc_minutes", "description": ""}}, "metadata": {"description": "Test ability to calculate the difference between two times.
", "licence": "None specified"}, "type": "question"}, {"name": "Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["percentage", "amount"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "What is $\\var{percentage}$% of £$\\var{amount}$?
\nAnswer: £[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "As a first step, use the fact that $10$% of £$\\var{amount}$ is $\\var{amount}\\div 10 = \\mbox{£}\\simplify{{amount}/10}$.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "percentage*amount/100", "minValue": "percentage*amount/100", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"percentage": {"definition": "random(2..9 except 5)*10", "templateType": "anything", "group": "Ungrouped variables", "name": "percentage", "description": ""}, "amount": {"definition": "random(5..12 except 10)*10", "templateType": "anything", "group": "Ungrouped variables", "name": "amount", "description": ""}}, "metadata": {"description": "Find a given percentage of a sum of money.
", "licence": "None specified"}, "type": "question"}, {"name": "Addition of fractions with hints", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["num1", "num2", "denominator", "common_denominator"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "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", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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}}$
\nwhere 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": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "(num1/denominator)+(num2/(denominator+1))", "minValue": "(num1/denominator)+(num2/(denominator+1))", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"denominator": {"definition": "random(2..8 except num1)", "templateType": "anything", "group": "Ungrouped variables", "name": "denominator", "description": ""}, "common_denominator": {"definition": "denominator*(denominator+1)", "templateType": "anything", "group": "Ungrouped variables", "name": "common_denominator", "description": ""}, "num1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "random(2..9 except denominator+1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}}, "metadata": {"description": "Tests the addition rule for fractions.
", "licence": "None specified"}, "type": "question"}, {"name": "Comparing cost per item", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["num1", "num2", "cost1", "cost1_string", "cost2", "cost2_string", "cheapest_cost_per_apple"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "What is the cost per apple at the cheapest supermarket (answer in pence)?
\nAnswer: [[0]] pence
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "cheapest_cost_per_apple", "minValue": "cheapest_cost_per_apple", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": false, "scripts": {}, "marks": "3", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "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}$.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"cost1_string": {"definition": "dpformat(cost1,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "cost1_string", "description": ""}, "num1": {"definition": "random(4..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "num1+2", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "cheapest_cost_per_apple": {"definition": "min(cost1*100/num1,cost2*100/num2)", "templateType": "anything", "group": "Ungrouped variables", "name": "cheapest_cost_per_apple", "description": ""}, "cost1": {"definition": "num1*(random(25..45 except[30,40])/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "cost1", "description": ""}, "cost2": {"definition": "num2*(random(25..45 except[30,40,cost1*100/num1])/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "cost2", "description": ""}, "cost2_string": {"definition": "dpformat(cost2,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "cost2_string", "description": ""}}, "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"}, "type": "question"}, {"name": "Bar charts and percentages (fixed)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Untitled_2.png", "/srv/numbas/media/question-resources/Untitled_2.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "functions": {}, "preamble": {"css": "", "js": ""}, "tags": [], "rulesets": {}, "metadata": {"licence": "None specified", "description": ""}, "parts": [{"scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "variableReplacements": [], "gaps": [{"mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "variableReplacements": [], "maxValue": "freq1", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "correctAnswerFraction": false, "minValue": "freq1", "correctAnswerStyle": "plain"}], "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "How many people voted for {film1}?
\nAnswer: [[0]]
"}, {"scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "variableReplacements": [], "gaps": [{"mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "variableReplacements": [], "maxValue": "freq1+freq2", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "correctAnswerFraction": false, "minValue": "freq1+freq2", "correctAnswerStyle": "plain"}], "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "How many people voted for either {film1} or {film2}?
\nAnswer: [[0]]
"}, {"steps": [{"scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "To find an exact percentage, if \\[ is the number of votes for {film2}, then you need to calculate
\nSince there are 50 votes in total, you will be able to simplify this and give your answer as a whole number.
"}], "scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "variableReplacements": [], "gaps": [{"mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "variableReplacements": [], "maxValue": "percentage", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "correctAnswerFraction": false, "minValue": "percentage", "correctAnswerStyle": "plain"}], "stepsPenalty": 0, "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "What percentage of people surveyed voted for {film2}?
\nAnswer: [[0]]
"}], "ungrouped_variables": ["film1", "film2", "freq1", "freq2", "percentage"], "variable_groups": [], "variables": {"film2": {"group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"] except film1)", "name": "film2", "description": "", "templateType": "anything"}, "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)", "name": "freq2", "description": "", "templateType": "anything"}, "film1": {"group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"])", "name": "film1", "description": "", "templateType": "anything"}, "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)", "name": "freq1", "description": "", "templateType": "anything"}, "percentage": {"group": "Ungrouped variables", "definition": "precround((freq2/49)*100,0)", "name": "percentage", "description": "", "templateType": "anything"}}, "advice": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "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", "type": "question"}, {"name": "Scatter plot", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {"drawgraph": {"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 ", "type": "html", "language": "javascript", "parameters": []}}, "ungrouped_variables": [], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "What is the height of the tallest person in the sample?
\nAnswer: [[0]] cm
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "tallest", "minValue": "tallest", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "What is the maximum difference in time taken to walk to work for people in the sample?
\nAnswer: [[0]] minutes
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "timediff+1", "minValue": "timediff-1", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"displayColumns": 0, "prompt": "Mark the statement that best describes what this scatter plot shows.
", "matrix": ["0", "1", 0, "1", 0, 0], "shuffleChoices": false, "variableReplacements": [], "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.
"], "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["", "", "", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "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.
\ntime (mins) | \n{drawgraph()} | \n
\n | height (cm) | \n
s
"}, "timemax": {"definition": "max([p1y,p2y,p3y,p4y,p5y,p6y])", "templateType": "anything", "group": "Calculation variables", "name": "timemax", "description": ""}, "minx": {"definition": "140", "templateType": "anything", "group": "Graph Limits", "name": "minx", "description": ""}, "miny": {"definition": "-10", "templateType": "anything", "group": "Graph Limits", "name": "miny", "description": ""}, "p3x": {"definition": "random(166..175)", "templateType": "anything", "group": "Points", "name": "p3x", "description": ""}, "p3y": {"definition": "random(26..35)", "templateType": "anything", "group": "Points", "name": "p3y", "description": ""}, "p5x": {"definition": "random(146..155 except p1x)", "templateType": "anything", "group": "Points", "name": "p5x", "description": ""}, "p5y": {"definition": "random(6..15)", "templateType": "anything", "group": "Points", "name": "p5y", "description": ""}, "p1x": {"definition": "random(146..155)", "templateType": "anything", "group": "Points", "name": "p1x", "description": ""}, "p1y": {"definition": "random(6..15)", "templateType": "anything", "group": "Points", "name": "p1y", "description": ""}, "timediff": {"definition": "timemax-timemin", "templateType": "anything", "group": "Calculation variables", "name": "timediff", "description": ""}, "maxx": {"definition": "188", "templateType": "anything", "group": "Graph Limits", "name": "maxx", "description": ""}, "maxy": {"definition": "63", "templateType": "anything", "group": "Graph Limits", "name": "maxy", "description": ""}, "roundedslope": {"definition": "precround(slope,2)", "templateType": "anything", "group": "Regression variables", "name": "roundedslope", "description": ""}, "yintercept": {"definition": "(sumy-slope*sumx)/6", "templateType": "anything", "group": "Regression variables", "name": "yintercept", "description": ""}, "timemin": {"definition": "min([p1y,p2y,p3y,p4y,p5y,p6y])", "templateType": "anything", "group": "Calculation variables", "name": "timemin", "description": ""}, "tallest": {"definition": "max([p1x,p2x,p3x,p4x,p5x,p6x])", "templateType": "anything", "group": "Calculation variables", "name": "tallest", "description": ""}, "regy1": {"definition": "slope*minx+yintercept", "templateType": "anything", "group": "Regression variables", "name": "regy1", "description": ""}, "regy2": {"definition": "slope*maxx+yintercept", "templateType": "anything", "group": "Regression variables", "name": "regy2", "description": ""}, "sumy": {"definition": "p1y+p2y+p3y+p4y+p5y+p6y", "templateType": "anything", "group": "Regression variables", "name": "sumy", "description": ""}, "sumx": {"definition": "p1x+p2x+p3x+p4x+p5x+p6x", "templateType": "anything", "group": "Regression variables", "name": "sumx", "description": ""}, "p6y": {"definition": "random(46..55)", "templateType": "anything", "group": "Points", "name": "p6y", "description": "p6y
"}, "p6x": {"definition": "random(176..185 except p4x)", "templateType": "anything", "group": "Points", "name": "p6x", "description": ""}, "p4y": {"definition": "random(36..45)", "templateType": "anything", "group": "Points", "name": "p4y", "description": ""}, "p4x": {"definition": "random(176..185)", "templateType": "anything", "group": "Points", "name": "p4x", "description": ""}, "p2y": {"definition": "random(16..25)", "templateType": "anything", "group": "Points", "name": "p2y", "description": ""}, "p2x": {"definition": "random(156..165)", "templateType": "anything", "group": "Points", "name": "p2x", "description": ""}, "sumxx": {"definition": "p1x^2+p2x^2+p3x^2+p4x^2+p5x^2+p6x^2", "templateType": "anything", "group": "Regression variables", "name": "sumxx", "description": ""}, "sumxy": {"definition": "p1x*p1y+p2x*p2y+p3x*p3y+p4x*p4y+p5x*p5y+p6x*p6y", "templateType": "anything", "group": "Regression variables", "name": "sumxy", "description": ""}}, "metadata": {"description": "Tests understanding of scatter plots and related concepts.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question"}, {"name": "Mean, mode and median", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["median", "mode", "x1", "x2", "x3", "x4", "statname", "total", "mean", "tip", "median_or_mode"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "What is the mean height of the group of children in centimetres?
\nAnswer: [[0]] cm
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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$.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "mean", "strictPrecision": false, "minValue": "mean", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "1", "scripts": {}, "marks": "2", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "What is the {statname} for this sample of measurements?
\nAnswer: [[0]] cm
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "{tip}
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "median_or_mode", "minValue": "median_or_mode", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "Seven children's heights in centimetres are recorded as follows:
\n$\\var{mode},\\var{median},\\var{mode},\\var{x2},\\var{x3},\\var{x4},\\var{x1}$.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"statname": {"definition": "random(\"median\", \"mode\")", "templateType": "anything", "group": "Ungrouped variables", "name": "statname", "description": ""}, "x4": {"definition": "median+random(11..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "x4", "description": ""}, "tip": {"definition": "switch(statname=\"median\",\"The median is the middle number when all of the numbers are placed in order.\",statname=\"mode\",\"The mode is the most commonly occuring value.\")", "templateType": "anything", "group": "Ungrouped variables", "name": "tip", "description": ""}, "x1": {"definition": "median-random(1..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "x1", "description": ""}, "median": {"definition": "random(91..100)", "templateType": "anything", "group": "Ungrouped variables", "name": "median", "description": ""}, "mode": {"definition": "median+random(1..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "mode", "description": ""}, "x2": {"definition": "median-random(11..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "x2", "description": ""}, "x3": {"definition": "median-random(21..30)", "templateType": "anything", "group": "Ungrouped variables", "name": "x3", "description": ""}, "total": {"definition": "median+2*mode+x1+x2+x3+x4", "templateType": "anything", "group": "Ungrouped variables", "name": "total", "description": ""}, "median_or_mode": {"definition": "switch(statname=\"mode\",mode,statname=\"median\",median)", "templateType": "anything", "group": "Ungrouped variables", "name": "median_or_mode", "description": ""}, "mean": {"definition": "precround(total/7,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "mean", "description": ""}}, "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"}, "type": "question"}, {"name": "Expanding brackets", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["const1", "const2"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "vsetrangepoints": 5, "prompt": "Expand and simplify the following algebraic expression:
\n$(x+\\var{const1})(x+\\var{const2})$
", "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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})$
\nand then simplify your answer.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "showCorrectAnswer": true, "scripts": {}, "answer": "x^2+({const1}+{const2})*x+({const1}*{const2})", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "maxlength": {"length": "14", "message": "You need to simplify your solution as far as possible.
", "partialCredit": "50"}}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"const1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "const1", "description": ""}, "const2": {"definition": "random(2..9 except const1)", "templateType": "anything", "group": "Ungrouped variables", "name": "const2", "description": ""}}, "metadata": {"description": "This question tests the method of expanding a pair of brackets.
", "licence": "None specified"}, "type": "question"}, {"name": "Missing side in a right-angled triangle", "extensions": [], "custom_part_types": [], "resources": [["question-resources/triangle_yeq6Xd0.png", "/srv/numbas/media/question-resources/triangle_yeq6Xd0.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["short_side", "long_side", "hypotenuse", "sum_of_squares"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "displayColumns": 0, "prompt": "The following triangle has two sides of length $\\var{short_side}$ cm and $\\var{long_side}$ cm.
\n$\\var{long_side}$ cm | \n\n |
\n | $\\var{short_side}$ cm | \n
What is the length of the longest side correct to 1 decimal place?
", "matrix": [0, 0, "3", 0], "shuffleChoices": true, "maxMarks": 0, "variableReplacements": [], "choices": ["$\\simplify{{hypotenuse}-0.4}$ cm
", "$\\var{sum_of_squares}$ cm
", "$\\var{hypotenuse}$ cm
", "$\\simplify{{hypotenuse}+0.5}$ cm
"], "variableReplacementStrategy": "originalfirst", "steps": [{"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}$.
\nDepending on the accuracy of $x$, this relationship may only be approximate.
\nYou need to check which of the choices best satisfies this relationship.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "distractors": ["", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"sum_of_squares": {"definition": "precround(short_side^2+long_side^2, 1)", "templateType": "anything", "group": "Ungrouped variables", "name": "sum_of_squares", "description": ""}, "long_side": {"definition": "short_side+random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "long_side", "description": ""}, "hypotenuse": {"definition": "precround(sqrt(short_side^2+long_side^2), 1)", "templateType": "anything", "group": "Ungrouped variables", "name": "hypotenuse", "description": ""}, "short_side": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "short_side", "description": ""}}, "metadata": {"description": "This question tests ability to use Pythagoras' theorem.
", "licence": "None specified"}, "type": "question"}, {"name": "Interpreting tables", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}], "functions": {}, "ungrouped_variables": ["revenue_forecast", "materials_forecast", "overheads_forecast", "net_profit_forecast", "revenue", "materials", "overheads", "net_profit"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "Calculate the actual net profit.
\nAnswer: £[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "net_profit", "minValue": "net_profit", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "What would the actual material costs need to be so that the actual net profit is the same as the forecast?
\nAnswer: £[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "From the table, we can see that
\nNet 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
\nForecast 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$.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "revenue-revenue_forecast+materials_forecast", "minValue": "revenue-revenue_forecast+materials_forecast", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "3", "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "The following table shows monthly financial data for a small business.
\n\n | budget forecast (£) | \nactual (£) | \nactual - forecast (£) | \n
Revenue | \n{revenue_forecast} | \n{revenue} | \n$\\simplify{{revenue}-{revenue_forecast}}$ | \n
Materials | \n{materials_forecast} | \n{materials} | \n$\\simplify{{materials}-{materials_forecast}}$ | \n
Overheads | \n{overheads_forecast} | \n{overheads} | \n$\\simplify{{overheads}-{overheads_forecast}}$ | \n
Net profit | \n{net_profit_forecast} | \n? | \n$\\simplify{{net_profit}-{net_profit_forecast}}$ | \n
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"}, "type": "question"}]}], "feedback": {"advicethreshold": 0, "showactualmark": true, "feedbackmessages": [], "intro": "", "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "never"}, "navigation": {"allowregen": true, "onleave": {"action": "none", "message": ""}, "showresultspage": "oncompletion", "browse": true, "preventleave": true, "reverse": true, "showfrontpage": true}, "showstudentname": true, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "duration": 0, "type": "exam", "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/Cuboid_simple.svg.png", "/srv/numbas/media/question-resources/Cuboid_simple.svg.png"], ["question-resources/trapezium_y9AhE2q.png", "/srv/numbas/media/question-resources/trapezium_y9AhE2q.png"], ["question-resources/trapezium_ySmDvow.png", "/srv/numbas/media/question-resources/trapezium_ySmDvow.png"], ["question-resources/Untitled_2.png", "/srv/numbas/media/question-resources/Untitled_2.png"], ["question-resources/triangle_yeq6Xd0.png", "/srv/numbas/media/question-resources/triangle_yeq6Xd0.png"]]}