{"base":{"id":"cs9-25","subject":"Networks","title":"Parity checks","scene":"net9","steps":[{"mode":"parity","eyebrow":"The parity bit","title":"Count the 1s","body":"Before sending, add one extra bit so that the total number of 1s is even (even parity) or odd (odd parity). Change the data and switch between even and odd.","controls":[{"id":"v","label":"Data (0–127)","min":0,"max":127,"step":1,"value":77}],"actions":[{"id":"even","label":"Even parity"},{"id":"odd","label":"Odd parity"}]},{"mode":"check","eyebrow":"Checking","title":"Did a bit flip?","body":"Electrical noise can flip a bit on the way. The receiver counts the 1s again. With even parity, an odd count means something went wrong. Try sending with no errors, one flipped bit and two.","actions":[{"id":"send","label":"Send"},{"id":"flip1","label":"Flip 1 bit"},{"id":"flip2","label":"Flip 2 bits"}]},{"mode":"limits","eyebrow":"Limits","title":"What parity misses","body":"Parity is quick and simple, but it can't catch everything. Read what it can and can't do."},{"mode":"quiz","eyebrow":"Check yourself","title":"Find the parity bit","body":"Data bits 1011001 are sent with even parity.","question":"What is the parity bit?","options":["1","4","0"],"answer":2,"right":"Correct. There are four 1s, already an even number, so the parity bit is 0.","wrong":"Not quite. Count the 1s first.","look":"parity"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"The parity bit tells you which bit is wrong.\"","body":"It only shows that something is wrong, not where."},{"tag":"Popular idea","title":"\"Parity catches every error.\"","body":"Two flipped bits leave the count with the same parity, so they pass unnoticed."},{"tag":"Popular idea","title":"\"Even parity means the data must be an even number.\"","body":"It means the number of 1s (including the parity bit) is even."}]},{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Even parity","title":"1100101","body":"1s: 4 (even)\nparity bit 0 → 11001010","code":true},{"tag":"Odd parity","title":"1100101","body":"1s: 4\nneed odd → parity bit 1 → 11001011","code":true},{"tag":"Check","title":"Received 10110110, even parity","body":"1s: 5 (odd)\n→ an error happened; ask for the data again","code":true}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Card parity trick","items":[{"title":"Find the flipped card","time":"15 minutes","need":["16 cards or coins","A partner"],"steps":["Lay out a 4 × 4 grid of cards, some face up (1) and some face down (0).","Add a fifth card to each row and column so every line has an even number of face-up cards.","Turn away while your partner flips one card.","Find the row and the column with an odd count: they cross at the flipped card!"],"why":"Using parity in two directions can even find which bit changed.","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"Data 1110000, even parity. Parity bit?","options":["1","0","3"],"answer":0,"right":"Correct. Three 1s → add 1 to make four.","wrong":"Not quite. Make the count even."},{"question":"Data 1110000, odd parity. Parity bit?","options":["1","0","3"],"answer":1,"right":"Correct. Three 1s is already odd.","wrong":"Not quite. Keep the count odd."},{"question":"Even parity. Received 01101101. Error?","options":["Yes: five 1s, which is odd","No","Can't tell"],"answer":0,"right":"Correct. An odd count means an error.","wrong":"Not quite. Count the 1s."},{"question":"Why might a bit flip during sending?","options":["Electrical interference","The file is too big","The screen is off"],"answer":0,"right":"Correct. Noise on the line.","wrong":"Not quite. What disturbs signals?"},{"question":"Which error can parity NOT detect?","options":["One bit flipped","Two bits flipped","Three bits flipped"],"answer":1,"right":"Correct. Even changes keep the parity.","wrong":"Not quite. Think about pairs."},{"question":"What does the receiver do when parity fails?","options":["Ignores it","Deletes the computer","Asks for the data to be sent again"],"answer":2,"right":"Correct. Retransmission.","wrong":"Not quite. How do you get correct data?"}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["how to choose an even or odd parity bit","how a receiver checks parity","why parity detects a single flipped bit","why some multi-bit errors pass undetected"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"parity bit","meaning":"An extra bit that makes the number of 1s even or odd."},{"word":"even parity","meaning":"The total number of 1s is even."},{"word":"odd parity","meaning":"The total number of 1s is odd."},{"word":"error detection","meaning":"Finding out that data has changed."},{"word":"interference","meaning":"Noise that can change data as it travels."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize KS3 Computer Science","Raspberry Pi Foundation, Computing curriculum resources"]}]},"overlay":null}