Data Representation Flashcards
1
Q
What are the two types of compression?
A
-Lossy
-Lossless
2
Q
How are lossy and lossless different?
A
-Lossy: loses data to decrease file size
-Lossless: loses less
3
Q
How does the number of bits used effect the quality of images or sound?
A
Bit Depth determines the resolution of the image. In audio, it determines the soundwave’s frequency.
4
Q
How many colours can you store in 5 bits?
A
Allows 32,768 colors to be represented.
5
Q
What is the difference between a logical shift right and an arithmetic shift right?
A
If a number is encoded using two’s complement, then an arithmetic right shift preserves the number’s sign, while a logical right shift makes the number positive.