// Numbas version: exam_results_page_options {"name": "LHS Scientific notation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "LHS Scientific notation", "advice": "", "tags": [], "functions": {"spacenumber": {"type": "string", "language": "javascript", "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"]]}}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": ["dec1", "pow1", "q1", "dec2", "pow2", "q2", "dec3", "q3", "pow3"], "statement": "

Write the following numbers using Scientific Notation, i.e. in the form $a \\times 10^b$:

", "variable_groups": [], "preamble": {"js": "", "css": ""}, "rulesets": {}, "variables": {"q1": {"description": "", "name": "q1", "definition": "precround(dec1*10^pow1,0)", "group": "Ungrouped variables", "templateType": "anything"}, "pow2": {"description": "", "name": "pow2", "definition": "random(4..8)", "group": "Ungrouped variables", "templateType": "anything"}, "dec1": {"description": "", "name": "dec1", "definition": "random(1.1..9.9#0.01)", "group": "Ungrouped variables", "templateType": "anything"}, "dec2": {"description": "", "name": "dec2", "definition": "random(1.1..9.9#0.001)", "group": "Ungrouped variables", "templateType": "anything"}, "dec3": {"description": "", "name": "dec3", "definition": "random(1.1..9.9#0.01)", "group": "Ungrouped variables", "templateType": "anything"}, "q3": {"description": "", "name": "q3", "definition": "precround(dec3*10^pow3,8)", "group": "Ungrouped variables", "templateType": "anything"}, "pow1": {"description": "", "name": "pow1", "definition": "random(2..6)", "group": "Ungrouped variables", "templateType": "anything"}, "q2": {"description": "", "name": "q2", "definition": "precround(dec2*10^pow2,0)", "group": "Ungrouped variables", "templateType": "anything"}, "pow3": {"description": "", "name": "pow3", "definition": "random(-6..-3)", "group": "Ungrouped variables", "templateType": "anything"}}, "parts": [{"type": "gapfill", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "prompt": "

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

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

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

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

{q3} = [[0]]$\\times 10$ [[1]]

", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "gaps": [{"type": "numberentry", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "minValue": "{dec3}", "scripts": {}, "maxValue": "{dec3}", "correctAnswerStyle": "plain", "mustBeReduced": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacementStrategy": "originalfirst", "allowFractions": false, "variableReplacements": []}, {"type": "numberentry", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "minValue": "{pow3}", "scripts": {}, "maxValue": "{pow3}", "correctAnswerStyle": "plain", "mustBeReduced": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacementStrategy": "originalfirst", "allowFractions": false, "variableReplacements": []}], "marks": 0, "sortAnswers": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "type": "question", "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}, {"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}, {"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}