In 16-bit 2’s Complementation representation, the decimal number 28 is
1111 1111 1110 0100
The 2’s complement of a binary number is formed by inverting every bit (1’s complement) and adding 1; in a 16-bit word this pattern represents the negative of the number. Taking the 2’s complement of 28 in 16 bits therefore gives the 16-bit pattern of −28.
Step 1 — 28 = 16 + 8 + 4, so in 16 bits 28 = 0000 0000 0001 1100.
Step 2 — Invert every bit (1’s complement): 1111 1111 1110 0011.
Step 3 — Add 1: 1111 1111 1110 0011 + 1 = 1111 1111 1110 0100.
Step 4 — Check: 1111 1111 1110 0100 + 0000 0000 0001 1100 = 1 0000 0000 0000 0000, i.e. 0 in 16 bits, as expected for x + (−x).
1111 1111 1110 0011 is only the 1’s complement; 1111 1111 1111 0100 is −12; 1111 1111 0001 1100 is −228 (it keeps the low byte of 28 and merely sets the high byte).
1111 1111 1110 0100 option is correct.
The range of representable normalized numbers in the floating point binary fractional representation in a 32-bit word with 1-bit sign, 8-bit excess 128 biased exponent and 23-bit mantissa is
The Excess-3 decimal code is a self-complementing code because
The character set used in Windows 2000 operating system is __________.
The equivalent hexadecimal notation for octal number 2550276 is :
Which of the following statement(s) is (are) not correct ?
i. The 2’s complement of 0 is 0.
ii. In 2’s complement, the left most bit cannot be used to express a quantity.
iii. For an n-bit word (2’s complement) which includes the sign bit, there are \(2^{n-1}\) positive integers, \(2^{n+1}\) negative integers and one 0 for a total of \(2^{n}\) unique states.
iv. In 2’s complement the significant information is contained in the 1’s of positive numbers and 0’s of the negative numbers.
Let R1 and R2 be two 4-bit registers that store numbers in 2’s complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives an arithmetic overflow?
Match the LIST-I with LIST-II
| LIST-I | LIST-II |
|---|---|
| A. (100110011)2 | I. Error detection code |
| B. Complements | II. CISC |
| C. Parity Bits | III. Negative number |
| D. Variable length instruction | IV. (133)16 |
Choose the correct answer from the options given below:
Consider the given number (45)y where y is the base of the number. Some of the possible values of y are given below.
(A) 5
(B) 6
(C) 7
(D) 8
Choose the correct answer from the options given below :
Which of the following pairs of octal and binary numbers are NOT equal?
Which of the following codes is also known as reflected binary code?
What is the octal equivalent of (F3B1)16?