Binary and Hex Conversions Flashcards

1
Q

How do you add binary numbers?

A

1 + 1 = 0 where you carry 1 to the next line
1 + 1 + 1 = 1 where you carry 1 the next line
0 + 0 = 0
1 + 0 = 1

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

What is a binary shift also known as?

A

A logical shift

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

What happens in a binary shift to the left?

A

The number (in decimal) get multiplied by 2 (to the power of however many shift were done)

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

What happens in a binary shift the right?

A

The number (in decimal) get divided by 2 (to the power of however many shift were done)

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

What does each hex digit equate to in binary?

A

A nibble (four 1s and 0s)

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

What does moving right to left in a hexadecimal table do?

A

Increase in powers of 16

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

How do you convert from hex to decimal

A
  1. Draw the table (goes up in powers of 16)
  2. Write the hex number in the table
  3. Multiply the numbers in each column
  4. Add up the results for each column
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you convert from decimal to hexadecimal?

A
  1. Draw the table and start from the left
  2. Divide the number you are converting by the number of the top of the left column
  3. Divide the remainder by the number at the top of each column until you get 0
  4. Convert the numbers at the bottom of each column into hex separately and put them together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the conversions from decimal to hexadecimal?

A

0 to 9 (in decimal) = 0 to 9 (in hex)
10 to 15 (in decimal) = A to F (in hex)

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

How do you convert from binary to hexadecimal?

A
  1. Split the binary number into nibbles (10111001 = 1011 1001)
  2. Draw 2 tables (dependent on the number of nibbled) with columns labelled 1 to 8 and fill them in
  3. Convert those separate tables into decimal
  4. Convert the decimal numbers into hex and put them together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you convert hexadecimal do binary?

A
  1. Convert the hex digits separately into decimal
  2. Convert those decimal numbers into binary
  3. Put them together to get a big binary number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Do computers use hex?

A

No, they still have to convert everything to binary

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

Why is hex used?

A

It’s simpler to remember large numbers in hex
Hex numbers are shorter - less chance of input errors
Easier to convert between binary and hex than binary and decimal

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

What is the number base for decimal numbers?

A

10

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

What is the number base for binary?

A

2

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

What is the number base for hexadecimal?

A

16