1 Data Representation Flashcards
convert binary to denary
right to left: each bit is worth 2 times the last bit, add up all the bits with 1’s
convert denary to binary
continually divide denary number by 2 until you get to 0, and put 1 as the remainder for odd numbers. To get the binary number, read the remainders from bottom to top
convert binary to octal (and vice versa)
for every 3 bits, right to left: each bit is worth 2 times the last bit, add up all the bits with 1’s, for 3 bits is one bit for octal
convert binary to hexadecimal (and vice versa)
for every 4 bits, right to left: each bit is worth 2 times the last bit, add up all the bits with 1’s, for 4 bits is one bit for hexadecimal
What is hex ABC in octal
ABC=5274
A=1010 B=1011 C=1100 ABC=1010 1011 1100 = 5274
5=101 2=010 7=111 4=100
Uses of the hexadecimal system (4)
error codes
MAC (media access control) addresses
IPv6 addresses
HTML colour codes
overflow error definition
the result of an equation exceeded the largest possible number which can be stored using a certain number of bits
logical shift definition
a logical shift moves binary numbers to the left or the the right. Each shift left is equivalent to multiplying the binary number by 2 and each shift to the right is equivalent to dividing the binary number by 2
what is two’s complement
allows binary representation of negative integers
the most important bit (on the far left) of the number becomes a negative
there must be a one in the MIB
what is an ASCII code system
American Standard Code for Information Interchange
a character set that consists of 7-bit codes (0-127 in denary)
represents the letters, numbers and characters found on a standard keyboard, together with 32 controd codes
sound sampling meaning
measuring the amplitude of the sound wave
sampling rate meaning
the number of samples taken in 1 second or the frequency of sound samples taken
measured in hertz (Hz)
sampling resolution meaning
the number of bits per sample
also known as the bit depth
pixels meaning
the smallest element of a bitmap image
colour depth meaning
the number of bits used to represent each colour for each pixel