{"base":{"id":"cs8-12","subject":"Systems","title":"Binary: bits and switches","scene":"bits","steps":[{"mode":"onoff","eyebrow":"Bits","title":"On or off, 1 or 0","body":"A computer chip has billions of tiny switches that are either on or off. Computers write on as 1 and off as 0. Tap the switch, then add more bits and count the patterns.","controls":[{"id":"bits","label":"Number of bits","min":1,"max":8,"step":1,"value":1}],"actions":[{"id":"flip","label":"Switch on"}]},{"mode":"toDenary","eyebrow":"Binary to denary","title":"Add up the place values","body":"Each tile is worth double the one to its right: 128, 64, 32, 16, 8, 4, 2, 1. Add the values of the tiles that are on. Work it out, then check, then tap tiles to make your own.","actions":[{"id":"add","label":"Add it up"},{"id":"new","label":"New number"}]},{"mode":"toBinary","eyebrow":"Denary to binary","title":"Take away what fits","body":"To write a number in binary, start at 128. If it fits, write 1 and take it away; if not, write 0. Move right and repeat. Change the number and watch.","controls":[{"id":"number","label":"Denary number","min":0,"max":255,"step":1,"value":200}]},{"mode":"quiz","eyebrow":"Check yourself","title":"Convert it","body":"A byte shows 00010101.","question":"What is it in denary?","options":["15","21","101"],"answer":1,"right":"Correct. 16 + 4 + 1 = 21.","wrong":"Not quite. Add the place values of the three 1s.","look":"toBinary"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"Computers can't store big numbers with only 0s and 1s.\"","body":"More bits give more patterns. 8 bits reach 255; 32 bits reach over 4 billion."},{"tag":"Popular idea","title":"\"10 in binary means ten.\"","body":"It means one 2 and no 1s: two."},{"tag":"Popular idea","title":"\"The rightmost bit is worth the most.\"","body":"The rightmost bit is worth 1. Values double as you move left."}]},{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Binary → denary","title":"10110010","body":"128 64 32 16 8 4 2 1\n  1  0  1  1 0 0 1 0\n128 + 32 + 16 + 2 = 178","code":true},{"tag":"Denary → binary","title":"200","body":"200 − 128 = 72   → 1\n 72 −  64 =  8   → 1\n 32, 16 don't fit → 0 0\n  8 −   8 =  0   → 1\n 4, 2, 1          → 0 0 0\n200 = 11001000","code":true},{"tag":"Check","title":"Reverse it","body":"11001000 → 128 + 64 + 8 = 200 ✓","code":true}]},{"type":"bars","id":"data","eyebrow":"Data","title":"More bits, more patterns","intro":"Each extra bit doubles the number of different patterns.","items":[{"label":"1 bit","value":2,"display":"2 patterns","color":"#a5b4fc"},{"label":"2 bits","value":4,"display":"4","color":"#818cf8"},{"label":"4 bits","value":16,"display":"16","color":"#6366f1"},{"label":"8 bits (1 byte)","value":256,"display":"256 (0–255)","color":"#2b2f8f"}],"facts":[{"title":"Kilobytes and more","body":"1 kilobyte (KB) ≈ 1,000 bytes, 1 megabyte (MB) ≈ 1 million bytes, 1 gigabyte (GB) ≈ 1 billion bytes."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Finger binary","items":[{"title":"Count to 31 on one hand","time":"15 minutes","need":["Your hand","Paper"],"steps":["Give your fingers values from the thumb: 1, 2, 4, 8, 16.","A raised finger is 1, a folded finger is 0.","Show 5 (thumb + middle finger = 1 + 4), then 10, then 19.","What is the biggest number one hand can show? Two hands?"],"why":"Five bits give 32 patterns (0–31). Ten bits (two hands) give 1,024 (0–1,023).","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"What is a bit?","options":["Eight bytes","A single 0 or 1","A type of screen"],"answer":1,"right":"Correct. Bit is short for binary digit.","wrong":"Not quite. It's the smallest unit."},{"question":"How many bits are in a byte?","options":["4","10","8"],"answer":2,"right":"Correct. A byte is 8 bits.","wrong":"Not quite. Think of the 8 bulbs."},{"question":"What is binary 1000 in denary?","options":["8","1,000","4"],"answer":0,"right":"Correct. The 1 is in the 8 column.","wrong":"Not quite. Write the place values 8 4 2 1."},{"question":"What is denary 6 in 4-bit binary?","options":["0110","0011","1100"],"answer":0,"right":"Correct. 4 + 2 = 6.","wrong":"Not quite. Which place values add to 6?"},{"question":"How many patterns can 3 bits make?","options":["8","3","6"],"answer":0,"right":"Correct. 2 × 2 × 2 = 8.","wrong":"Not quite. Each bit doubles the patterns."},{"question":"What is 11111111 in denary?","options":["256","128","255"],"answer":2,"right":"Correct. 128+64+32+16+8+4+2+1 = 255.","wrong":"Not quite. Add all eight place values."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["why computers use binary","what bits and bytes are","the place values 128 to 1","how to convert binary to denary and back","how to check a conversion by reversing it"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"binary","meaning":"A number system with two digits, 0 and 1 (base 2)."},{"word":"denary","meaning":"Our everyday number system with ten digits (base 10)."},{"word":"bit","meaning":"One binary digit."},{"word":"byte","meaning":"A group of 8 bits."},{"word":"place value","meaning":"What a digit is worth because of its column."},{"word":"transistor","meaning":"A tiny electronic switch inside a chip."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize KS3 Computing: Binary"]}]},"overlay":null}