// Numbas version: exam_results_page_options {"name": "Advertising Mathematics", "metadata": {"description": "

4 questions from a set of 12 on elementary day-to-day advertising mathematics

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Advertising Mathematics", "pickingStrategy": "random-subset", "pickQuestions": "8", "questionNames": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []], "questions": [{"name": "Average Breakfast TARP", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Find a percentage of a number (number of TARPs spent on breakfast programs), then divide by the number of programs to find the average number of TARPs per program.

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

You have allocated {percent}% of your {TARPs} weekly TARPs to Off-Peak Programs.

\n

You have bought {BPspots} spots that are Off-peak programs.

", "advice": "

Number of TARPs spent on Off-Peak Programs = {percent}% $\\times$ {tarps} = {percent * tarps / 100}

\n

Average number of TARPs per Off-Peak program = {(percent * tarps / 100)} $\\div$ {bpspots} = {(percent * tarps / 100)/bpspots}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"percent": {"name": "percent", "group": "Ungrouped variables", "definition": "factor1*factor2*10", "description": "", "templateType": "anything", "can_override": false}, "tarps": {"name": "tarps", "group": "Ungrouped variables", "definition": "factor3* random(1..12)*10", "description": "", "templateType": "anything", "can_override": false}, "bpspots": {"name": "bpspots", "group": "Ungrouped variables", "definition": "factor2*factor3", "description": "", "templateType": "anything", "can_override": false}, "avg": {"name": "avg", "group": "Ungrouped variables", "definition": "(percent*tarps)/(100*bpspots)", "description": "", "templateType": "anything", "can_override": false}, "factor1": {"name": "factor1", "group": "Ungrouped variables", "definition": "[1,1,2,1,2,1,2,3][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..7)", "description": "", "templateType": "anything", "can_override": false}, "factor2": {"name": "factor2", "group": "Ungrouped variables", "definition": "[2,3,2,5,3,7,4,3][idx]", "description": "", "templateType": "anything", "can_override": false}, "factor3": {"name": "factor3", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["percent", "tarps", "bpspots", "avg", "factor1", "idx", "factor2", "factor3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

What is the average Off-Peak TARP?

", "minValue": "avg", "maxValue": "avg", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Cost for a pre-roll campaign", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given a campaign budget and a number of impressions, calculate either the Cost per View, or the Cost per 1000 Views.

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

A pre-roll ad is a video advertisement that automatically plays directly before a feqtured video on both mobile and desktop.

\n

You have bought a pre-roll video campaign and paid \\${separateThousands(campaign,\",\")} for {separateThousands(impressions,\",\")} impressions. 

", "advice": "

The CPV (Cost per View) for the campaign = cost for one impression =  \\${SeparateThousands(campaign,\",\")} $\\div$ {SeparateThousands(impressions,\",\")} = \\${precround(campaign/impressions,4)}

\n

The CPM (Cost per Thousand) for the campaign = 1,000 $\\times$ CPV = 1,000 $\\times$ \\${precround(campaign/impressions,4)} = \\${precround(campaign*1000/impressions,2)}.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "typestring": {"name": "typestring", "group": "Ungrouped variables", "definition": "[\"CPV (cost per view)\",\"CPM (cost per thousand impressions)\"][idx]", "description": "", "templateType": "anything", "can_override": false}, "impressions": {"name": "impressions", "group": "Ungrouped variables", "definition": "random(10000..1000000#10000)", "description": "", "templateType": "anything", "can_override": false}, "campaign": {"name": "campaign", "group": "Ungrouped variables", "definition": "random(10000..500000#10000)", "description": "", "templateType": "anything", "can_override": false}, "minval": {"name": "minval", "group": "Ungrouped variables", "definition": "floor(val*100)/100", "description": "", "templateType": "anything", "can_override": false}, "maxval": {"name": "maxval", "group": "Ungrouped variables", "definition": "ceil(val*100)/100", "description": "", "templateType": "anything", "can_override": false}, "val": {"name": "val", "group": "Ungrouped variables", "definition": "[campaign/impressions,campaign/impressions*1000][idx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["idx", "typestring", "impressions", "campaign", "minval", "maxval", "val"], "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": "

You will advise your client that you have agreed a {typestring} of \\$[[0]] for the campaign.

", "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": "minval", "maxValue": "maxval", "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": "Find the total TARPs as reach x frequency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given reach and frequency, calculate TARPS. Multiple choice question.

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

A {week}-week burst of TV advertising has been purchased. 

\n

The reach is {reach}% with an average frequency of {frequency}.

", "advice": "

Total TARPS = reach $\\times$ frequency = {reach} $\\times$ {frequency} = {answer1}.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"reach": {"name": "reach", "group": "Ungrouped variables", "definition": "random(10..70)", "description": "", "templateType": "anything", "can_override": false}, "frequency": {"name": "frequency", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "week": {"name": "week", "group": "Ungrouped variables", "definition": "random(2..8)", "description": "", "templateType": "anything", "can_override": false}, "answer1": {"name": "answer1", "group": "Ungrouped variables", "definition": "reach*frequency", "description": "", "templateType": "anything", "can_override": false}, "answer2": {"name": "answer2", "group": "Ungrouped variables", "definition": "reach*week", "description": "", "templateType": "anything", "can_override": false}, "answer3": {"name": "answer3", "group": "Ungrouped variables", "definition": "int(reach*frequency/week)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["reach", "frequency", "week", "answer1", "answer2", "answer3"], "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": "

Can you work out the total TARPs from this information?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["yes: total TARPS are {answer1} across the burst.", "yes: total TARPS are {answer2} across the burst.", "yes: total TARPS are {answer3}.", "no: you also need to know the percentage of peak airtime being bought."], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "How many sales were delivered?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given Campaign budget and cost per acquisition, calculate the number of sales.

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

A campaign cost \\${separateThousands(campaign,\",\")}.

\n

The Cost per Acquisition (CPA) was \\${CPA}.

", "advice": "

Number of sales = Cost of campaign $\\div$ CPA = \\${separateThousands(campaign,\",\")} $\\div$ \\${CPA} = {separateThousands(sales,\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"campaign": {"name": "campaign", "group": "Ungrouped variables", "definition": "cpa*sales", "description": "", "templateType": "anything", "can_override": false}, "cpa": {"name": "cpa", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "", "templateType": "anything", "can_override": false}, "sales": {"name": "sales", "group": "Ungrouped variables", "definition": "random(flatten([10..100#10,100..1000#100,1000..10000#1000]))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["campaign", "cpa", "sales"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many sales did the campaign deliver?

", "minValue": "sales", "maxValue": "sales", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Number of impressions served", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given n = k%, what is 100%?

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

You've received {separateThousands(clicks,\",\")} clicks. The CTR (Click Through Rate) was {CTR}%. How many impressions were served?

", "advice": "

A CTR of {CTR}% means that {CTR}% of people who were served the ad clicked on it.

\n

We need to find 100% of the people who were served the ad.

\n

{CTR}% = {clicks}

\n

1% = $\\frac{\\var{clicks}}{\\var{CTR}}$

\n

100% = $\\frac{\\var{clicks}\\times 100}{\\var{CTR}}$ = {separateThousands(total,\",\")}

\n

So {separateThousands(total,\",\")} people were served the ad.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ctr": {"name": "ctr", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "clicks": {"name": "clicks", "group": "Ungrouped variables", "definition": "random(100..10000#100)*ctr", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "clicks*100/ctr", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ctr", "clicks", "total"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "total", "maxValue": "total", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Number of sales created by a campaign", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given budget and cost per acquistion, how many sales were created?

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

The media budget for an advertising campaign was \\${separateThousands(budget,\",\")}.

\n

The CPA (Cost per Acqusition) was \\${separateThousands(CPA,\",\")}.

", "advice": "

Number of sales = budget $\\div$ CPA = \\${separateThousands(budget,\",\")} $\\div$ \\${CPA} = {separateThousands(int(sales),\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cpa": {"name": "cpa", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "", "templateType": "anything", "can_override": false}, "budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(10..1000)*1000", "description": "", "templateType": "anything", "can_override": false}, "sales": {"name": "sales", "group": "Ungrouped variables", "definition": "budget/cpa", "description": "", "templateType": "anything", "can_override": false}, "minsales": {"name": "minsales", "group": "Ungrouped variables", "definition": "floor(sales)", "description": "", "templateType": "anything", "can_override": false}, "maxsales": {"name": "maxsales", "group": "Ungrouped variables", "definition": "ceil(sales)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cpa", "budget", "sales", "minsales", "maxsales"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many sales did the campaign deliver? Give your answer to the nearest whole number of sales.

", "minValue": "{minsales}", "maxValue": "{maxsales}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Optimisation strategy", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given a total budget and the cost of each sale for three different scenarios, which scenario produces the most sales?

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

Which of the following strategies will deliver the greatest volume of sales for a campaign?

", "advice": "

\\${separateThousands(budget[0],\",\")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[0],\",\")} means that each sale costs \\${separateThousands(CPA[0],\",\")}.

\n

Since we spent \\${separateThousands(budget[0],\",\")}, there were \\${separateThousands(budget[0],\",\")} $\\div$ \\${separateThousands(CPA[0],\",\")} = {separateThousands(ratios[0],\",\")} sales.

\n

\\${separateThousands(budget[1],\" \")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[1],\",\")} means that each sale costs \\${separateThousands(CPA[1],\",\")}.

\n

Since we spent \\${separateThousands(budget[1],\",\")}, there were \\${separateThousands(budget[1],\",\")} $\\div$ \\${separateThousands(CPA[1],\",\")} = {separateThousands(ratios[1],\",\")} sales.

\n

\\${separateThousands(budget[2],\",\")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[2],\",\")} means that each sale costs \\${separateThousands(CPA[2],\",\")}.

\n

Since we spent \\${separateThousands(budget[2],\",\")}, there were \\${separateThousands(budget[2],\",\")} $\\div$ \\${separateThousands(CPA[2],\",\")} = {separateThousands(ratios[2],\",\")} sales. So this option results in the most sales.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"shiftup": {"name": "shiftup", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "shiftdown": {"name": "shiftdown", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "middleratio": {"name": "middleratio", "group": "Ungrouped variables", "definition": "random(80..120)", "description": "", "templateType": "anything", "can_override": false}, "ratios": {"name": "ratios", "group": "Ungrouped variables", "definition": "[middleratio-shiftdown,middleratio,middleratio+shiftup]", "description": "

These are the values of the three campaigns. The third value is the best option.

", "templateType": "anything", "can_override": false}, "CPA": {"name": "CPA", "group": "Ungrouped variables", "definition": "shuffle(50..250 # 10)[0..3]", "description": "", "templateType": "anything", "can_override": false}, "budget": {"name": "budget", "group": "Ungrouped variables", "definition": "[CPA[0]*ratios[0],CPA[1]*ratios[1],CPA[2]*ratios[2]]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["shiftup", "shiftdown", "middleratio", "ratios", "CPA", "budget"], "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, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

\\${separateThousands(budget[0],\" \")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[0],\" \")}

", "\\${separateThousands(budget[1],\" \")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[1],\" \")}", "\\${separateThousands(budget[2],\" \")} budget spent at CPA (cost per acquisition) of \\${separateThousands(CPA[2],\" \")}"], "matrix": [0, 0, "1"], "distractors": ["", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Allocating a budget", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Calculate a percentage of a number.

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

The total budget for a tv advertising campaign is \\${separateThousands(budget,\",\")}.

\n

The budget is to be split as follows:

\n", "advice": "

Allocations are as follows:

\n

Channel 7: {ch7}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch7/100,\",\")}

\n

Channel 9: {ch9}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch9/100,\",\")}

\n

Channel 10: {ch10}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch10/100,\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(500000..1500000#50000)", "description": "", "templateType": "anything", "can_override": false}, "ch7": {"name": "ch7", "group": "Ungrouped variables", "definition": "random(10..50)", "description": "", "templateType": "anything", "can_override": false}, "ch9": {"name": "ch9", "group": "Ungrouped variables", "definition": "random(10..50)", "description": "", "templateType": "anything", "can_override": false}, "ch10": {"name": "ch10", "group": "Ungrouped variables", "definition": "100-ch9-ch7", "description": "", "templateType": "anything", "can_override": false}, "channel": {"name": "channel", "group": "Ungrouped variables", "definition": "[7,9,10][idx]", "description": "", "templateType": "anything", "can_override": false}, "minallocation": {"name": "minallocation", "group": "Ungrouped variables", "definition": "floor(allocation)", "description": "", "templateType": "anything", "can_override": false}, "maxallocation": {"name": "maxallocation", "group": "Ungrouped variables", "definition": "ceil(allocation)", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "[ch7,ch9,ch10][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "allocation": {"name": "allocation", "group": "Ungrouped variables", "definition": "percentage*budget/100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "ch7", "ch9", "ch10", "channel", "minallocation", "maxallocation", "percentage", "idx", "allocation"], "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 much money is allocated to Channel {channel}?

\n

$[[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": "minallocation", "maxValue": "maxallocation", "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": "Calculate campaign CPM", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given Cost per View, and View through rate, what is the cost for 1000 actual views?

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

A YouTube skippable ad campaign had a cost per view (CPV) of \\${CPV}.

\n

The total number of views was {SeparateThousands(TotalViews,\",\")}.

\n

The View Through Rate (the number of viewers who watched the ad for at least 30 s) was {VTR}%.

", "advice": "

Since we are given the CPV, the total number of viewers is irrelevant.

\n

The cost per 1,000 views is \\${CPV}$\\times$ 1,000 = {SeparateThousands(CPV*1000,\",\")}

\n

We then multiply by the percentage of people who actually watch the ad through, that is {VTR}% to get:

\n

Campaign CPM = \\${CPV}$\\times$ 1,000 $\\times$ {VTR}% = \\${precround(CPM,2)}.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cpv": {"name": "cpv", "group": "Ungrouped variables", "definition": "random(flatten([0.01..0.99,1..9,10..100#5]))", "description": "", "templateType": "anything", "can_override": false}, "totalviews": {"name": "totalviews", "group": "Ungrouped variables", "definition": "random(10000..200000 # 1000)", "description": "", "templateType": "anything", "can_override": false}, "vtr": {"name": "vtr", "group": "Ungrouped variables", "definition": "random(1..30)", "description": "", "templateType": "anything", "can_override": false}, "mincpm": {"name": "mincpm", "group": "Ungrouped variables", "definition": "floor(cpm)", "description": "", "templateType": "anything", "can_override": false}, "maxcpm": {"name": "maxcpm", "group": "Ungrouped variables", "definition": "ceil(cpm)", "description": "", "templateType": "anything", "can_override": false}, "cpm": {"name": "cpm", "group": "Ungrouped variables", "definition": "cpv*1000*(vtr/100)", "description": "

cost per 1000 view x the percentage of people who let the ad play without skipping.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cpv", "totalviews", "vtr", "mincpm", "maxcpm", "cpm"], "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 was the campaign CPM (cost per 1,000 completed views)?

\n

CPM = $[[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": "minCPM", "maxValue": "maxCPM", "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": "Calculate the number of impressions bought", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given a campaign budget and a CPM, calculate the number of impressions.

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

{name} (a media agency buyer) spent \\${formatnumber(campaign,\"si-en\")} on a campaign and paid \\${CPM} CPM (cost per thousand) for display banner ads.  

", "advice": "

For every \\${CPM} we spend, we buy 1,000 impressions (viewings).

\n

We need to calculate how many lots of 1,000 viewings we can buy with \\${formatnumber(campaign,\"si-en\")}.

\n

This is \\${formatnumber(campaign,\"si-en\")} $\\div$ \\${CPM} = {separateThousands(floor(impressions)/1000,\",\")}

\n

This is the number of thousands of impressions.

\n

To get the number of impressions we multiply by 1 000.

\n

Number of impressions = {separateThousands(floor(impressions)/1000,\",\")} $\\times$ 1000= {separateThousands(floor(impressions),\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"person": {"name": "person", "group": "Ungrouped variables", "definition": "random_person()", "description": "", "templateType": "anything", "can_override": false}, "name": {"name": "name", "group": "Ungrouped variables", "definition": "person['name']", "description": "", "templateType": "anything", "can_override": false}, "their": {"name": "their", "group": "Ungrouped variables", "definition": "person[\"pronouns\"][\"their\"]", "description": "", "templateType": "anything", "can_override": false}, "theirs": {"name": "theirs", "group": "Ungrouped variables", "definition": "person['pronouns']['theirs']", "description": "", "templateType": "anything", "can_override": false}, "them": {"name": "them", "group": "Ungrouped variables", "definition": "person[\"pronouns\"][\"them\"]", "description": "", "templateType": "anything", "can_override": false}, "they": {"name": "they", "group": "Ungrouped variables", "definition": "person[\"pronouns\"][\"they\"]", "description": "", "templateType": "anything", "can_override": false}, "themself": {"name": "themself", "group": "Ungrouped variables", "definition": "person[\"pronouns\"][\"themself\"]", "description": "", "templateType": "anything", "can_override": false}, "neutral": {"name": "neutral", "group": "Ungrouped variables", "definition": "person['gender']='neutral'", "description": "", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "if(neutral,'','s')", "description": "", "templateType": "anything", "can_override": false}, "campaign": {"name": "campaign", "group": "Ungrouped variables", "definition": "random(1..100)*10000", "description": "

The amount spent on the advertising campaign

", "templateType": "anything", "can_override": false}, "CPM": {"name": "CPM", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "

cost per 1000 displays

", "templateType": "anything", "can_override": false}, "impressions": {"name": "impressions", "group": "Ungrouped variables", "definition": "campaign/CPM*1000", "description": "

the number of impressions purchased.

", "templateType": "anything", "can_override": false}, "maximpressions": {"name": "maximpressions", "group": "Ungrouped variables", "definition": "ceil(impressions)", "description": "", "templateType": "anything", "can_override": false}, "minimpressions": {"name": "minimpressions", "group": "Ungrouped variables", "definition": "floor(impressions)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["person", "name", "their", "theirs", "them", "they", "themself", "neutral", "s", "campaign", "CPM", "impressions", "maximpressions", "minimpressions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many impressions would {they} have bought?

\n

Give the whole number part of your answer. Discard any decimal part.

", "minValue": "maximpressions", "maxValue": "minimpressions", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Cost per Acquisition", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given budget and number of sales, calculate the cost per acquisition (CPA)

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

{separateThousands(sales,\",\")} individuals responded to your campaign and bought a ticket to your event. You spent \\${separateThousands(campaign,\",\")} on the campaign.

", "advice": "

Cost per Acquisition (CPA) = Cost of campaign $\\div$ number of sales = \\${separateThousands(campaign,\",\")} $\\div$ {separateThousands(sales,\",\")} = \\${CPA}.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"sales": {"name": "sales", "group": "Ungrouped variables", "definition": "random(1000..100000#100)", "description": "", "templateType": "anything", "can_override": false}, "campaign": {"name": "campaign", "group": "Ungrouped variables", "definition": "sales*CPA", "description": "", "templateType": "anything", "can_override": false}, "CPA": {"name": "CPA", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["sales", "campaign", "CPA"], "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 was your CPA (Cost per Acquisition)?

\n

\\$[[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": "CPA", "maxValue": "CPA", "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": "What proportion of clicks?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

A proportions question. Given the total number of impressions, and the number of impressions that were clicked, what percentage were clicked?

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

A digital campaign served {SeparateThousands(impressions,\",\")} impressions and received {SeparateThousands(clicks,\",\")} clicks.

\n

The Click Through Rate (CTR) is the percentage of impressions that received a click.

", "advice": "

Click Through Rate (CTR)= proportion of impressions that were clicked = $\\frac{\\var{clicks}}{\\var{impressions}}= \\var{clicks}\\div\\var{impressions}=\\var{CTR/100}=\\var{CTR}\\%$

\n

alternatively,

\n

Click Through Rate (CTR)= proportion of impressions that were clicked = $\\frac{\\var{clicks}}{\\var{impressions}}\\times$100% = {CTR}%

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"impressions": {"name": "impressions", "group": "Ungrouped variables", "definition": "clicks/ctr*100", "description": "", "templateType": "anything", "can_override": false}, "clicks": {"name": "clicks", "group": "Ungrouped variables", "definition": "random(1..1000)*ctr", "description": "", "templateType": "anything", "can_override": false}, "ctr": {"name": "ctr", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["impressions", "clicks", "ctr"], "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 Click Through Rate for this campaign is [[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": "CTR", "maxValue": "CTR", "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": "Calculate a percentage of a potential audience", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Find a percentage of a given population. Percentage and population are both randomised.

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

A digital advertising campaign has a budget of \\${separateThousands(budget,\",\")} and a potential audience of {separateThousands(pa,\",\")}.

\n

It is expected that $\\var{percent}\\%$ of the potential audience will watch the ad through to the end.

", "advice": "

We need to calculate {percent}% of {separateThousands(pa,\",\")}

\n

{percent}% $\\times$ {separateThousands(pa,\",\")} = {separateThousands(viewers,\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(1..100)*10000", "description": "", "templateType": "anything", "can_override": false}, "pa": {"name": "pa", "group": "Ungrouped variables", "definition": "random(5..50)*10000", "description": "", "templateType": "anything", "can_override": false}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(1..6)*10", "description": "", "templateType": "anything", "can_override": false}, "viewers": {"name": "viewers", "group": "Ungrouped variables", "definition": "percent/100*pa", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "pa", "percent", "viewers"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many people are expected to watch the ad to the end?

", "minValue": "viewers", "maxValue": "viewers", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate CPA", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given potential audience, the percentage that view, and the percentage of these that click, calculate the CPA by dividing potential audience by clickers. 

\n

All numbers randomised.

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

A digital advertising campaign has a budget of \\${separateThousands(budget,\",\")}.

\n

The potential audience size is {separateThousands(pa,\",\")}.

\n

The campaign is expected to reach {percent}% of the potential audience.

\n

It is expected that {buypercent}% of viewers will click on the ad to go to the advertiser's website.

", "advice": "

Number of viewers = {percent}% $\\times$ {separateThousands(pa,\",\")} = {separateThousands(viewers,\",\")}

\n

Number of clickers = {buypercent}% $\\times$ {separateThousands(viewers,\",\")} = {separateThousands(clickers,\",\")}

\n

Cost per acquisition = $\\frac{\\var{separateThousands(budget,\",\")}}{\\var{separateThousands(clickers,\",\")}} = \\$\\var{precround(CPA,2)}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(1,20)*100000", "description": "", "templateType": "anything", "can_override": false}, "pa": {"name": "pa", "group": "Ungrouped variables", "definition": "random(5..50)*100000", "description": "", "templateType": "anything", "can_override": false}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(3..6)*10", "description": "", "templateType": "anything", "can_override": false}, "buypercent": {"name": "buypercent", "group": "Ungrouped variables", "definition": "random(0.5,1,1.5,2)", "description": "", "templateType": "anything", "can_override": false}, "viewers": {"name": "viewers", "group": "Ungrouped variables", "definition": "pa*percent/100", "description": "", "templateType": "anything", "can_override": false}, "clickers": {"name": "clickers", "group": "Ungrouped variables", "definition": "viewers*buypercent/100", "description": "", "templateType": "anything", "can_override": false}, "CPA": {"name": "CPA", "group": "Ungrouped variables", "definition": "budget/clickers", "description": "", "templateType": "anything", "can_override": false}, "CPAfloor": {"name": "CPAfloor", "group": "Ungrouped variables", "definition": "precround(CPA,2)-0.01", "description": "", "templateType": "anything", "can_override": false}, "CPAceil": {"name": "CPAceil", "group": "Ungrouped variables", "definition": "precround(CPA,2)+0.01", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "pa", "percent", "buypercent", "viewers", "clickers", "CPA", "CPAfloor", "CPAceil"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many targeted people are expected to view the ad?

", "minValue": "viewers", "maxValue": "viewers", "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, "prompt": "

How many people are expected to click on the ad?

", "minValue": "clickers", "maxValue": "clickers", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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 was the average cost to acquire each one of these viewers (to get them to visit the advertiser's website)?

\n

Round your answer to the nearest cent.

\n

$[[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": "CPAfloor", "maxValue": "CPAceil", "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": "Calculate CPM given cost for n impressions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given the cost for 1, 1000, 10000 or 100000 impressions, what is the cost for 1000?

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

If it costs \\${cost} for {separateThousands(impressions,\",\")} {impstr} of an advertisment, then the CPM (cost per 1,000 impressions) is:

", "advice": "

Impressions cost \\${cost} for {separateThousands(impressions,\",\")} {impstr}

\n

So the cost for 1 impression is \\${cost} $\\div$ {separateThousands(impressions,\",\")} = \\$$\\var{CPM/1000}$

\n

So the cost for 1,000 impressions (CPM) is \\${cost} $\\div$ {separateThousands(impressions,\",\")} $\\times$ 1000 = \\$$\\var{CPM}$

\n

So the cost for 1,000 impressions (CPM) is \\${cost} $\\times$ 1,000 = \\$$\\var{CPM}$

\n

The cost for 1,000 impressions is simply \\$$\\var{cost}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "impressions": {"name": "impressions", "group": "Ungrouped variables", "definition": "[1,1000,10000,100000][idx]", "description": "", "templateType": "anything", "can_override": false}, "impstr": {"name": "impstr", "group": "Ungrouped variables", "definition": "[\"impression\",\"impressions\",\"impressions\",\"impressions\"][idx]", "description": "", "templateType": "anything", "can_override": false}, "cost": {"name": "cost", "group": "Ungrouped variables", "definition": "random(1..9)*0.01*impressions", "description": "", "templateType": "anything", "can_override": false}, "cpm": {"name": "cpm", "group": "Ungrouped variables", "definition": "[cost*1000,cost,cost/10,cost/100][idx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["idx", "impressions", "impstr", "cost", "cpm"], "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": "

\\$[[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": "CPM", "maxValue": "CPM", "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": "Calculate CPT", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given number of TARPs and total price, calculate the Cost per TARP.

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

A media agency buys {tarps} TARPs from a TV station for \\${separateThousands(price,\",\")}

", "advice": "

The cost for {tarps} TARPs is \\${separateThousands(price,\",\")}

\n

so the cost for one TARP (the CPT) is $\\frac{\\var{separateThousands(price,\",\")}}{\\var{tarps}} = \\$\\var{CPT}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cptfloor": {"name": "cptfloor", "group": "Ungrouped variables", "definition": "CPT-0.01", "description": "", "templateType": "anything", "can_override": false}, "cptceil": {"name": "cptceil", "group": "Ungrouped variables", "definition": "CPT+0.01", "description": "", "templateType": "anything", "can_override": false}, "CPT": {"name": "CPT", "group": "Ungrouped variables", "definition": "precround(price/tarps,2)", "description": "", "templateType": "anything", "can_override": false}, "tarps": {"name": "tarps", "group": "Ungrouped variables", "definition": "random(75..150)", "description": "", "templateType": "anything", "can_override": false}, "price": {"name": "price", "group": "Ungrouped variables", "definition": "random(10000..20000#10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cptfloor", "cptceil", "CPT", "tarps", "price"], "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 average cost per tarp (CPT)?

\n

$[[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": "CPTfloor", "maxValue": "CPTceil", "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": "Calculate CPV", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given a budget and the number of views, calculate the cost per view. All numbers are randomised.

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

\\${separateThousands(budget,\",\")} is spent on a digital advertising campaign. The ad is viewed {separateThousands(views,\",\")} times.

", "advice": "

The cost per view (CPV) is the cost for 1 view = \\${separateThousands(budget,\",\")} $\\div$ {separateThousands(views,\",\")} = \\$$\\var{precround(CPV,2)}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(100,1500)*1000", "description": "", "templateType": "anything", "can_override": false}, "views": {"name": "views", "group": "Ungrouped variables", "definition": "random(1..5000)*1000", "description": "", "templateType": "anything", "can_override": false}, "cpvfloor": {"name": "cpvfloor", "group": "Ungrouped variables", "definition": "floor(cpv*100)/100", "description": "", "templateType": "anything", "can_override": false}, "cpvceil": {"name": "cpvceil", "group": "Ungrouped variables", "definition": "ceil(cpv*100)/100", "description": "", "templateType": "anything", "can_override": false}, "cpv": {"name": "cpv", "group": "Ungrouped variables", "definition": "budget/views", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "views", "cpvfloor", "cpvceil", "cpv"], "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 average cost per view (CPV)? Answer to the nearest cent.

\n

CPV = \\$[[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": "CPVfloor", "maxValue": "CPVceil", "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": "Calculate CTR", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Calculate CTR given number of clicks and number of impressions served.

\n

percentage CTR is 0.5, 1, 1.5 or 2%. Number of impressions is randomised.

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

During a digital media campaign {separateThousands(imps,\",\")} impressions were delivered, and {separateThousands(clickers,\",\")} people clicked on the ad.

\n
\n
\n
", "advice": "

click through rate (CTR) = the proportion of viewers who clicked the ad out of all the viewers = $\\frac{\\var{separateThousands(clickers,\",\")}}{\\var{separateThousands(imps,\",\")}}=\\var{ctr/100} = \\var{ctr}\\%$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ctr": {"name": "ctr", "group": "Ungrouped variables", "definition": "random(0.5,1,1.5,2)", "description": "", "templateType": "anything", "can_override": false}, "imps": {"name": "imps", "group": "Ungrouped variables", "definition": "random(1..5)*100000", "description": "", "templateType": "anything", "can_override": false}, "clickers": {"name": "clickers", "group": "Ungrouped variables", "definition": "imps*ctr/100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ctr", "imps", "clickers"], "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 was the percentage click through rate (CTR)?

\n

CTR = [[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": "ctr", "maxValue": "ctr", "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": "Calculate number of clicks from budget and CPC", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

clicks = budget/CPC

\n

All numbers are randomised.

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

A digital media platform sells advertising for \\${cpc} CPC (cost per click). If the advertiser is billed \\${separateThousands(bill,\",\")}, how many times did people click on the ad?

\n
\n
\n
", "advice": "

Number of clickers = total cost $\\div$ cost per click = \\${separateThousands(bill,\",\")} $\\div$ {cpc} = {separateThousands(clickers,\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"bill": {"name": "bill", "group": "Ungrouped variables", "definition": "clickers*cpc", "description": "", "templateType": "anything", "can_override": false}, "cpc": {"name": "cpc", "group": "Ungrouped variables", "definition": "random(0.01..1.50)", "description": "", "templateType": "anything", "can_override": false}, "clickers": {"name": "clickers", "group": "Ungrouped variables", "definition": "random(100..200000)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["bill", "cpc", "clickers"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "clickers", "maxValue": "clickers", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate number of viewers who click an ad given a click through rate", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

percentage rate is 0.5, 1, 1.5 or 2%. Number of impressions is randomised.

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

A digital advertising campaign is expected to have a click through rate (CTR) of {ctr}%. If {separateThousands(imps,\",\")} impressions are served, how many users are expected to click through?

\n
\n
\n
", "advice": "

number of viewers who click the ad = {ctr}% $\\times$ {separateThousands(imps,\",\")} = {separateThousands(clickers,\",\")}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ctr": {"name": "ctr", "group": "Ungrouped variables", "definition": "random(0.5,1,1.5,2)", "description": "", "templateType": "anything", "can_override": false}, "imps": {"name": "imps", "group": "Ungrouped variables", "definition": "random(1..5)*100000", "description": "", "templateType": "anything", "can_override": false}, "clickers": {"name": "clickers", "group": "Ungrouped variables", "definition": "imps*ctr/100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ctr", "imps", "clickers"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "clickers", "maxValue": "clickers", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate proportion of potential audience that watch an ad", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Find a percentage of a given population. Percentage and population are both randomised.

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

A digital advertising campaign has a budget of \\${separateThousands(budget,\",\")} and a potential audience of {separateThousands(pa,\",\")}.

\n

It is expected that {separateThousands(viewers,\",\")} of the potential audience will watch the ad through to the end.

", "advice": "

We need to calculate the proportion {separateThousands(viewers,\",\")} out of {separateThousands(pa,\",\")}

\n

i.e. $\\frac{\\var{separateThousands(viewers,\",\")}}{\\var{separateThousands(pa,\",\")}} = \\var{percent/100} = \\var{percent}\\%$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(1..150)*10000", "description": "", "templateType": "anything", "can_override": false}, "pa": {"name": "pa", "group": "Ungrouped variables", "definition": "random(5..50)*10000", "description": "", "templateType": "anything", "can_override": false}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(1..6)*10", "description": "", "templateType": "anything", "can_override": false}, "viewers": {"name": "viewers", "group": "Ungrouped variables", "definition": "percent/100*pa", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "pa", "percent", "viewers"], "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 percentage of the potential audience are expected to watch the ad to the end?

\n

[[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": "{percent}", "maxValue": "{percent}", "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": "Given CPM calculate cost for n impressions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

n = 1, 1000, 10000, or 100000.

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

If a digital platform charges a CPM (cost per 1,000 impressions) of \\${CPM} then what is the cost for {separateThousands(impressions,\",\")} {impstr}?

", "advice": "

The cost for 1,000 impressions is \\${CPM}

\n

The cost for 1 impression is \\${CPM} $\\div$ 1,000 = \\$$\\var{cost}$

\n

The cost for 10,000 impressions is \\${CPM} $\\times$ 10 = \\$$\\var{cost}$

\n

The cost for 100,000 impressions is = \\${CPM} $\\times$ 100 = \\$$\\var{cost}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "impressions": {"name": "impressions", "group": "Ungrouped variables", "definition": "[1,1000,10000,100000][idx]", "description": "", "templateType": "anything", "can_override": false}, "impstr": {"name": "impstr", "group": "Ungrouped variables", "definition": "[\"impression\",\"impressions\",\"impressions\",\"impressions\"][idx]", "description": "", "templateType": "anything", "can_override": false}, "cost": {"name": "cost", "group": "Ungrouped variables", "definition": "random(1..9)*0.01*impressions", "description": "", "templateType": "anything", "can_override": false}, "cpm": {"name": "cpm", "group": "Ungrouped variables", "definition": "[cost*1000,cost,cost/10,cost/100][idx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["idx", "impressions", "impstr", "cost", "cpm"], "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": "

\\$[[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": "cost", "maxValue": "cost", "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": "Potential audience size", "extensions": [], "custom_part_types": [], "resources": [["question-resources/OzTAM_estimates.png", "/srv/numbas/media/question-resources/OzTAM_estimates.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Read a value from a table. There are 36 possible questions.

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

\n

Target audience = Children aged {agestring} living in {citystring}.

", "advice": "

Look through the table to find the \"Children {agestring}\" row.

\n

Then find the column for {citystring}.

\n

The value in this column is {universestring}

\n

Then find the columns for {citystring}.

\n

Read off the two values.

\n

We need to add these two values together: {universestring} = {universe}

\n

This is the value of the potential audience in thousands.

\n

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"agestring": {"name": "agestring", "group": "Ungrouped variables", "definition": "[\"0-4\",\"2-9\",\"5-12\",\"10-17\",\"13-17\",\"0-17\"][ageidx]", "description": "", "templateType": "anything", "can_override": false}, "ageidx": {"name": "ageidx", "group": "Ungrouped variables", "definition": "random(0..5)", "description": "", "templateType": "anything", "can_override": false}, "cityidx": {"name": "cityidx", "group": "Ungrouped variables", "definition": "random(0..5)", "description": "", "templateType": "anything", "can_override": false}, "citystring": {"name": "citystring", "group": "Ungrouped variables", "definition": "[\"Sydney\",\"Melbourne\",\"Brisbane\",\"Sydney and Melbourne\",\"Sydney and Brisbane\",\"Melbourne and Brisbane\"][cityidx]", "description": "", "templateType": "anything", "can_override": false}, "universe": {"name": "universe", "group": "Ungrouped variables", "definition": "[[329.3,324.3,210.3,329.3+324.3,329.3+210.3,324.3+210.3],\n [555.3,554.9,374.1,555.3+554.9,555.3+374.1,554.9+374.1],\n [518.8,520.4,363.6,518.8+520.4,518.8+363.6,520.4+363.6],\n [494.6,494.7,354.9,494.6+494.7,494.6+354.9,494.7+354.9],\n [307.8,308.4,218.9,307.8+308.4,307.8+218.9,308.4+218.9],\n [1155.9,1153.1,792.7,1155.9+1153.1,1155.9+792.7,1153.1+792.7]][ageidx][cityidx]", "description": "", "templateType": "anything", "can_override": false}, "universestring": {"name": "universestring", "group": "Ungrouped variables", "definition": "[[\"329.3\",\"324.3\",\"210.3\",\"329.3+324.3\",\"329.3+210.3\",\"324.3+210.3\"],\n [\"555.3\",\"554.9\",\"374.1\",\"555.3+554.9\",\"555.3+374.1\",\"554.9+374.1\"],\n [\"518.8\",\"520.4\",\"363.6\",\"518.8+520.4\",\"518.8+363.6\",\"520.4+363.6\"],\n [\"494.6\",\"494.7\",\"354.9\",\"494.6+494.7\",\"494.6+354.9\",\"494.7+354.9\"],\n [\"307.8\",\"308.4\",\"218.9\",\"307.8+308.4\",\"307.8+218.9\",\"308.4+218.9\"],\n [\"1155.9\",\"1153.1\",\"792.7\",\"1155.9+1153.1\",\"1155.9+792.7\",\"1153.1+792.7\"]][ageidx][cityidx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["agestring", "ageidx", "cityidx", "citystring", "universe", "universestring"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

How many thousands of people are in the potential audience?

", "minValue": "{universe}", "maxValue": "{universe}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "menu", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

These questions have been randomly selected from a pool of questions. If you run the quiz again you will see a different set of questions.

\n

If you choose to redo a question, the numbers will change, so you can practise each question as many times as you wish.

", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "extensions": ["random_person"], "custom_part_types": [], "resources": [["question-resources/OzTAM_estimates.png", "/srv/numbas/media/question-resources/OzTAM_estimates.png"]]}