Professional Documents
Culture Documents
TCMT N12-2 C1 51900708 DangHoangNam
TCMT N12-2 C1 51900708 DangHoangNam
TCMT N12-2 C1 51900708 DangHoangNam
Decimal 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Base 12 8 9 A B 10 11 12 13 14 15 16 17 18 19 1A 1B 20
Decimal 25 26 27 28
Base 12 21 22 23 24
1.2/ What is the exact number of bytes in a system that contains (a) 32K bytes, (b)
64M bytes, and (c) 6.4G bytes?
32K bytes = 32 * 210 = 32 768 bytes
64M bytes = 64 * 220 = 67 108 864 bytes
6.4G bytes = 6.4 * 230 = 6 871 947 673.6 bytes
1.3/ Convert the following numbers with the indicated bases to decimal:
(a) (4310)5 = 4*53 + 3*52 + 1*51 + 0*50 = (580)10
(b) (198)12 = 1*122 + 9*121 + 8*120 = (260)10
(c) (435)8 = 4*82 + 3*81 + 5*80 = (285)10
(d) (345)6 = 3*62 + 4*61 + 5*60 = (137)10
1.4/ What is the largest binary number that can be expressed with 16 bits? What
are the equivalent decimal and hexadecimal numbers?
- Số nhị phân lớn nhất được biểu diễn dưới 16 bit là : (1111 1111 1111 1111)2
- Số thập phân tương ứng là : (65535)10
- Số thập lục phân tương úng là : (FFFF)16
1.5/ Determine the base of the numbers in each case for the following operations to
be correct:
(a) 14/2=5 (b) 54/4 = 13 (c) 24 + 17 = 40
a. (1*base1 + 4*base0) / 2*base0 = 5*base0
=> Base = 6
b. (5*base1 + 4*base0) / 4*base0 = 1*base1 + 3*base0
=> Base = 8
c. (2*base1 + 4*base0) + (1*base1 + 7*base0) = 4*base1 + 0*base0
=> Base = 11
1.7/ Convert the hexadecimal number 64CD to binary, and then convert it from
binary to octal.
(64CD)16 = (0110 0100 1100 1101)2
(0110 0100 1100 1101)2 = (62315)8
1.8/ Convert the decimal number 431 to binary in two ways:
(a) convert directly to binary;
(b) convert first to hexadecimal and then from hexadecimal to binary.
Which method is faster?
a. 431/2 (413)10 = (110101111)2
215 1
107 1
53 1
26 1
13 0
6 1
3 0
1 1
0 1
b. 431/16 (413)10 = (1AF)16 = (110101111)2
26 F
1 A
0 1
=> Phương pháp b nhanh hơn phương pháp a.
1.9/ Express the following numbers in decimal:
(a) (10110.0101)2 = 1*24 + 0*23 + 1*22 + 1*21 + 0*20 + 0*2-1 + 1*2-2 + 0*2-3 + 1*2-4
= 22.3125
(b) (16.5)16 = 1*161 + 6*160 + 5*16-1
= 22.3125
(c) (26.24)8 = 2*81 + 6*80 + 2*8-1 +4*8-2
= 22.3125
1.12/ Add and multiply the following numbers without converting them to decimal.
(a) 1001 (b) 2E
101 34
1110 62
1.14/ Obtain the 1’s and 2’s complements of the following binary numbers:
00010000 00000000 11011010 10101010 10000101 11111111
1’s 11101111 11111111 00100101 01010101 01111010 00000000
2’s 11110000 00000000 00100110 01010110 01111011 11111111
1.15/ Perform subtraction on the given unsigned binary numbers using the 2’s
complement of the subtrahend. Where the result should be negative, find its 2’s
complement and affix a minus sign.
(a) 10011 - 10010
= 10011 + 01110 = 100001 = +00001
(b) 100010 – 100110
= 100010 + 011010 = 111100 = -000100