[Solved] How many words fit in 4 bits


Answer 1) With the 4 bits we can write 16 different numbers. As we have 4 different position of bits let’s say ABCD where A,B,C,D are representing 1 bit. Each position A,B,C,D has two possible input 0 or 1 so each position is having 2 possible inputs.

So for 4 positions total different outputs = 2*2*2*2 =16 Which also can be understood by permutation which is equal to 2^(no.of bits) .Here 2^(4) which is equal to 16.

Answer 2) Mamimum number having n bits is always all bits as 1s so for n bit number, maximum number which can be formed is all n 1s.

So for 4 bit number, Maximum number which can be formed is 4 1s in binary representation of the number. So here that number is 1111 in binary . In decimal it is 15.

It also can be calculated by 2^(no.of bits) -1. Here number of bits is 4 so maximum number is 2^(4) -1 which is 16-1= 15

1

solved How many words fit in 4 bits