// Numbas version: exam_results_page_options {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate number of viewers who click an ad given a click through rate", "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": {}, "extensions": [], "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", "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/"}]}]}], "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/"}]}