Number Systems
Number Systems
Number System
54
1. The following operation is performed in a particular number system, 13
4
The base of that particular number system is ___________
2. The number of bytes required to represent the decimal number 1856357 in packed BCD
(Binary Coded Decimal) form is _____________.
4. Which of the following statement is Incorrect for the range of n bits binary Numbers
(a) Range of unsigned numbers is 0 to 2n 1 .
(b) Range of signed numbers is- 2n1 1 to 2n1 1 .
(c) Range of signed 1’s compliment numbers is - 2n1 1 to 2n 1 .
(d) Range of signed 2’s compliment numbers is – 2n 1 to 2n1 1 .
7. In a particular number system the cubic equation x3 bx2 cx 190 0 has roots x = 5,
x = 8, and x = 9. The base of the number system is _______.
8. The range of signed decimal numbers that can be represented by 5-bits 1's complement
number is
9. 7EH and 5FH are XORed. The output is multiplied by 10H. The result is
10. _________is the radix of the numbers if the solutions to the quadratic equation
x2 10x 31 0 are x = 5 and x = 8?
11. The base of the number system for the addition operation 24 + 14 = 41 to be true
is__________
12. From the 7 symbols (0- 6), how many different codes we can construct:
(a) 8 ! (b) 8
(c) 7 ! (d) 7
15. The number A=01110000 and B=10101111 are an 2’s compliment form. Addition of
above 2 number is :
1. BA
16
AB 16 2. BC
16
CB 16 3. CB
16
BC16
17. Which of the following gives the correct value, if 3659 is written using 7-3-2-1 weighted
code.
18. Decimal number 5137 is converted into BCD, excess-3 code, 2421 and a 6311 code.
Which of the following gives correct match?
19. If in a base b number system, 54/4=13, the base of the number is ________
20. Consider the operation 24+17=40. What is the correct base of number so that the
operation is correct?
22. If 2.3base 4
1.2base 4
y base 4 ; what is the value of y?
Solutions
1. Ans: 8
Solution: Let the base of the number system be b.
5b + 4
= (b+3) =>5b + 4 = 4b + 12
4
b=8
2. Ans: 4
Solution: Each digit in BCD represents 4 bit.
Total number or bits in this decimal number 28 bit 4 bytes
3. Ans: (a)
Solution: 9 0000 1001 and - 9 11110110 1's complement from
11110111 2's complement form
4. Ans: (c)
Solution: Range of 1’s complement number is - 2n1 1 to 2n1 1
5. Ans: 6
Solution: Squaring both side, ( 41)2 (5)2
(41)B (25)10 => (4B 1)10 (25)10 => B 6
6. Ans: (c)
Solution: (E0B)H (ABF)H (34 C)H
(34 C)H (001101001100)2 (1514)8
7’s compliment =7777-1514= (6263)8
8’s compliment = (6263)8 1 = (6264)8
7. Ans: 15
Solution: Let the base of the system is B
9 8 5 (190)B
(360)10 (190)B
360 B2 9B 0 => B2 9B 360 0
B 15, B 24
Since base can’t be negative
Base B=15
8. Ans: (b)
Solution: The range of signed decimal numbers that can be represented by n bits 1's
complement number is (2n1 1)to (2n1 1)
Thus for n = 5
Range = (251 1)to (251 1) = -(15) to +(15)
9. Ans: (a)
Solution: 7EH 0111 1110
5FH 0101 1111
XORed 0010 0001=21H
21H
X10H
Result 0210H
10. Ans: 13
Solution: Quadratic equation (when x = 5 and x =8) is,
x2 13x 40 0 …………....(1)
and given equation is.
x2 10x 31 0 ……….…....(2)
compare (1) and (2).
and assume radix = r then,
(10)r 1 r r 0 0 13 =>r=13
(31)r 3 r r 0 1 40 => r=13
11. Ans: 7
Solution: Let the base is x, then
(24)x (14)x (41)x => 2x+4+x+4=4x+1 => x = 7
However, 23 8 symbols
Further, by using 7 of 8 symbols, the number of different codes we can construct are
8!
8
p7 8!
1!
13. Ans: 8
Solution: 4 4096 9 256 7 16 5 =16384+2304+112+5=18805
18805 100100101110101
10 2
0 0 0 1 1 1 1 1
19. Ans: 8
Solution: In base b system 54/4 and 13 can be written as follows:
5b 4 / 4 b 3
Or 5b+4=4b+12
Or b=8
20. Ans: 11
Solution: 2b 4 b 7 4b 0
3b 11 4b b 11
21. Ans: 9
Solution: 3 512 7 64 5 8 3 1536 448 40 3 2027
2027 011111101011
10 2
2 1 29 22 2 1 26 22 1 23 2 1
210 29 28 27 26 25 23 21 1
As every term will have exactly one 1 in their binary form. Thus for the above nine terms
there will be nine 1’s in their binary form.
2.3 2 4 3 4 2.75
4
0 1
10 10
and 1.2 4 1 40 2 4 1 1.5
10 10
Y 10.1
4
1. Ans: (a)
Solution: +32 = 0100000 (7 bits) and -32 = 100000 (6 bits)
2. Ans: (d)
Solution:
2 6 78 78 +68 =58 (1 Carry) x=5
+y x 68 68 + x 8 + 1 =4 8 (1 Carry) y=4
z y x 2 + y + 1 =7 z=7
8 8 8 8
3. Ans: (c)
Solution: 1008 38 758
4. Ans: 564
Solution:
1000 1001 0111 Excess-3 code
- 0011 0011 0011
0101 0110 0100 BCD code
5 6 4
5. Ans: (b)
Solution: 10D 1010 2
0.625 2 1.250 1, 0.250 2 0.50 0, 0.50 2 1.0 1
(10.625)D (1010.101)2
6. Ans: (c)
Solution: Let a number N is given to the system
Output after 1’s compliment=15-N
Output after 2’s compliment=16-15+N=N+1
3 such systems are connected in cascade.
So final output=input + (3)10 =1010+0011 =1101
7. Ans: (b)
Solution: Converting in decimal we have
(60)16 6 16 (96)10
(96)10 ( 64)10 (32)10
00110010 (00110010)BCD (32)10 (00100000)2
11
(00110101)excess3
8. Ans: (b)
Solution: BCD-to-excess-3 code converter:
Truth Table
Input BCD Output Excess-3
A B c D Code
w x y z
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
9. Ans: (c)
Solution: 2x2 x 1 1 82 5 81 2 80
2x2 x 1 106
2x2 x 105 0
x 7, 7.5
Base should be positive. Hence x=7.
0 1 1 1 1 1 0
0 0 0 1 0 1 1 1 9 7
D 4 0 2
R1 =? R 2 =?
235R 2 R
1
1
2
3 R11 5 R10 565
2R 1
2
3R1 560 0 => R1 16
And 1065R 1 R 23 0 R 22 6 R 21 5 R 20 565
2
R 2
3
6R21 560 0 => R 2
8