Data Representation Flashcards

1
Q

How do you convert a negative denary number to a binary number?

A
  1. Write the positive Binary
  2. Invert all the bits
  3. Add 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Write -17, in binary, using Two’s complement:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a ‘0’ signify when it is the leftmost digit in binary?

A

Postive (+)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does a ‘1’ signify when it is the leftmost digit in binary?

A

Negative (-)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the steps to convert a binary set of numbers to denary number using twos compliment .

A
  1. Look at the leftmost bit to see if it is positive or negative.
    1. If Negative:
      1. Subtract 1
      2. Invert all of the bits
      3. Write a ‘-’ sign
      4. Calculate
    2. If Positive:
      1. Write a ‘+’ sign
      2. Calculate
  2. Add to get the denary number
  3. Write denary number with correct sign.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you find the range?

A
  • Steps to calculate range of two’s complement
    1. 2 to the power of bits (2^8 = 256)
    2. Calculate range when not two’s complement
    3. Half it to find the lowest negative number
    4. Subtract 1, for the highest positive number
    5. Write the range.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Take this with a grain of salt but…

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How many bits can ASCII store?

A

128 bits

2^(7) = 128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many bits can extended ASCII store?

A

256 bits

2^(8) = 256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many bits can Unicode store?

A

Up to 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Unicodes Pros and Cons

A

Pros:
-Can store many, many more characters than ASCII

Cons:
- More demanding than ASCII
- Requires a lot more storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does resolution dependent mean?

A

It means that once the image is created the number of pixels cannot be changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Resolution Meaning

A

The total number of pixels in an image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the Pros and Cons of Bitmapped Graphics

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the meaning of bit depth?

A

The number of colours that can be stored in a bitmap image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to calculate colours

A

2^(8)= 256
2 to the power of bit depth.

Bit Depth | Available colours
8 bits per pixel | 256
16 bits per pixel | 65356
24 bits per pixel | 16,777,216

17
Q

What is true colour?

A

A bit depth of 24 bits, the same amount of colours as humans can see.

18
Q

What is it for something to be Resolution independent?

A
  • Scaling is possible without a loss in quality
  • Most commonly stored in .svg file format (Scalable Vector Graphic)
  • Attributes and objects can be edited independently of one another