You are on page 1of 2

Homework #2

1. Convert (101010110.111)2 to decimal


342+0.875=(342.875)10
2. Convert (120.625)10 to binary
1111000+0.101=(1111000.101)2
3. Convert (1001101101001010110)2 to hexadecimal
(4CA56)16
4. Convert (3A24BCE)16 to binary
(11101000100100101111001110)2
5. What is an IP address? Give a dotted decimal IP address example.

表示在 internet 上,一部電腦唯一的地址

Ex.192.168.0.102

6. What is a subnet mask? Give an example.

決定 Ip address 的定位點。Ip address 技巧性的非為兩部分,一部分為網路

編號,另一部分為電腦編號,而 subnet mask 則是決定此兩部分的定位點,

網路編號的部分設定為 1,電腦編號的部分設定為 0

Ex. mask=(255.255.255.0)10=(11111111111111111111111100000000)2

則代表前 24bits 為網路編號,後 8bits 為電腦編號

7. If an IP address is 140.120.143.30, and the subnet mask is 255.255.240.0. Then


what is the net ID? What is the host ID?
IP address=(140.120.143.30)10=(10001100011110001000111100011110)2
Mask=(255.255.240.0)10=(11111111111111111111000000000000)2
net ID=10001100011110001000
host ID=111100011110
8. What is a MAC address? Give an example with hexadecimal number of a MAC
address.

每個網卡都會有一個唯一的編號,而這編號為廠商已預設好,此編號就稱為

MAC address(此長度為 48bits,以 16 進位表示)


EX. 4A-45-20-1F-35-60

9. What is the >ipconfig /all command for? 可查看 IPv4 和 mac address

10. When you use state machine scheme to design a vending machine, if there are
230 states totally, then how many bits of a register are required to implement it?
8bits

You might also like