Digital Arithmetic Operations and Circuits - Technical MCQs

Q1:

If B[7..0] = 10100101, what is the value of B[6..2]?

A 10100

B 01001

C 10010

D 00101

ANS:B - 01001

B[7..0] = 10100101.

B[6..2] = ?

Start from most significant bit.

B[7]=1.

B[6]=0.

B[5]=1.

B[4]=0.

B[3]=0.

B[2]=1.

B[1]=0.

B[0]=1, we take bit from 6 to 2 indexing so answer would be 01001.

Thats all.