// Numbas version: finer_feedback_settings {"name": "Bar charts", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Untitled_2_DcrVMAD.png", "Untitled_2_DcrVMAD.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Bar charts", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
A group of people were asked to vote for their favourite British film of all time from a selection of six taken from the the BFI top 100. The following bar chart shows the results of the survey.
\n
Click \"Show Steps\" above to see how to answer this question.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "precround((freq2/49)*100,0)", "description": "", "templateType": "anything", "can_override": false}, "film1": {"name": "film1", "group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"])", "description": "", "templateType": "anything", "can_override": false}, "film2": {"name": "film2", "group": "Ungrouped variables", "definition": "random([\"The Third Man\",\"Brief Encounter\", \"Lawrence of Arabia\", \"The 39 Steps\", \"Great Expectations\",\"Kes\"] except film1)", "description": "", "templateType": "anything", "can_override": false}, "freq2": {"name": "freq2", "group": "Ungrouped variables", "definition": "switch(film2=\"The Third Man\",15,film2=\"Brief Encounter\",4,film2=\"Lawrence of Arabia\",13,film2=\"The 39 Steps\",8,film2=\"Great Expectations\",3,film2=\"Kes\",7,0)", "description": "", "templateType": "anything", "can_override": false}, "freq1": {"name": "freq1", "group": "Ungrouped variables", "definition": "switch(film1=\"The Third Man\",15,film1=\"Brief Encounter\",4,film1=\"Lawrence of Arabia\",13,film1=\"The 39 Steps\",8,film1=\"Great Expectations\",3,film1=\"Kes\",7,0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["film1", "film2", "freq1", "freq2", "percentage"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "How many people voted for {film1}?
\nAnswer: [[0]]
\n\n", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Find the bar for {film1}. Use the scale on the Y-axis to find how many people voted for it.
"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "freq1", "maxValue": "freq1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "How many people voted for either {film1} or {film2}?
\nAnswer: [[0]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "freq1 + freq2", "maxValue": "freq1 + freq2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What percentage of people surveyed voted for {film2}?
\nAnswer: [[0]]
", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "To find an exact percentage, if $n$ is the number of votes for {film2}, then you need to calculate
\n$\\frac{n}{\\text{total # of votes}} * 100$
\nSince there are 50 votes in total, you will be able to simplify this and give your answer as a whole number.
"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "percentage", "maxValue": "percentage", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "fay frost", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11926/"}, {"name": "Phillips Obasohan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11959/"}], "resources": ["question-resources/Untitled_2_DcrVMAD.png"]}]}], "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "fay frost", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11926/"}, {"name": "Phillips Obasohan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11959/"}]}