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
2
Q
what is binary
A
base 2
3
Q
what is denary
A
base 10
4
Q
what is hexadeciml
A
base 16
5
Q
how to convert to 2s complement
A
- convert to binary
- flip bits
- add 1
6
Q
uses of hexadecimal
A
- defining colours in HTML
- MAC addresses
- display error codes
- IP address
7
Q
why is hex used as beneficial method of data representation
A
easier for humans to understand than binary
- shorter representation
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
9
Q
range of values in 2s complement byte and why
A
-128 to 127
MSB replaced form 128 to -128