// Numbas version: exam_results_page_options {"name": "mathcentre: Dimensions of measurement", "type": "exam", "feedback": {"showtotalmark": true, "advicethreshold": "0", "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": false, "questions": [], "percentPass": 0, "duration": 0, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "preventleave": true, "browse": true, "showfrontpage": false, "showresultspage": "never"}, "metadata": {"notes": "", "description": "

Testing your ability to manipulate SI units.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Converting units", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Stephanie Greaves", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/340/"}], "functions": {}, "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

You need to convert everything into grams:
So $\\var{cat}$kg = $\\var{cat*1000}$g
$\\var{dog}$g = $\\var{dog}$ g
$\\var{hamster}$mg = $\\var{hamster/1000}$g

\n

You have one bag of cat food = $\\var{cat*1000}$g
You have 2 bags of dog food = $\\var{dog*2}$ g
You have 3 packets of hamster treats = $\\var{(hamster/1000)*3}$g
Adding together gives $\\var{cat*1000}\\text{g}+\\var{dog*2}\\text{g} + \\var{(hamster/1000)*3}\\text{g} $ = $\\var{cat*1000+dog*2 + (hamster/1000)*3} $ g

", "rulesets": {}, "parts": [{"integerPartialCredit": 0, "integerAnswer": true, "scripts": {"mark": {"order": "instead", "script": "NumberEntryPart.prototype.mark.apply(this);\nif(this.credit==0) {\n this.markingComment(\"Reveal answer for help on this question.\");\n}"}}, "maxValue": "cat*1000+2*dog+3*(hamster/1000)", "minValue": "cat*1000+2*dog+3*(hamster/1000)", "showCorrectAnswer": true, "marks": "3", "type": "numberentry", "showPrecisionHint": false}], "statement": "

You have one bag of cat food weighing {cat}kg, two bags of dog food weighing {dog}g each, and three packets of hamster treats weighing {hamster}mg each.

\n

How much animal food do you have in total, in grams?

", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"cat": {"definition": "random(5..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "cat", "description": ""}, "hamster": {"definition": "random(5000..15000#1000)", "templateType": "randrange", "group": "Ungrouped variables", "name": "hamster", "description": ""}, "dog": {"definition": "random(500..1000#100)", "templateType": "randrange", "group": "Ungrouped variables", "name": "dog", "description": ""}}, "metadata": {"notes": "", "description": "

Calculations where you need to change the units.

"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Dimension manipulation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stephanie Greaves", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/340/"}], "functions": {}, "ungrouped_variables": ["weight", "mol"], "tags": [], "advice": "

There are 1000mg in 1 gram.

\n

1 mol with molecular weight (RMM) $\\var{mol}$ weighs $\\var{mol*10^3}$ mg.

\n

So in $\\var{weight}$mg we have $\\var{weight}\\div\\var{mol*10^3}$ = $\\var{siground(weight/(mol*10^3),3)}$ moles (to 3 significant figures).

\n

\n

", "rulesets": {}, "parts": [{"precisionType": "sigfig", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {"mark": {"order": "instead", "script": "NumberEntryPart.prototype.mark.apply(this);\nif(this.credit==0) {\n this.markingComment(\"Reveal answer for help on this question.\");\n}"}}, "precision": "3", "maxValue": "(weight*10^{-3})/mol +0.005", "minValue": "(weight*10^{-3})/mol - 0.005", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "marks": "3", "type": "numberentry", "showPrecisionHint": false}], "statement": "

A Carbon compound has molecular weight (RMM) = {mol}. One mol weighs {mol}g.

\n

How many moles are in {weight} mg? Give your answer to 3 decimal places.

\n

 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"weight": {"definition": "random(20..70#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "weight", "description": ""}, "mol": {"definition": "random(10..50#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "mol", "description": ""}}, "metadata": {"notes": "", "description": "

Manipulate the units to perform calculations.

", "licence": "None specified"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Simple converting unit questions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Stephanie Greaves", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/340/"}], "functions": {}, "ungrouped_variables": ["small", "liquid", "mol"], "tags": [], "advice": "

a)

\n

There are $10^6 \\mu$m in 1m so converting  $\\var{small}$$\\mu$m to metres we divide by $10^6$: $\\var{small}$$\\mu$m = $\\var{small/(10^6)}$m.

\n

There are 100cm in 1m, so converting to cm divid by 100 : $\\var{small/(10^6)}$m = $\\var{small/(10^4)}$cm.

\n

$\\var{small}$$\\mu$m = $\\var{small/(10^4)}$ cm.

\n

b)

\n

There are 1000ml in a litre, to convert $\\var{liquid}$ml into litres we divide by 1000.

\n

$\\var{liquid}\\div1000$ = $\\var{liquid/1000}$ L.

\n

c)

\n

There are $10^6\\mu$mol in one mole.

\n

To convert $\\mu$mol into moles you divide by $10^6$.

\n

So $\\var{mol}$$\\mu$mol = $\\var{mol/10^6}$ moles.

", "rulesets": {}, "parts": [{"distractors": ["", "Reveal answer for help on this question.", "Reveal answer for help on this question."], "prompt": "

Convert {small} $\\mu$m into cm.

", "matrix": ["1", 0, 0], "shuffleChoices": true, "scripts": {}, "choices": ["

{((small)/10000)} cm

", "

{((small)/1000)} cm

", "

{((small)/1000000)} cm

"], "displayType": "radiogroup", "showCorrectAnswer": true, "minMarks": 0, "marks": 0, "displayColumns": 0, "type": "1_n_2", "maxMarks": "1"}, {"prompt": "

Convert {liquid}ml into litres.

", "allowFractions": false, "scripts": {"mark": {"order": "instead", "script": "NumberEntryPart.prototype.mark.apply(this);\nif(this.credit==0) {\n this.markingComment(\"Reveal answer for help on this question.\");\n}"}}, "maxValue": "liquid/1000", "minValue": "liquid/1000", "correctAnswerFraction": false, "showCorrectAnswer": true, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Convert {mol} $\\mu$mol into moles

", "allowFractions": false, "scripts": {"mark": {"order": "instead", "script": "NumberEntryPart.prototype.mark.apply(this);\nif(this.credit==0) {\n this.markingComment(\"Reveal answer for help on this question.\");\n}"}}, "maxValue": "mol/1000000", "minValue": "mol/1000000", "correctAnswerFraction": false, "showCorrectAnswer": true, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"small": {"definition": "random(500..1000#100)", "templateType": "randrange", "group": "Ungrouped variables", "name": "small", "description": ""}, "liquid": {"definition": "random(240..325#5)", "templateType": "randrange", "group": "Ungrouped variables", "name": "liquid", "description": ""}, "mol": {"definition": "random(7000..9000#100)", "templateType": "randrange", "group": "Ungrouped variables", "name": "mol", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "None specified"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "extensions": [], "custom_part_types": [], "resources": []}