Data Types - Binary Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What base is hexadecimal, denary and binary?

A

Hexadecimal-16
Denary-10
Binary-2

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

How do you convert binary to denary?

A

Draw out grid 128 to 1, and then put the numbers below

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

How do you convert denary to binary?

A

Draw out weights (128 to 1 grid) then see if the numbers fit into the largest weight and go down accordingly.

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

How do you convert hexadecimal to binary?

A

Split numbers into individual digits/letters (e.g 189 becomes 1, 8 and 9). Then convert these digits into 4 bits blocks of binary.

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

How do you convert binary to hexadecimal ?

A

Similar method as hexadecimal to binary. Split the numbers into nibbles (4 bits) then convert into digits or letters depending on the size.

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

How do you convert hexadecimal to denary?

A

Either convert to binary then into denary or remember the grid (1 16 and 256…) then split the numbers and times the first by 1 and so on

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

How do you convert denary to hexadecimal?

A

Through binary, or write out the weights (table) and figure out how much you can fit into each number. E.g if you are converting 159 you know it doesn’t fit into 256 but it does three times into 16.

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

What is the sign and maginitude method of showing negative numbers in binary?

A

If the leftmost bit is a 1, the number is negative as a result, a 0 is positive

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

What is the two’s compliment from method of showing negative numbers in binary?

A

The leftmost bit is always negative if the value is a 1 but if it is a 0 the value of bit is 0. This means when the leftmost bit is one, the rest are always positive. A quicker method is to flip all the numbers and add one, however, if the number already starts with a one before flipping, it will still be negative

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

What are the binary addition rules?

A

0 + 0 = 1
0 + 1 = 1
1 + 1 = 0, but carry a 1
1 + 1 + 1 = 1, but carry a 1

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

What happens in binary subtraction?

A

You can’t take away 0 from 1 so you have to borrow a 1 so the next bit becomes 0 and the current one becomes 2. Then you do 2 -1 which gives you 1.

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

What is the alternative method to binary subtraction?

A

You use two’s compliment and if you have 2 negative numbers to minus one and other you can change one to positive and add the numbers instead

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