// Numbas version: exam_results_page_options {"name": "Ioannis's copy of Lois's copy of Binary to Decimal", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "variable_groups": [], "variables": {"b5": {"description": "", "name": "b5", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b6": {"description": "", "name": "b6", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b1": {"description": "", "name": "b1", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b3": {"description": "", "name": "b3", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b8": {"description": "", "name": "b8", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b7": {"description": "", "name": "b7", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b2": {"description": "", "name": "b2", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}, "b4": {"description": "", "name": "b4", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(0..1#1)"}}, "ungrouped_variables": ["b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8"], "tags": [], "functions": {}, "rulesets": {}, "metadata": {"description": "

Converting binary number to decimal.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "advice": "

When writing numbers in our normal base 10 (decimal) system recall that each place in the number represents a power of 10 -- $1, 10, 10^2=100, 10^3 = 1000$ etc.

\n

In binary each place represents a power of 2. So reading from the right the places represent $1, 2, 2^2=4, 2^3 = 8, 2^4 = 16$ etc.

\n

A 1 in the place indicates that it is 'switched on' and a 0 that it is 'switched off'.

\n

For instance the binary number $1011_2$ represents $(1 \\times 8) + (1 \\times 2) + (1 \\times 1) =11_{10}$.

\n

\n

For more explanation, look for relevant resources in the Maths for Computing section of our Maths Study Skills page.

", "parts": [{"unitTests": [], "scripts": {}, "allowFractions": false, "mustBeReduced": false, "variableReplacements": [], "minValue": "{b8}*1+{b7}*2+{b6}*4+{b5}*8+{b4}*16+{b3}*32+{b2}*64+{b1}*128", "customMarkingAlgorithm": "", "maxValue": "{b8}*1+{b7}*2+{b6}*4+{b5}*8+{b4}*16+{b3}*32+{b2}*64+{b1}*128", "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": "2.5", "correctAnswerFraction": false}], "preamble": {"js": "", "css": ""}, "name": "Ioannis's copy of Lois's copy of Binary to Decimal", "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Convert the binary number $\\var{b1}\\var{b2}\\var{b3}\\var{b4}\\var{b5}\\var{b6}\\var{b7}\\var{b8}$ to one written in decimal (base 10).

", "type": "question", "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}]}], "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}