// Numbas version: exam_results_page_options {"name": "Number of moles", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["chem", "test0", "test1", "mult", "grams"], "name": "Number of moles", "tags": ["ephlth", "nursing"], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "

The molecular weight of {chem[0]} is [[0]] g/mol (round each atomic weight to the nearest whole number for this exercise).

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{chem[2]}", "minValue": "{chem[2]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

{chem[1]}

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

How many moles of {chem[0]} are present in {grams} g of {chem[0]}?

\n

\n

[[0]] moles

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{mult}", "minValue": "{mult}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

The number of moles is the weight of the compound in grams/mol divided by the molecular mass of the compound in grams.

\n

In particular, the number of moles in {grams} g of {chem[0]} is calculated as follows:

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\dfrac{\\text{mass of compound (g)}}{\\text{molecular mass (g/mol)}}$$=$$\\dfrac{\\var{grams} \\text{g}}{\\var{chem[2]} \\text{g/mol}}$
$=$$\\var{mult}$ mol
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"test1": {"definition": "chem[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "test1", "description": ""}, "test0": {"definition": "chem[0] ", "templateType": "anything", "group": "Ungrouped variables", "name": "test0", "description": ""}, "chem": {"definition": "random([\n[\"$\\\\text{NaCl}$\",\"Na has an atomic mass of 23 and Cl has an atomic mass of 35. Therefore the molecular mass of NaCl is $23+35=58$.\",58],\n[\"$\\\\text{KCl}$\",\"The atomic mass of K is 39 and the atomic mass of Cl is 35. Therefore the molecular mass of KCl is $39+35=74$.\",74],\n[\"$\\\\mathrm{C_3H_5NaO_3}$\",\"The atomic mass of C is 12, the atomic mass of H is 1, the atomic mass of Na is 23 and the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{C_3H_5NaO_3}$ is $3\\\\times 12+5\\\\times 1 +23 +3\\\\times 16 = 112$.\",112],\n[\"$\\\\mathrm{CaCl_2.2H_2O}$\", \"The atomic mass of Ca is 40, the atomic mass of Cl is 35, the atomic mass of H is 1 and the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{CaCl_2.2H_2O}$ is $40+2\\\\times 35 +2\\\\times(2\\\\times 1+16)=146$.\",146],\n[\"$\\\\mathrm{Ca_3PO_4}$\", \"The atomic mass of Ca is 40, the atomic mass of P is 31 and the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{Ca_3PO_4}$ is $3\\\\times 40 + 31 + 4\\\\times 16=215$.\",215],\n[\"$\\\\mathrm{MgCl_2}$\", \"The atomic mass of Mg is 24 and the atomic mass of Cl is 35. Therefore, the molecular mass of $\\\\mathrm{MgCl_2}$ is $24+2\\\\times 35=94$.\",94],\n[\"$\\\\mathrm{Na_2HPO_4}$\",\"The atomic mass of Na is 23, the atomic mass of H is 1, the atomic mass of P is 31 and the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{Na_2HPO_4}$ is $2\\\\times 23+1+31+4\\\\times 16=142$.\",142],\n[\"$\\\\mathrm{Na_2SO_4}$\", \"The atomic mass of Na is 23, the atomic mass of S is 32 and the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{Na_2SO_4}$ is $2\\\\times 23+32+4\\\\times 16=142$.\",142],\n[\"$\\\\mathrm{C_6H_{12}O_6}$\",\"The atomic mass of C is 12, the atomic mass of H is 1, the atomic mass of O is 16. Therefore, the molecular mass of $\\\\mathrm{C_6H_{12}O_6}$ is $6\\\\times 12+12\\\\times 1+6\\\\times 16=180$.\",180]])", "templateType": "anything", "group": "Ungrouped variables", "name": "chem", "description": "

chem formula, sentence for molecular mass

"}, "grams": {"definition": "mult*chem[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "grams", "description": ""}, "mult": {"definition": "random(1..20#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "mult", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}