Khác biệt giữa bản sửa đổi của “Cố Viêm Võ”

Nội dung được xóa Nội dung được thêm vào
Dòng 81:
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. (And remember that ffff.ffff.ffff is a Layer 2 broadcast!) <br>
===Examination===
Conversions involving hexadecimal numbers will use this chart: <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| || ||
|}
_________________________________________________________________________ <br>
1. Convert the following hexadecimal number to decimal: 1c <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| || 1 || c
|}
There is one unit of 16 and twelve units of 1. 16 + 12 = 28. <p>
_________________________________________________________________________ <br>
2. Convert the following hexadecimal number to decimal: f1 <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| || f ||
1|}
There are fifteen units of 16 and 1 unit of 1. <p>
240 + 1 = 241 <p>
_________________________________________________________________________ <br>
3. Convert the following hexadecimal number to decimal: 2a9 <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 2 || a || 9
|}
There are two units of 256, ten units of 16, and nine units of 1. 512 + 160 + 9 = 681 <p>
_________________________________________________________________________ <p>
4. Convert the following hexadecimal number to decimal: 14b <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || 4 || b
|}
 
There is one unit of 256, four units of 16, and 11 units of 1. 256 + 64 + 11 = 331 <p>
_________________________________________________________________________ <br>
5. Convert the following hexadecimal number to decimal: 3e4 <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 3 || e || 4
|}
There are three units of 256, fourteen units of 16, and four units of 1. 768 + 224 + 4 = 996 <p>
________________________________________________________________________ <br>
6. Convert the following decimal to hexadecimal: 13 <p>
When converting decimal to hex, work with the same chart from left to right. Are there any units of 256 in the decimal 13? No. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 0 || ||
|}
Are there any units of 16 in the decimal 13? No. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 0 || 0 ||
|}
Are there any units of 1 in the decimal 13? Sure. Thirteen of them. Remember how we express the number "13" with a single hex character? <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 0 || 0 || d
|}
The answer is "d". It's not necessary to have any leading zeroes when expressing hex value. <p>
_________________________________________________________________________<br>
7. Convert the following decimal to hexadecimal: 784 <p>
Are there any units of 256 in the decimal 784? Yes, three of them, for a total of 768. Place a "3" in the 256 slot, and subtract 768 from 784. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 3 || ||
|}
784 - 768 = 16 <p>
Obviously, there's one unit of 16 in 16. Since there is no remainder, we can place a "0" in the remaining slots. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 3 || 1 || 0
|}
The final result is the hex number "310". <p>
_________________________________________________________________________ <br>
8. Convert the following decimal to hexadecimal: 419 <p>
Are there any units of 256 in the decimal 419? Yes, one, with a remainder of 163. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || ||
|}
Are there any units of 16 in the decimal 163? Yes, ten of them, with a remainder of three. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || a ||
|}
Three units of one take care of the remainder, and the hex number "1a3" is the answer. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || a || 3
|}
_________________________________________________________________________ <br>
9. Convert the following decimal to hexadecimal: 1903 <p>
Are there any units of 256 in the decimal 1903? Yes, seven of them, totaling 1792. This leaves a remainder of 111. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 7 || ||
|}
Are there any units of 16 in the decimal 111? Yes, six of them, with a remainder of 15. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 7 || 6 ||
|}
By using the letter "f" to represent 15 units of 1, the final answer "76f" is achieved. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 7 || 6 || f
|}
_________________________________________________________________________ <br>
10. Convert the following decimal to hexadecimal: 345 <p>
Are there any units of 256 in 345? Sure, one, with a remainder of 89. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || ||
|}
Are there any units of 16 in 89? Yes, five of them, with a remainder of 9. <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || 5 ||
|}
Nine units of nine give us the hex number "159". <p>
{| border="1"
| 256 || 16 || 1
|- || ||
| 1 || 5 || 9
|}
_________________________________________________________________________ <br>
===continued…===