// Numbas version: exam_results_page_options {"name": "Keeping track of units (dimension analysis) 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"showfrontpage": false, "preventleave": false, "allowregen": true}, "question_groups": [{"questions": [{"ungrouped_variables": ["fulllist", "units", "seed"], "advice": "

In our situation

\n

\$\\frac{\\var{units[0]}}{\\var{units[0]}}\\times \\frac{\\var{units[1]}}{1}\$ \$\\frac{\\var{units[0]}\\times\\var{units[1]}}{\\var{units[0]}}\$

\n

the {units[0]} 'cancel', leaving $\\var{units[1]}$.

\n

So why do the {units[0]} cancel? Well, on the top of the fraction we have a '{units[0]}'  but we also have a '{units[0]}' on the bottom, and if you divide something by itself you get $1$, which doesn't affect the units.

", "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

Suppose you calculate something using the following units and operations.

\n

\$\\frac{\\var{units[0]}}{\\var{units[0]}}\\times \\frac{\\var{units[1]}}{1}\$ \$\\frac{\\var{units[0]}\\times\\var{units[1]}}{\\var{units[0]}}\$

\n

What units would the final answer have?

\n

\n

[[0]] (type your answer without spaces)

", "marks": 0, "useCustomName": false, "type": "gapfill", "scripts": {}, "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "sortAnswers": false, "showFeedbackIcon": true, "customName": "", "variableReplacements": [], "gaps": [{"variableReplacementStrategy": "originalfirst", "marks": 1, "useCustomName": false, "type": "patternmatch", "unitTests": [], "scripts": {}, "matchMode": "regex", "answer": "{units[1]}", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "displayAnswer": "{units[1]}", "customName": "", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true}], "showCorrectAnswer": true}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": [], "extensions": [], "functions": {}, "metadata": {"description": "Nursing question. Determine the units of an answer given the units and operations used.", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Keeping track of units (dimension analysis) 2", "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "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.

", "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {"units": {"description": "", "templateType": "anything", "name": "units", "definition": "shuffle(fulllist)[0..2]", "group": "Ungrouped variables"}, "fulllist": {"description": "", "templateType": "anything", "name": "fulllist", "definition": "['mL','mg','hr','drops','min','kg','mcg','units']", "group": "Ungrouped variables"}, "seed": {"description": "", "templateType": "anything", "name": "seed", "definition": "random(0,1)", "group": "Ungrouped variables"}}}], "pickingStrategy": "all-ordered"}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}