// Numbas version: finer_feedback_settings {"name": "Binary to Decimal", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8"], "name": "Binary to Decimal", "tags": ["binary", "convert", "REBEL", "rebel", "Rebel", "rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

There is a nice video on converting decimal to binary below:

\n

https://www.youtube.com/watch?v=H4BstqvgBow

", "rulesets": {}, "parts": [{"prompt": "

Convert the number $\\var{b3}\\var{b4}\\var{b5}\\var{b6}$ to decimal.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{b6}+{b5}*2+{b4}*4+{b3}*8", "minValue": "{b6}+{b5}*2+{b4}*4+{b3}*8", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Convert the number $\\var{b1}\\var{b2}\\var{b3}\\var{b4}\\var{b5}$ to decimal.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{b8}*1+{b4}*2+{b3}*4+{b2}*8+{b1}*16", "minValue": "{b5}*1+{b4}*2+{b3}*4+{b2}*8+{b1}*16", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Convert the number $\\var{b1}\\var{b2}\\var{b3}\\var{b4}\\var{b5}\\var{b6}\\var{b7}\\var{b8}$ to decimal.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{b8}*1+{b7}*2+{b6}*4+{b5}*8+{b4}*16+{b3}*32+{b2}*64+{b1}*128", "minValue": "{b8}*1+{b7}*2+{b6}*4+{b5}*8+{b4}*16+{b3}*32+{b2}*64+{b1}*128", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(1..20#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "a", "description": ""}, "b4": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b4", "description": ""}, "b5": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b5", "description": ""}, "b6": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b6", "description": ""}, "b7": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b7", "description": ""}, "b1": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b1", "description": ""}, "b2": {"definition": "random(0..1 except b3)", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "b3": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b3", "description": ""}, "b8": {"definition": "random(0..1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b8", "description": ""}}, "metadata": {"description": "

Converting Binary to Decimal

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "resources": []}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}