05_Number Systems Flashcards

1
Q

Binary Number System

A

Calculate numbers between decimal and binary systems.

  • Binary is a numbering system that consists of the digits 0 and 1 called bits.
  • Binary is important for us to understand because hosts, servers, and network devices use binary addressing. Specifically, they use binary IPv4 addresses, as shown in the figure, to identify each other.

Each address consists of a string of 32 bits, divided into four sections called octets. Each octet contains 8 bits (or 1 byte) separated with a dot. For example, PC1 in the figure is assigned IPv4 address 11000000.10101000.00001010.00001010. Its default gateway address would be that of R1 Gigabit Ethernet interface 11000000.10101000.00001010.00000001.

Binary works well with hosts and network devices. However, it is very challenging for humans to work with.

For ease of use by people, IPv4 addresses are commonly expressed in dotted decimal notation. PC1 is assigned the IPv4 address 192.168.10.10, and its default gateway address is 192.168.10.1

Binary is a numbering system that consists of the numbers 0 and 1 called bits. In contrast, the decimal numbering system consists of 10 digits consisting of the numbers 0 – 9. Binary is important for us to understand because hosts, servers, and network devices use binary addressing, specifically, binary IPv4 addresses, to identify each other. You must know binary addressing and how to convert between binary and dotted decimal IPv4 addresses. This topic presented a few ways to convert decimal to binary and binary to decimal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Hexadecimal Number System

A

Calculate numbers between decimal and hexadecimal systems.

To understand IPv6 addresses, you must be able to convert hexadecimal to decimal and vice versa.

Just as decimal is a base ten number system, hexadecimal is a base sixteen system. The base sixteen number system uses the numbers 0 to 9 and the letters A to F. The hexadecimal numbering system is used in networking to represent IPv6 addresses and Ethernet MAC addresses. IPv6 addresses are 128 bits in length and every 4 bits is represented by a single hexadecimal digit; for a total of 32 hexadecimal values. To convert hexadecimal to decimal, you must first convert the hexadecimal to binary, then convert the binary to decimal. To convert decimal to hexadecimal, you must also first convert the decimal to binary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Positional notation

A

Learning to convert binary to decimal requires an understanding of positional notation. Positional notation means that a digit represents different values depending on the “position” the digit occupies in the sequence of numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which is the binary equivalent to the 192.168.11.10 IP address?

A

11000000.10101000.00001011.00001010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is the binary equivalent to the 172.16.31.30 IP address?

A

10101100.00010000.00011111.00011110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Convert Binary to Decimal

A

To convert a binary IPv4 address to its dotted decimal equivalent, divide the IPv4 address into four 8-bit octets. Next apply the binary positional value to the first octet binary number and calculate accordingly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

binary positional value table

A

X = 128 - 64 - 32 - 16 - 8 - 4 - 2 - 1

Is the decimal number of the octet (n) equal to or greater than the most-significant bit (X)?

If no, then enter binary 0 in the X positional value.
If yes, then add a binary 1 in the X positional value and subtract X from the decimal number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Decimal to Hexadecimal Conversions

A

Converting decimal numbers to hexadecimal values is straightforward. Follow the steps listed:

  1. Convert the decimal number to 8-bit binary strings.
  2. Divide the binary strings in groups of four starting from the rightmost position.
  3. Convert each four binary numbers into their equivalent hexadecimal digit.

The example provides the steps for converting 168 to hexadecimal.

For example, 168 converted into hex using the three-step process.

  1. 168 in binary is 10101000.
  2. 10101000 in two groups of four binary digits is 1010 and 1000.
  3. 1010is hex A and 1000 is hex 8.
    Answer: 168 is A8 in hexadecimal.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Hexadecimal to Decimal Conversion

A

Converting hexadecimal numbers to decimal values is also straightforward. Follow the steps listed:

  1. Convert the hexadecimal number to 4-bit binary strings.
  2. Create 8-bit binary grouping starting from the rightmost position.
  3. Convert each 8-bit binary grouping into their equivalent decimal digit.

This example provides the steps for converting D2 to decimal.

  1. D2 in 4-bit binary strings is 1101 and 0010.
  2. 1101 and 0010 is 11010010 in an 8-bit grouping.
  3. 11010010 in binary is equivalent to 210 in decimal.
    Answer: D2 in hexadecimal is 210 in decimal.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which is the hexadecimal equivalent of 202?

A

CA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which is the hexadecimal equivalent of 254?

A

FE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which is the decimal equivalent of A9?

A

169

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following is the decimal equivalent of 7D?

A

125

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the binary representation for the decimal number 173?

A

10101101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Given the binary address of 11101100 00010001 00001100 00001010, which address does this represent in dotted decimal format?

A

236.17.12.10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How many binary bits exist within an IPv6 address?

A

128

17
Q

What is the binary equivalent of the decimal number 232?

A

11101000

18
Q

Which two statements are correct about IPv4 and IPv6 addresses? (Choose two.)

A
  • IPv4 addresses are 32 bits in length

- IPv6 addresses are represented by hexadecimal numbers

19
Q

Which IPv4 address format was created for ease of use by people and is expressed as 201.192.1.14?

A

dotted decimal

20
Q

What is the dotted decimal representation of the IPv4 address 11001011.00000000.01110001.11010011?

A

203.0.113.211

21
Q

What is the decimal equivalent of the binary number 10010101?

A

149

22
Q

What is the decimal equivalent of the hex number 0x3F?

A

63

23
Q

What is the dotted decimal representation of the IPv4 address which is represented as the binary string 00001010.01100100.00010101.00000001?

A

10.100.21.1

24
Q

What is the decimal equivalent of 0xC9?

A

201

25
Q

Which is a valid hexadecimal number?

A

f

26
Q

What is the binary representation of 0xCA?

A

11001010

27
Q

How many bits are in an IPv4 address?

A

32