Multiple choice

If the bit string 0111101111101111110 is subjected to bit-stuffing for the flag string 01111110, the output string is

  1. 011110111110011111010

  2. 01111011111011111100

  3. 01111011111011111010

  4. 0111101111101111110

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Bit stuffing inserts a 0 after five consecutive 1s to prevent data from being mistaken for the flag 01111110. The string 01111110 appears twice in the input; stuffing results in 011111010.