// Numbas version: exam_results_page_options {"name": "Calculate CPV", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate CPV", "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": {}, "extensions": [], "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", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}