Sunday, May 20, 2007

Question 2

There are tree typical ways to express negative integers, namely:
a: 2’s complement
b: 1’s complement
c: Absolute value with a sign (If the leading bit is 0, the sign is positive. If the leading bit is 1, the sign is negative)

Using methods a,b and c, three negative integers are represented as a 4-bits pattern ‘1101’. When the original numbers are arranged in ascending order, which is the correct application order of the three methods ?

a) a,b,c
b) a,c,b
c) b,c,a
d) c,a,b


No comments: