unit 1: data representation Flashcards
(37 cards)
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
two’s complement : method
- write no. as + binary value
- invert each binary value
- add 1 to that no.
ASCII code system
(AMERICAN STANDARD CODE FOR INFO INTERCHANGE)
used in communication and computer systems
ASCII ranges
a-z : 097 - 122
A- Z : 065 - 090
0-9 : 048 - 057
why Unicode was created?
ASCII doesn’t represent characters in non- western languages
unicode represents all languages
sampling
amplitude of analogue sound wave recorded at regular/set intervals
sampling resolution
no. of bits used to represent sound amplitude in digital sound recording
sampling rate
no. of sound samples taken per sec
increasing no. of possible values used to represent sound amplitude…
…increases the accuracy of the sampled sound
benefits of using a larger sampling resolution
- larger dynamic range
- better sound quality
- less sound distortion