Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the number of bit patterns provided by a 7 bit code?

  • A.64
  • B.256
  • C.128
  • D.512

Answer: B

Correct answer: 128

Each bit is independently 0 or 1, so \( n \) bits give \( 2^n \) distinct patterns. With \( n = 7 \), \[ 2^7 = 128 \] patterns are available - which is exactly why 7-bit ASCII defines 128 characters. \( 2^6 = 64 \), \( 2^8 = 256 \) and \( 2^9 = 512 \) correspond to 6, 8 and 9 bits.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.