Data Representation Flashcards
How do you convert a negative denary number to a binary number?
- Write the positive Binary
- Invert all the bits
- Add 1
Write -17, in binary, using Two’s complement:
Steps 128 64 32 16 | 8 4 2 1
1. 0 0 0 1 | 0 0 0 1
2. 1 1 1 0 | 1 1 1 0
3. 1 1 1 0 | 1 1 1 1
What does a ‘0’ signify when it is the leftmost digit in binary?
Postive (+)
What does a ‘1’ signify when it is the leftmost digit in binary?
Negative (-)
What are the steps to convert a binary set of numbers to denary number using twos compliment .
- Look at the leftmost bit to see if it is positive or negative.
- If Negative:
- Subtract 1
- Invert all of the bits
- Write a ‘-’ sign
- Calculate
- If Positive:
- Write a ‘+’ sign
- Calculate
- If Negative:
- Add to get the denary number
- Write denary number with correct sign.
How do you find the range?
- Steps to calculate range of two’s complement
- 2 to the power of bits (2^8 = 256)
- Calculate range when not two’s complement
- Half it to find the lowest negative number
- Subtract 1, for the highest positive number
- Write the range.
Take this with a grain of salt but…
The larger the mantissa, the more accurate the number stored can be. The more larger the exponent gets the magnitude of numbers being able to be stored increases.
How many bits can ASCII store?
128 bits
2^(7) = 128
How many bits can extended ASCII store?
256 bits
2^(8) = 256
How many bits can Unicode store?
Up to 16
What are Unicodes Pros and Cons
Pros:
-Can store many, many more characters than ASCII
Cons:
- More demanding than ASCII
- Requires a lot more storage
What does resolution dependent mean?
It means that once the image is created the number of pixels cannot be changed
Resolution Meaning
The total number of pixels in an image
What are the Pros and Cons of Bitmapped Graphics
Pros:
Cons
- Bit-mapped sets pixels so making changes requires editing all pixels involved (e.g. when moving part of graphic) which is more complex.
What is the meaning of bit depth?
The number of colours that can be stored in a bitmap image.