// Numbas version: exam_results_page_options {"name": "Converting from standard index form to decimal.", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "rulesets": {}, "name": "Converting from standard index form to decimal.", "functions": {}, "ungrouped_variables": ["A", "ran"], "metadata": {"description": "

Given some numbers in standard index form, convert to decimal form.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "variable_groups": [], "advice": "

When given a number in the form $A \\times 10^n$, we can think of $n$ as a number telling us how many places to move the decimal point.

\n

When $n$ is positive, we move the decimal point to the right side, for example:

\n

\\[ 1.5 \\times 10^3 = 1500.0 \\text{ .} \\]

\n

When $n$ is negative, we move the decimal point to the left side, for example:

\n

\\[ 1.5 \\times 10^{-3} = 0.0015 \\text{ .} \\]

\n

When $n = 0$, we do not move the decimal point:

\n

\\[ 1.5 \\times 10^0 = 1.5 \\text{ .}\\]

\n

 

\n

a)

\n

In $\\var{A[0]} \\times 10^\\var{ran}$, $n = \\var{ran}$ and so we move the decimal point {ran} places to the right.

\n

\\[\\var{A[0]}  ⇒  \\var{precround((A[0] * 10^ran), 0)}\\]

\n

\n

b)

\n

In $\\var{A[1]} \\times 10^\\var{-ran + 4}$, $n = \\var{-ran +4}$ and so we move the decimal point {ran -4} places to the left.

\n

\\[\\var{A[1]}  ⇒  \\var{A[1]*10^(-ran+4)}\\]

", "statement": "

Write the following in decimal form.

", "preamble": {"js": "", "css": ""}, "variables": {"A": {"templateType": "anything", "description": "", "name": "A", "group": "Ungrouped variables", "definition": "repeat(random(1..10 #0.01 except 10), 2)"}, "ran": {"templateType": "anything", "description": "", "name": "ran", "group": "Ungrouped variables", "definition": "random([6,7,8,9,10])"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "type": "gapfill", "sortAnswers": false, "prompt": "

$\\var{A[0]} \\times 10^\\var{ran} =$  [[0]]

", "customName": "", "gaps": [{"answer": "{precround(({A[0]}*10^{ran}),0)}", "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": "0", "valuegenerators": [], "variableReplacements": [], "unitTests": [], "customName": "", "checkingType": "dp", "vsetRange": [0, 1], "showFeedbackIcon": true, "checkVariableNames": false, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "jme", "showPreview": true, "vsetRangePoints": 5, "useCustomName": false, "notallowed": {"message": "", "showStrings": false, "partialCredit": 0, "strings": ["*10^"]}, "showCorrectAnswer": true, "marks": "0.5", "scripts": {}}], "useCustomName": false, "variableReplacements": [], "unitTests": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "type": "gapfill", "sortAnswers": false, "prompt": "

$\\var{A[1]} \\times 10^\\var{-ran + 4} =$  [[0]]

\n

", "customName": "", "gaps": [{"answer": "{A[1]*10^(-ran+4)}", "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "valuegenerators": [], "variableReplacements": [], "unitTests": [], "customName": "", "checkingType": "absdiff", "vsetRange": [0, 1], "checkVariableNames": false, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "jme", "mustmatchpattern": {"message": "", "nameToCompare": "", "partialCredit": 0, "pattern": "$n"}, "showPreview": true, "vsetRangePoints": 5, "useCustomName": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": "0.5", "scripts": {}}], "useCustomName": false, "variableReplacements": [], "unitTests": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 0, "scripts": {}}], "tags": ["conversion", "converting", "standard form", "standard index form", "taxonomy"], "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}]}