// Numbas version: exam_results_page_options {"name": "Unit Conversions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Unit Conversions", "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["Froms", "Tos", "Factors", "conFactors", "choice", "numFroms", "ci1", "ci2", "ci3", "ci4", "ci5", "ch1", "ch2", "ch3", "ch4", "ch5", "numFromsb", "choiceb", "ci1b", "ci2b", "ci3b", "ci4b", "ci5b", "ch1b", "ch2b", "ch3b", "ch4b", "ch5b", "choicec", "numFromsc", "ci1c", "ci2c", "ci3c", "ci4c", "ci5c", "ch1c", "ch2c", "ch3c", "ch4c", "ch5c", "choiced", "ans1", "from1", "choicee", "ans2", "choicef", "ans3"], "metadata": {"description": "

Practice of conversion between SI units of mass, volume & length.

", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": [], "tags": [], "advice": "

There is no advice for this question.

", "parts": [{"showCorrectAnswer": true, "distractors": ["", "", "", "", ""], "type": "1_n_2", "scripts": {}, "marks": 0, "variableReplacements": [], "matrix": ["1", 0, 0, 0, 0], "displayColumns": 0, "minMarks": 0, "maxMarks": 0, "choices": ["

{ch1}   {Tos[choice]}

", "

{ch2}   {Tos[choice]}

", "

{ch3}   {Tos[choice]}

", "

{ch4}   {Tos[choice]}

", "

{ch5}   {Tos[choice]}

"], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

What's $\\var{numFroms}$  $\\var{Froms[choice]}$ in $\\var{Tos[choice]} $ ?

", "shuffleChoices": true, "displayType": "radiogroup"}, {"showCorrectAnswer": true, "distractors": ["", "", "", "", ""], "type": "1_n_2", "scripts": {}, "marks": 0, "variableReplacements": [], "matrix": ["1", 0, 0, 0, 0], "displayColumns": 0, "minMarks": 0, "maxMarks": 0, "choices": ["

{ch1b}   {Tos[choiceb]}

", "

{ch2b}   {Tos[choiceb]}

", "

{ch3b}   {Tos[choiceb]}

", "

{ch4b}   {Tos[choiceb]}

", "

{ch5b}   {Tos[choiceb]}

"], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

What's $\\var{numFromsb}$  $\\var{Froms[choiceb]}$ in $\\var{Tos[choiceb]} $ ?

", "shuffleChoices": true, "displayType": "radiogroup"}, {"showCorrectAnswer": true, "distractors": ["", "", "", "", ""], "type": "1_n_2", "scripts": {}, "marks": 0, "variableReplacements": [], "matrix": ["1", 0, 0, 0, 0], "displayColumns": 0, "minMarks": 0, "maxMarks": 0, "choices": ["

{ch1c}   {Tos[choicec]}

", "

{ch2c}   {Tos[choicec]}

", "

{ch3c}   {Tos[choicec]}

", "

{ch4c}   {Tos[choicec]}

", "

{ch5c}   {Tos[choicec]}

"], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

What's $\\var{numFromsc}$  $\\var{Froms[choicec]}$ in $\\var{Tos[choicec]} $ ?

", "shuffleChoices": true, "displayType": "radiogroup"}, {"showCorrectAnswer": true, "prompt": "

What's $\\var{numFroms}$  $\\var{Froms[choiced]}$ in $\\var{Tos[choiced]} $?

\n

Answer: $\\var{numFroms}$  $\\var{Froms[choiced]}$ = [[0]] $\\var{Tos[choiced]}$

", "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"showCorrectAnswer": true, "scripts": {}, "correctAnswerFraction": false, "marks": 1, "variableReplacements": [], "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "showFeedbackIcon": true, "minValue": "ans1", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "maxValue": "ans1"}], "variableReplacements": []}, {"showCorrectAnswer": true, "prompt": "

What's $\\var{numFromsb}$  $\\var{Froms[choicee]}$ in $\\var{Tos[choicee]} $?

\n

Answer: $\\var{numFromsb}$ $\\var{Froms[choicee]}$ = [[0]] $\\var{Tos[choicee]}$

", "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"showCorrectAnswer": true, "scripts": {}, "correctAnswerFraction": false, "marks": 1, "variableReplacements": [], "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "showFeedbackIcon": true, "minValue": "ans2", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "maxValue": "ans2"}], "variableReplacements": []}, {"showCorrectAnswer": true, "prompt": "

What's $\\var{numFromsc}$  $\\var{Froms[choicef]}$ in $\\var{Tos[choicef]} $?

\n

Answer: $\\var{numFromsc}$ $\\var{Froms[choicef]}$ = [[0]] $\\var{Tos[choicef]}$

", "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"showCorrectAnswer": true, "scripts": {}, "correctAnswerFraction": false, "marks": 1, "variableReplacements": [], "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "showFeedbackIcon": true, "minValue": "ans3", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "maxValue": "ans3"}], "variableReplacements": []}], "variable_groups": [], "variables": {"ch5c": {"group": "Ungrouped variables", "description": "", "name": "ch5c", "templateType": "anything", "definition": "precround(numFromsc*conFactors[ci5c],8)"}, "ci3c": {"group": "Ungrouped variables", "description": "", "name": "ci3c", "templateType": "anything", "definition": "random(0..11 except [ci1c, ci2c])"}, "ci3b": {"group": "Ungrouped variables", "description": "", "name": "ci3b", "templateType": "anything", "definition": "random(0..11 except [ci1b, ci2b])"}, "ans1": {"group": "Ungrouped variables", "description": "", "name": "ans1", "templateType": "anything", "definition": "numFroms*confactors[Factors[choiced]]"}, "choicee": {"group": "Ungrouped variables", "description": "", "name": "choicee", "templateType": "anything", "definition": "random(8..13 except[choice,choiceb,choicec, choiced])"}, "ci5b": {"group": "Ungrouped variables", "description": "", "name": "ci5b", "templateType": "anything", "definition": "random(0..11 except [ci1b, ci2b, ci3b, ci4b])"}, "ci4": {"group": "Ungrouped variables", "description": "", "name": "ci4", "templateType": "anything", "definition": "random(0..11 except [ci1, ci2, ci3])"}, "ch4": {"group": "Ungrouped variables", "description": "", "name": "ch4", "templateType": "anything", "definition": "precround(numFroms*conFactors[ci4],8)"}, "ci3": {"group": "Ungrouped variables", "description": "", "name": "ci3", "templateType": "anything", "definition": "random(0..11 except [ci1, ci2])"}, "choicef": {"group": "Ungrouped variables", "description": "", "name": "choicef", "templateType": "anything", "definition": "random(14..27 except[choice,choiceb,choicec, choiced, choicee])"}, "ci5": {"group": "Ungrouped variables", "description": "", "name": "ci5", "templateType": "anything", "definition": "random(0..11 except [ci1, ci2, ci3, ci4])"}, "ci4b": {"group": "Ungrouped variables", "description": "", "name": "ci4b", "templateType": "anything", "definition": "random(0..11 except [ci1b, ci2b, ci3b])"}, "conFactors": {"group": "Ungrouped variables", "description": "", "name": "conFactors", "templateType": "list of numbers", "definition": "[ 1000000, 100000, 10000, 1000, 100, 10, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001 ]"}, "ch5": {"group": "Ungrouped variables", "description": "", "name": "ch5", "templateType": "anything", "definition": "precround(numFroms*conFactors[ci5],8)"}, "choiceb": {"group": "Ungrouped variables", "description": "", "name": "choiceb", "templateType": "anything", "definition": "random(0..27 except choice)"}, "ch1": {"group": "Ungrouped variables", "description": "", "name": "ch1", "templateType": "anything", "definition": "precround(numFroms*conFactors[ci1],8)"}, "ch5b": {"group": "Ungrouped variables", "description": "", "name": "ch5b", "templateType": "anything", "definition": "precround(numFromsb*conFactors[ci5b],8)"}, "ch1b": {"group": "Ungrouped variables", "description": "", "name": "ch1b", "templateType": "anything", "definition": "precround(numFromsb*conFactors[ci1b],8)"}, "ans3": {"group": "Ungrouped variables", "description": "", "name": "ans3", "templateType": "anything", "definition": "numFromsc*confactors[Factors[choicef]]"}, "ch4c": {"group": "Ungrouped variables", "description": "", "name": "ch4c", "templateType": "anything", "definition": "precround(numFromsc*conFactors[ci4c],8)"}, "ci2c": {"group": "Ungrouped variables", "description": "", "name": "ci2c", "templateType": "anything", "definition": "random(0..11 except ci1c)"}, "Factors": {"group": "Ungrouped variables", "description": "", "name": "Factors", "templateType": "list of numbers", "definition": "[ 3, 0, 8, 11, 3, 0, 8, 11, 4, 3, 7, 8, 5, 6, 3, 1, 8, 10, 4, 3, 7, 8, 5, 2, 6, 9, 3, 8 ]"}, "choicec": {"group": "Ungrouped variables", "description": "", "name": "choicec", "templateType": "anything", "definition": "random(0..27 except [choice, choiceb])"}, "choice": {"group": "Ungrouped variables", "description": "", "name": "choice", "templateType": "anything", "definition": "random(0..27)"}, "from1": {"group": "Ungrouped variables", "description": "", "name": "from1", "templateType": "anything", "definition": "Froms[choiced]"}, "ci2": {"group": "Ungrouped variables", "description": "", "name": "ci2", "templateType": "anything", "definition": "random(0..11 except ci1)"}, "numFroms": {"group": "Ungrouped variables", "description": "", "name": "numFroms", "templateType": "anything", "definition": "random(0..9)+random(1..9)/10"}, "ci1c": {"group": "Ungrouped variables", "description": "", "name": "ci1c", "templateType": "anything", "definition": "Factors[choicec]"}, "ch4b": {"group": "Ungrouped variables", "description": "", "name": "ch4b", "templateType": "anything", "definition": "precround(numFromsb*conFactors[ci4b],8)"}, "numFromsb": {"group": "Ungrouped variables", "description": "", "name": "numFromsb", "templateType": "anything", "definition": "random(0..9)+random(1..9)/10 + random(0..9)/100"}, "choiced": {"group": "Ungrouped variables", "description": "", "name": "choiced", "templateType": "anything", "definition": "random(0..7 except[choice,choiceb,choicec])"}, "ci1b": {"group": "Ungrouped variables", "description": "", "name": "ci1b", "templateType": "anything", "definition": "Factors[choiceb]"}, "Froms": {"group": "Ungrouped variables", "description": "", "name": "Froms", "templateType": "list of strings", "definition": "[ \"kilograms\", \"kilograms\", \"grams\", \"milligrams\", \"grams\", \"grams\", \"milligrams\", \"micrograms\", \"litres\", \"litres\", \"centilitres\", \"millilitres\", \"centilitres\", \"millilitres\", \"kilometres\", \"kilometres\", \"metres\", \"centimetres\", \"metres\", \"metres\", \"centimetres\", \"millimetres\", \"centimetres\", \"centimetres\", \"millimetres\", \"micrometres\", \"millimetres\", \"micrometres\" ]"}, "ch2": {"group": "Ungrouped variables", "description": "", "name": "ch2", "templateType": "anything", "definition": "precround(numFroms*conFactors[ci2],8)"}, "numFromsc": {"group": "Ungrouped variables", "description": "", "name": "numFromsc", "templateType": "anything", "definition": "random(0,1,2, 4, 5, 8)+random(1,2,4,5,8)/10 + random(0,1,2,4,5,8,9)/100"}, "Tos": {"group": "Ungrouped variables", "description": "", "name": "Tos", "templateType": "list of strings", "definition": "[ \"grams\", \"milligrams\", \"kilograms\", \"kilograms\", \"milligrams\", \"micrograms\", \"grams\", \"grams\", \"centilitres\", \"millilitres\", \"litres\", \"litres\", \"millilitres\", \"centilitres\", \"metres\", \"centimetres\", \"kilometres\", \"kilometres\", \"centimetres\", \"millimetres\", \"metres\", \"metres\", \"millimetres\", \"micrometres\", \"centimetres\", \"centimetres\", \"micrometres\", \"millimetres\" ]"}, "ci1": {"group": "Ungrouped variables", "description": "", "name": "ci1", "templateType": "anything", "definition": "Factors[choice]"}, "ci4c": {"group": "Ungrouped variables", "description": "", "name": "ci4c", "templateType": "anything", "definition": "random(0..11 except [ci1c, ci2c, ci3c])"}, "ch3": {"group": "Ungrouped variables", "description": "", "name": "ch3", "templateType": "anything", "definition": "precround(numFroms*conFactors[ci3],8)"}, "ci2b": {"group": "Ungrouped variables", "description": "", "name": "ci2b", "templateType": "anything", "definition": "random(0..11 except ci1b)"}, "ch3b": {"group": "Ungrouped variables", "description": "", "name": "ch3b", "templateType": "anything", "definition": "precround(numFromsb*conFactors[ci3b],8)"}, "ch2b": {"group": "Ungrouped variables", "description": "", "name": "ch2b", "templateType": "anything", "definition": "precround(numFromsb*conFactors[ci2b],8)"}, "ch1c": {"group": "Ungrouped variables", "description": "", "name": "ch1c", "templateType": "anything", "definition": "precround(numFromsc*conFactors[ci1c],8)"}, "ans2": {"group": "Ungrouped variables", "description": "", "name": "ans2", "templateType": "anything", "definition": "numFromsb*confactors[Factors[choicee]]"}, "ci5c": {"group": "Ungrouped variables", "description": "", "name": "ci5c", "templateType": "anything", "definition": "random(0..11 except [ci1c, ci2c, ci3c, ci4c])"}, "ch2c": {"group": "Ungrouped variables", "description": "", "name": "ch2c", "templateType": "anything", "definition": "precround(numFromsc*conFactors[ci2c],8)"}, "ch3c": {"group": "Ungrouped variables", "description": "", "name": "ch3c", "templateType": "anything", "definition": "precround(numFromsc*conFactors[ci3c],8)\n"}}, "statement": "

Practice of conversion between SI units of mass, volume & length.

", "preamble": {"css": "", "js": ""}, "rulesets": {}, "type": "question", "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}]}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}