// Numbas version: exam_results_page_options {"name": "Diagnostic Test - Scientific notation 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"pow2": {"name": "pow2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(4..8)"}, "pow3": {"name": "pow3", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(-6..-3)"}, "pow1": {"name": "pow1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)"}, "q2": {"name": "q2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "precround(dec2*10^pow2,0)"}, "q1": {"name": "q1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "precround(dec1*10^pow1,0)"}, "dec1": {"name": "dec1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1.1..9.9#0.01)"}, "q3": {"name": "q3", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "precround(dec3*10^pow3,8)"}, "dec2": {"name": "dec2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1.1..9.9#0.001)"}, "dec3": {"name": "dec3", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1.1..9.9#0.01)"}}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "extensions": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["dec1", "pow1", "q1", "dec2", "pow2", "q2", "dec3", "q3", "pow3"], "advice": "", "variable_groups": [], "statement": "

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

", "parts": [{"type": "gapfill", "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

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

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

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

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

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

", "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "scripts": {}, "gaps": [{"type": "numberentry", "customMarkingAlgorithm": "", "unitTests": [], "mustBeReducedPC": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "maxValue": "{dec3}", "minValue": "{dec3}", "scripts": {}, "allowFractions": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"type": "numberentry", "customMarkingAlgorithm": "", "unitTests": [], "mustBeReducedPC": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "maxValue": "{pow3}", "minValue": "{pow3}", "scripts": {}, "allowFractions": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false}], "functions": {"spacenumber": {"language": "javascript", "type": "string", "parameters": [["n", "number"]], "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] : \"\");"}}, "tags": [], "name": "Diagnostic Test - Scientific notation 1", "variablesTest": {"maxRuns": 100, "condition": ""}, "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/"}]}