unit 1: data representation Flashcards
16=2^4
four binary digits are equivalent to each hexadecimal digit
binary to hexadecimal
split no. into groups of 4 bits
take each group of 4 bits and convert it into equivalent hexadecimal digit
hexadecimal to denary
multiply each hex digit by its heading value
denary to hexadecimal
successive division by 16 until the value 0 is reached
(16. 32. 48. 64. 80. 96. 112. 128. 144. 160)
uses of the hexadecimal system
- error codes
- MAC addresses
- IPv6 addresses
- HTML colour codes
error codes
hexadecimal values refer to memory location of error
automatically generated by computer
MAC addresses
refers to no. which uniquely identifies a device on a network
refers to network interface card (NIC) which is a part of device
usually made of 48 bits (64 bits exist) which are shown in groups of two
MAC address components
- first half: identity no. of manufacturer
- second half: serial no.
IP addresses
gives unique address to each device connected to a network
diff. between IPv4 and IPv6
IPv4:
* 32-bit no.
*denary / hexadecimal
* decimal point (.)
IPv6:
* 128-bit no.
*broken down into 16- bit chunks
*hexadecimal
*colon (:)
HTML colour codes
represents colours of text on computer
intensity determined by hexa value
logical binary shifts
shift left = multiplying binary no. by 2
shift right= dividing binary no. by 2
left most bit
MOST SIGNIFICANT BIT
right most bit
LEAST SIGNIFICANT BIT
when does error show in logical binary shift?
when we have exceeded the maximum no. of left shifts possible using a certain register