data representation Flashcards
how do you convert from hex to denary
go through binary and then to denary, you cannot go straight through
3 reasons hex is used
easier for humans to read. uses less digits than binary. less input errors
how do you times or divide a binary number
using binary shift. shift to the left for times and to the right for divide
how would you add two binary numbers
using column addition
what is an overflow error
when adding two 8 bit numbers gives a nine bit number
what is a problem with overflow errors
it gives an incorrect calculation
how do you convert from binary to hex
“split the 8 bit binary to two 4 bit binary numbers. assign each one to a hex no then
merge the two”
what is ASCII
most commonly used character set in english speaking world
how many bits are in ASCII and how many characters can it code for
7, 128
what is extended ASCII
same as normal ASCII but codes for 256 characters, using 8 bits
what does unicode do
“it tries to cover every possible character from all languages for example. 16 or 32
bit.”
how are images stored
as a series of pixels, which are coded through binary
what is the formula to work out how many colours are stored in an image
2^no of bits
what does resolution mean
density of pixels in an image
what is analouge
pieces of continually changing data
what is the formula for bit rate
sampling freq x sampling size
define lossy compression
compresses by permenantly removing data from the file, reducing bits
define loseless compression
“makes the file smaller by temporarily removing data which is restored when the file
is reopened”
two pros of lossy compression
more files can be stored, uses less bandwidth
two cons of lossy compression
data is lost, worse quality
two pros of lossless compression
no reduction in quality, data is not lost
two cons of loseless compression
only provide a slight reduction in file size