Binary Numbers Flashcards

1
Q

In our normal number system we have ten different digits. What are they known as?

A
  • denary
  • decimal
  • base-10
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Binary uses 2 different digits. What is this called?

A

base-2

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

How do you count in binary?

A
  • similar to denary

- place values from right to left increase by powers of 2 instead of powers of 10 like denary

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

What can 8 bit numbers represent?

A

The denary numbers 0-255

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

What can 16 bit numbers represent?

A

The denary numbers 0-65535

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

What can 32 bit numbers represent?

A

The denary numbers 0-4294967295

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

In binary how do we add?

A
  • 0 + 0 = 0
  • 1 + 0 = 1
  • 0 + 1 = 1
  • 1 + 1 = 10
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is overflow?

A

When during binary arithmetics you will get a result that requires more bits than the CPU is expecting.

e.g. 11111111 + 00000001 = 100000000
The 1 is seen as a overflow error and the computer will output 00000000 which is nonsense.

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

How do computers deal with overflow?

A

Store the extra bits elsewhere.

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

What are used to show that an overflow error has occurred?

A

Overflow flags

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

What is an issue with overflow?

A
  • loss of data and accuracy

- cause software to crash if doesn’t have a way of dealing with the extra bit.

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

What is a binary shift (also known as logical shift)?

A

Moves every bit in a binary number left or right a certain number of places.

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

What are gaps filled in with in a binary shift?

A

Gaps at beginning or end are filled in with 0s

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

What does a left binary shift do?

A
  • multiplies

- every place shifted left the number is doubled

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

What does a right binary shift do?

A
  • divides

- every place shifted right the number is halved

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

What can left shifts cause?

A
  • overflows leading to loss of accuracy/data
17
Q

What can right shifts cause?

A
  • bits to “drop off” the end leading to loss of accuracy/data