NCTI Field Tech III to IV Practice Exam

Session length

1 / 20

Convert the IP address 172.68.10.2 from decimal to binary.

10101100.01000100.00001010.00000010

To convert the IP address 172.68.10.2 from decimal to binary, each of the four decimal octets must be converted individually into an 8-bit binary format.

1. The first octet is 172. In binary, 172 is represented as:

- 172 divided by 128 (2^7) gives 1 (the highest bit).

- 172 - 128 = 44, so:

- 44 divided by 64 (2^6) gives 0.

- 44 divided by 32 (2^5) gives 1 (the next bit).

- 44 - 32 = 12.

- 12 divided by 16 (2^4) gives 0.

- 12 divided by 8 (2^3) gives 1 (the next bit).

- 12 - 8 = 4.

- 4 divided by 4 (2^2) gives 1 (the next bit).

- 4 - 4 = 0.

Therefore, 172 in binary is 10101100.

2. The second octet is 68. Its binary conversion works out as:

11010100.11101000.00001000.00000010

10101000.00110000.00001010.00000010

10101100.01010000.00001010.00000001

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy