01․ Which of the following is 2’s complement of +12?
In 2’s complement representation a positive number is represented as binary representation of the number itself. i.e. the 2’s complement representation of +12 is 00001100
02․ 11001, 1001 and 111001 correspond to the 2’scomplement representation of the following set of numbers
03․ Which one of the following is 2’s complement of -68?
04․ A signed integer has been stored in a byte using 2’scomplement format. We wish to store the same integer in 16-bit word. We should copy the original byte to the less significant byte of the word and fill the more significant byte with
Let us see this case with the help of an example
05․ The number A = 01110000 and B = 10101111 are in 2’s complement form .Addition of above two number is
06․ The base of the number system for the addition operation 24 + 14 = 41 to be true is
Let the base is X, then
07․ A system has following negative numbers stored in binary form as shown. The wrongly stored number is
08․ Which one of the following is correct sequence of the numbers represented in the series(2)3, (10)4, (11)5, (14)6, (22)7,…………….
Converting into decimal
09․ X = 01110 and Y = 11001 are two 5-bit binary numbers represented in 2’s complement format. The sum of X and Y in 2’s complement format using 6 bits is
Carry is discarded in the addition of numbers represented in 2’s complement form. X + Y in 6 bits are 000111.
10․ A computer has a word length of 8 bits (including sign). It is required to determine the range of integers that can be stored in the computer. If 2’s complement is used to represent the numbers, then the range will be
For a word length of N, the range of 2,s complement numbers that can be represented is - 2N - 1 to 2N - 1 - 1. So, for a word length of 8, the range is - 27 to 27 - 1 i.e. - 128 to 127