226 views
6 6 votes

How many $8$-bit patterns represent the same decimal value when interpreted as sign-magnitude and $1$'s complement numbers?

  1. $64$
     
  2. $127$
     
  3. $128$
     
  4. $255$

2 Answers

2 2 votes

In both sign-magnitude and $1$'s complement, all patterns starting with $0$ represent positive numbers in the same way.

So, all patterns from $00000000$ to $01111111$ have the same value in both systems.

Number of such patterns is:

$2^7=128$

Now consider patterns starting with $1$.

In sign-magnitude, the remaining $7$ bits directly give the magnitude.

In $1$'s complement, the negative value is found by complementing the bits.

So, negative patterns do not represent the same values in both systems.

Therefore, only the $128$ patterns starting with $0$ have the same decimal value.

Answer: C

Answer:
Position:
Show:

Related questions

5 5 votes
4 4 answers
299
299 views
GO Classes asked Jun 9
299 views
In the following hexadecimal addition, find the digit $x$. $$(4x\mathrm{D})_{16}+(2\mathrm{B}7)_{16}=(744)_{16}$$
5 5 votes
2 2 answers
189
189 views
GO Classes asked Jun 9
189 views
An $8$-bit pattern represents $-45$ in $2$'s complement form. If the same bit pattern is interpreted as a $1$'s complement number, what decimal value does it represent?$-...
3 3 votes
3 3 answers
272
272 views
GO Classes asked Jun 9
272 views
For a Boolean function $F(A,B,C)$, where $A$ is the most significant variable, the output is $0$ for input combinations $000$, $011$, and $101$. Which of the following is...
4 4 votes
3 3 answers
351
351 views
GO Classes asked Jun 9
351 views
Simplify the Boolean expression $F=(A+\overline{B})(A+C)+\overline{A}B+BC$.$A+B+C$ $A+\overline{B}C$ $AB+BC$ $A+C$