// Numbas version: exam_results_page_options {"name": "The units of the answer tell you what to do (dimension analysis)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"showfrontpage": false, "allowregen": true, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["fulllist", "units", "nummarks", "denmarks"], "name": "The units of the answer tell you what to do (dimension analysis)", "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/", "name": "Ben Brawn"}], "statement": "

Evaluate the following without using a calculator.

\n

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again.

", "variable_groups": [], "preamble": {"js": "", "css": ""}, "variables": {"units": {"definition": "shuffle(fulllist)[0..2]", "name": "units", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "nummarks": {"definition": "map(if(fulllist[n]=units[0],0.33,0),n,list(0..length(fulllist)-1))", "name": "nummarks", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "fulllist": {"definition": "['mL','mg','hr','drops','min','kg','mcg','units']", "name": "fulllist", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "denmarks": {"definition": "map(if(fulllist[n]=units[1],0.33,0),n,list(0..length(fulllist)-1))", "name": "denmarks", "description": "", "group": "Ungrouped variables", "templateType": "anything"}}, "advice": "

\"{units[0]}/{units[1]}\" is often read as \"{units[0]} per {units[1]}\" but it is important to realise that the slash is actually the division symbol! It is telling you that you should take the {units[0]} and divide by the amount of {units[1]}. Note that, $\\displaystyle \\var{units[0]}/\\var{units[1]}=\\frac{\\var{units[0]}}{\\var{units[1]}}$.

", "tags": [], "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Nursing question. "}, "functions": {}, "rulesets": {}, "parts": [{"gaps": [{"unitTests": [], "type": "1_n_2", "shuffleChoices": true, "customName": "", "matrix": "nummarks", "displayColumns": 0, "showCellAnswerState": true, "choices": "fulllist", "customMarkingAlgorithm": "", "displayType": "dropdownlist", "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true, "maxMarks": 0, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "minMarks": 0}, {"distractors": ["", "", "", ""], "unitTests": [], "type": "1_n_2", "shuffleChoices": true, "customName": "", "matrix": [0, "0.34", 0, 0], "displayColumns": 0, "showCellAnswerState": true, "choices": ["multiply", "divide by", "add", "take away"], "customMarkingAlgorithm": "", "displayType": "dropdownlist", "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true, "maxMarks": 0, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "minMarks": 0}, {"unitTests": [], "type": "1_n_2", "shuffleChoices": true, "customName": "", "matrix": "denmarks", "displayColumns": 0, "showCellAnswerState": true, "choices": "fulllist", "customMarkingAlgorithm": "", "displayType": "dropdownlist", "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true, "maxMarks": 0, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "minMarks": 0}], "unitTests": [], "sortAnswers": false, "customName": "", "prompt": "

Suppose you are asked to calculate something and the units of the answer are given as {units[0]}/{units[1]}. The units given suggest you should take the amount of [[0]] and [[1]] the amount of [[2]].

", "variableReplacementStrategy": "originalfirst", "useCustomName": false, "marks": 0, "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "customMarkingAlgorithm": ""}]}]}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/", "name": "Ben Brawn"}]}