1.1 - number systems ๐Ÿ”ข Flashcards

to learn how to perform operations with binary and hexadecimal numbers + convert between number systems

1
Q

which number is binary based on?

A

2

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

which number is denary based on?

A

10

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

which number is hexadecimal based on?

A

16

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

how can numbers be converted from binary to denary?

A

by multiplying the 1-values with their headings and adding them up (eg. 1101 -> (18)+(14)+(02)+(11) = 8 + 4 + 1 = 13)

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

how can numbers be converted from denary to binary?

A

by successively dividing them by 2 (eg. 120 / 2 = 60R0 / 2 = 30R0 / 2 = 15R0 / 2 = 7R1 / 2 = 3R1 / 2 = 1R1 / 2 = 0R1 -> 1111000)

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

how can numbers be converted from binary to hexadecimal?

A

by splitting a binary number into fragments of 4 bits and then determining those fragmentsโ€™ values (eg. 00110100 -> 1011 0100 -> 11 and 4 -> B4)

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

how can numbers be converted from hexadecimal to binary?

A

by first converting the hexadecimal digits into 4-bit binary numbers and then combining them into a single 8-bit number (eg. 9D -> 9 and 13 -> 1001 1101 -> 10111101

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

how are MAC addresses (hexadecimal network device identifiers) formatted?

A

as MM:MM:MM:SS:SS:SS or MM-MM-MM-SS-SS-SS (M = manufacturer ID, S = device serial number)

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

what are some examples of manufacturer IDs in MAC addresses?

A

94:BF:2D (Apple), 9C:7B:EF (HP), A0:91:A2 (OnePlus)

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

how are IPv4 addresses formatted?

A

as either xxx.xxx.xxx.xxx (denary) or xx.xx.xx.xx (32-bit hexadecimal)

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

how are IPv6 addresses formatted?

A

as xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx (64-bit hexadecimal)

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

what are hexadecimal error codes used for?

A

to identify randomly-generated memory locations (eg. E00 -> 1110 0000 0000)

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

what do the hexadecimal numbers in HTML color codes stand for?

A

RGB values (eg. #FF0000 -> R255 G0 B0)

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

whatโ€™s an overflow error?

A

when there are more bits in a binary value than a device can allow for (eg. generating a 33-bit binary value when the maximum number of bits is 32 causes an overflow error)

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

how do logical shifts work?

A

they either multiply binary numbers by 2 (when done to the left) or divide them by that same number (when done to the right)

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

whatโ€™s different in twoโ€™s compliment mode?

A

the leftmost bit determines the numberโ€™s sign (0 = positive, 1 = negative)

17
Q

how do you convert negative denary numbers into binary?

A

by writing the denary valueโ€™s positive counterpart in binary, inverting all the bits, and adding 1 to the result

18
Q

(C1) convert the denary number 98 into binary without using a calculator

A

01100010

19
Q

(C2) convert the non-twoโ€™s complement binary number 10010010 into denary without using a calculator

A

146

20
Q

(C3) convert the hexadecimal number E04 into binary without using a calculator

A

1110 0000 0100

21
Q

(C4) convert the binary number 0101 0101 into hexadecimal without using a calculator

A

55

22
Q

(C5) convert the hexadecimal number F4 into denary without using a calculator

A

244

23
Q

(C6) convert the denary number 39 into hexadecimal without using a calculator

A

27 because 39 in binary = 0010 1001

24
Q

(C7) logically shift the binary number 00100101 (37 in denary) to the left and work out its value without using a calculator

A

01001010 (74 in denary - the original value was multiplied by 2)

25
Q

(C8) convert the denary number -101 to twoโ€™s complement-format binary without using a calculator

A

+101 = 01100101 in binary so flipping the digits turns this into 10100110 and adding 1 turns this into the final answer of 10100111