JN0-102: Juniper Networks Certified Associate Junos Exam | Binary Equivalent of 242.168.94.124

Binary Equivalent of 242.168.94.124

Prev Question Next Question

Question

What is the binary equivalent of 242.168.94.124?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

To convert the given IPv4 address (242.168.94.124) to its binary equivalent, we need to convert each octet (a group of 8 bits) of the IP address to binary and then concatenate them.

To convert a decimal number to binary, we use the method of successive division by 2. We divide the decimal number by 2 and write down the remainder (either 0 or 1). We then repeat this process with the quotient until we get a quotient of 0. We then write the remainders in reverse order to obtain the binary equivalent.

Let's convert each octet to binary:

Octet 1: 242 242 divided by 2 gives a quotient of 121 and a remainder of 0 121 divided by 2 gives a quotient of 60 and a remainder of 1 60 divided by 2 gives a quotient of 30 and a remainder of 0 30 divided by 2 gives a quotient of 15 and a remainder of 0 15 divided by 2 gives a quotient of 7 and a remainder of 1 7 divided by 2 gives a quotient of 3 and a remainder of 1 3 divided by 2 gives a quotient of 1 and a remainder of 1 1 divided by 2 gives a quotient of 0 and a remainder of 1 So the binary equivalent of 242 is 11110010

Octet 2: 168 168 divided by 2 gives a quotient of 84 and a remainder of 0 84 divided by 2 gives a quotient of 42 and a remainder of 0 42 divided by 2 gives a quotient of 21 and a remainder of 0 21 divided by 2 gives a quotient of 10 and a remainder of 1 10 divided by 2 gives a quotient of 5 and a remainder of 0 5 divided by 2 gives a quotient of 2 and a remainder of 1 2 divided by 2 gives a quotient of 1 and a remainder of 0 1 divided by 2 gives a quotient of 0 and a remainder of 1 So the binary equivalent of 168 is 10101000

Octet 3: 94 94 divided by 2 gives a quotient of 47 and a remainder of 0 47 divided by 2 gives a quotient of 23 and a remainder of 1 23 divided by 2 gives a quotient of 11 and a remainder of 1 11 divided by 2 gives a quotient of 5 and a remainder of 1 5 divided by 2 gives a quotient of 2 and a remainder of 1 2 divided by 2 gives a quotient of 1 and a remainder of 0 1 divided by 2 gives a quotient of 0 and a remainder of 1 So the binary equivalent of 94 is 01011110

Octet 4: 124 124 divided by 2 gives a quotient of 62 and a remainder of 0 62 divided by 2 gives a quotient of 31 and a remainder of 0 31 divided by 2 gives a quotient of 15 and a remainder of 1 15 divided by 2 gives a quotient of 7 and a remainder of 1 7 divided by 2 gives a quotient of 3 and a remainder of 1 3 divided by 2 gives a quotient of 1 and a remainder of 1 1 divided by 2 gives a quotient of 0 and a remainder of 1 So the binary equivalent of 124 is 01111100

Concatenating these four octets gives us the binary equivalent of the IPv