From the course: Learning Subnetting

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Practice exercise #2

Practice exercise #2

- In this practice exercise, we're going to take a decimal number and convert it to a binary number. Specifically, we're going to take a decimal number of 49. And my challenge to you is give me an eight digit binary number that represents 49. And notice I said an eight digit binary number because I want this to neatly fit within an octet. Sure, 49 may have a zero as the first bit position in an eight bit binary string. In fact, I guarantee it will have a zero in the first couple of positions. But, I want us to get in the habit of writing out eight binary bits, even if the leading bits are zeros. And as a hint to get you started, remember we're going to start with this table just like we did with the binary to decimal conversion. And remember we're going to ask a series of questions starting on the left and moving to the right, we're going to say ... I'll do the first one for ya, we're going to say is 49 greater than or equal to 128? Since the answer's no we're going to put a 0 in that…

Contents