1.1 number systems Flashcards

1
Q

why computers use binary to represent all forms of data

A
  • any form of data needs to be converted to binary
  • to be processed by computer (using logic gates, stored in registers)
  • can only be processed in two forms: 0 and 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is binary

A

base 2

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

what is denary

A

base 10

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

what is hexadeciml

A

base 16

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

how to convert to 2s complement

A
  • convert to binary
  • flip bits
  • add 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

uses of hexadecimal

A
  • defining colours in HTML
  • MAC addresses
  • display error codes
  • IP address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why is hex used as beneficial method of data representation

A

easier for humans to understand than binary
- shorter representation

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

what is overflow

A
  • error occurs when value greater than 255 in 8-bit register
  • computer has predefined limit that it can represent/store
  • error occurs when value outside limit should be returned
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

range of values in 2s complement byte and why

A

-128 to 127
MSB replaced form 128 to -128

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