GATE Computer ScienceEasyGATE CS (PYQ pattern)
The 8-bit pattern 10000000 is read as (i) sign-magnitude, (ii) one's complement, (iii) two's complement and (iv) excess-128 (biased) integer. What are the four values?
- A. −0, −127, −128 and 0
- B. −0, −128, −127 and 0
- C. −0, −127, −128 and 128
- D. −128, −127, −128 and 0
Correct answer: A. −0, −127, −128 and 0
Sign-magnitude: sign 1, magnitude 0, so −0. One's complement: invert to 01111111 = 127, so −127. Two's complement: −128. Excess-128: 128 − 128 = 0.
More Digital Logic questions
- How many of the numbers 0.05, 0.25, 0.3125, 0.6, 0.71875 and 0.9375 can be stored exactly in an unsigned fixed-point format with 4…
- f(a,b,c) is a threshold function if f = 1 exactly when w1·a + w2·b + w3·c ≥ t for some real weights and threshold (negative weights…
- A Boolean function is affine if it equals c ⊕ (XOR of some subset of its variables) for a constant c, and self-dual if f(x̄) = f(x)'…
- A Boolean function f is self-dual if f(x̄) = f(x)' for every input x. How many self-dual functions of three variables A, B, C depend…
- How many Boolean functions f(A,B,C,D) are self-dual (f(x̄) = f(x)' for every input x) and can also be written as a single product of…
- F(A,B,C,D) = 1 exactly when the unsigned number ABCD (A is the MSB) is a prime. How many literals are there in the minimal sum-of-products…