// Numbas version: exam_results_page_options {"name": "Moles of a substance 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": ["mole", "molecular mass", "Molecular mass", "molecular weight", "Molecular weight", "moles", "RMM"], "metadata": {"description": "

Calculate the number of moles in a given mass of a substance given the molecular weight.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Answer the following questions. Please enter your answers as decimals, not as fractions. Give your answers to 2 decimal places.

\n

If you would like to see how to do this question, click on 'Reveal answers' at the bottom of the page.

", "variable_groups": [], "name": "Moles of a substance 2", "advice": "

To answer these questions we use the formula

\n

$\\dfrac{\\text{mass of substance (in grams)}}{\\text{molecular weight}} = \\text{number of moles}$.

\n

a)

\n

Glucose has a molecular weight of $\\var{glucose}$. How many moles of glucose are there in $\\var{5 * a}$ grams?

\n

Solution:

\n

Putting our numbers into the formula we find that there are 

\n

$\\begin{align} \\dfrac{\\var{5 * a}}{\\var{glucose}} &= \\var{(5 * a) / glucose} \\text{ moles}\\\\ &= \\var{precround(((5 * a) / glucose), 2)} \\text{ moles to 2 d.p.} \\end{align}$ 

\n

in $\\var{5 * a}$ grams of glucose.

\n

b)

\n

Sodium chloride has a molecular weight of $\\var{NaCl}$. How many moles of sodium chloride are there in $\\var{5 * b}$ grams?

\n

Solution:

\n

Putting our numbers into the formula we find that there are

\n

$\\begin{align}\\dfrac{\\var{5 * b}}{\\var{NaCl}} &= \\var{(5 * b) / NaCl} \\text{ moles} \\\\ & = \\var{precround(((5 * b) / NaCl), 2)} \\text{ moles to 2 d.p.} \\end{align}$.

\n

in $\\var{5 * b}$ grams of sodium chloride.

", "functions": {}, "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "parts": [{"prompt": "

Glucose has a molecular weight of $\\var{glucose}$. How many moles of glucose are there in $\\var{5 * a}$ grams?

\n

[[0]] moles

", "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "mustBeReducedPC": 0, "mustBeReduced": false, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "maxValue": "((5 * a) / glucose) + 0.005", "type": "numberentry", "variableReplacementStrategy": "originalfirst", "minValue": "((5 * a) / glucose) - 0.005", "scripts": {}, "marks": 1}]}, {"prompt": "

Sodium chloride has a molecular weight of $\\var{NaCl}$. How many moles of sodium chloride are there in $\\var{5 * b}$ grams?

\n

[[0]] moles

", "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "mustBeReducedPC": 0, "mustBeReduced": false, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "maxValue": "((5 * b) / NaCl) +0.005 ", "type": "numberentry", "variableReplacementStrategy": "originalfirst", "minValue": "((5 * b) / NaCl) - 0.005", "scripts": {}, "marks": 1}]}], "variables": {"b": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b", "definition": "random(20..40)"}, "a": {"group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a", "definition": "random(4..20)"}, "glucose": {"group": "Ungrouped variables", "description": "

molecular weight of glucose

", "templateType": "anything", "name": "glucose", "definition": "180.16"}, "NaCl": {"group": "Ungrouped variables", "description": "

molecular weight of sodium chloride

", "templateType": "anything", "name": "NaCl", "definition": "58.44"}}, "ungrouped_variables": ["a", "NaCl", "b", "glucose"], "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Jamie Antoun", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/266/"}]}]}], "contributors": [{"name": "Jamie Antoun", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/266/"}]}