// Numbas version: exam_results_page_options {"name": "Scientific notation - draft", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "ungrouped_variables": ["number", "pow1", "q1", "dec2", "pow2", "q2", "Tos", "Froms", "choice"], "statement": "

Answer the following:

", "rulesets": {}, "variables": {"choice": {"name": "choice", "templateType": "anything", "description": "", "definition": "random(0..11)", "group": "Ungrouped variables"}, "dec2": {"name": "dec2", "templateType": "anything", "description": "", "definition": "random(1.1..9.9#0.001)", "group": "Ungrouped variables"}, "pow2": {"name": "pow2", "templateType": "anything", "description": "", "definition": "random(4..8)", "group": "Ungrouped variables"}, "pow1": {"name": "pow1", "templateType": "anything", "description": "", "definition": "random(2..6)", "group": "Ungrouped variables"}, "q2": {"name": "q2", "templateType": "anything", "description": "", "definition": "precround(dec2*10^pow2,0)", "group": "Ungrouped variables"}, "Froms": {"name": "Froms", "templateType": "list of strings", "description": "", "definition": "[ \"kg\", \"g\", \"mg\", \"$\\\\mu$g\", \"L\", \"cL\", \"mL\", \"km\", \"m\", \"cm\", \"mm\", \"$\\\\mu$m\" ]", "group": "Ungrouped variables"}, "q1": {"name": "q1", "templateType": "anything", "description": "", "definition": "precround(number*10^pow1,0)", "group": "Ungrouped variables"}, "Tos": {"name": "Tos", "templateType": "list of strings", "description": "", "definition": "[ \"g\", \"kg\", \"$\\\\mu$g\", \"mg\", \"mL\", \"L\", \"L\", \"m\", \"mm\", \"m\", \"m\", \"mm\" ]", "group": "Ungrouped variables"}, "number": {"name": "number", "templateType": "anything", "description": "", "definition": "random(1.1..9.9#0.1)", "group": "Ungrouped variables"}}, "parts": [{"marks": 0, "scripts": {}, "sortAnswers": false, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "gaps": [{"marks": 1, "scripts": {}, "showFeedbackIcon": true, "minValue": "{number}", "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "maxValue": "{number}", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "correctAnswerFraction": false, "type": "numberentry", "unitTests": [], "mustBeReduced": false, "variableReplacements": []}, {"marks": 1, "scripts": {}, "showFeedbackIcon": true, "minValue": "{pow1}", "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "maxValue": "{pow1}", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "correctAnswerFraction": false, "type": "numberentry", "unitTests": [], "mustBeReduced": false, "variableReplacements": []}], "prompt": "

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

\n

$\\var{number}$$\\times 10$ [[1]]

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

{spacenumber(q2)} = [[0]]$\\times 10$ [[1]] 

", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill", "unitTests": [], "variableReplacements": []}], "advice": "", "name": "Scientific notation - draft", "functions": {"spacenumber": {"language": "javascript", "type": "string", "definition": "var parts=n.toString().split(\".\");\n if(parts[1] && parts[1].length<2) {\n parts[1]+='0';\n }\n return parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") + (parts[1] ? \", \" + parts[1] : \"\");", "parameters": [["n", "number"]]}}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "preamble": {"js": "", "css": ""}, "variable_groups": [], "type": "question", "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}]}]}], "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}]}