Data Representation Flashcards

1
Q

What is the only type of data the CPU can store and process?

A

Binary

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

Why is it important for us to have a universal text system?

A

To allow all computers to use the same codes to represent the same characters
Only have to learn one code to work on many computers

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

Give an example of a ASCII code and what it represents

A

65 = A
97 = a
etc

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

Give an advantage of

a) Unicode compared to ASCII
b) ASCII compared to Unicode

A

a) Larger range of characters can be represented

b) Smaller storage requirements

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

Describe ASCII

A

ASCII(American Standard Code for Information Interchange) is a system used to represent characters. It stores each character in 8 bit code.

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

Why do computers use base 2 instead of base 10?

A

Base 2 is ideal for storing binary numbers

Base 10 requires a lot of processor space to build in rules for arithmetic such as addition,subtraction

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

How are integers stored in a computer?

A

Each integer has an individual binary number.

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

How many values can be represented by 5 bits?

A

2^5

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

What is the range of values that can be stored in 18 bit?

A

0 to 2^18 - 1

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

How can negative integers be represented on a computer system?

A

Two’s complement

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

How do you represent floating point numbers in a computing system?

A

Floating Point Form

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

If you allocate more bits to storing the<em> mantissa <em> of a floating point number, what will happen?</em></em>

A

The precision of the number will increase

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

How would you increase the range of a floating point number?

A

Allocate more bits to the storage of the exponent

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

Describe a bit-map image

A

A bit-map image is where the image is stored as a 2D array of pixels where each pixel can be individually edited. The colours in the picture are each a unique binary number.

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

What is the definition of ‘bit depth’

A

Bit depth is the number of bits used to store each pixel

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

If you increase the <em>resolution</em> of a picture, what are you increasing?

A

The number of pixels in a defined place

17
Q

What is an advantage of storing your image as a bitmap rather than a vector?

A

<ul>
<li> Able to individually edit pixels</li>
<li>Able to do red eye removal</li>
</ul>

18
Q

Describe how images are stored as vector images

A

In vector images, the image is stored as a series of vectors which describe the attributes of the objects in the image. For example, the vectors of a circle could relate to fill colour, line thickness, radius, centre(x,y) etc

19
Q

If the bit depth is represented by <strong>n</strong> , what would be the number of colours?

A

2^n

20
Q

Describe advantages of storing your image as a vector rather than a bitmapped image

A
<ul>
<li> Able to layer objects </li>
<li> Able to resize and rotate individual objects</li>
<li>Resolution Independant</li>
</ul>
21
Q

What are advantages to compressing your images?

A

<ol>
<li> Faster file transfer speed </li>
<li>Less memory required to store images</li>
</ol>

22
Q

Give an example of a file type that uses lossy compression

A

JPEG

MP3

23
Q

Give an example of a file type that uses lossless compression

A

GIF

24
Q

Describe how Discrete Cosine Technique reduces file size and state what type of compression it is

A

Discrete Cosine Technique is a LOSSY compression technique that <strong>applies a mathematical formula </strong> based on the cosine wave to groups of <strong> 64 </strong>pixels (8 x 8)

25
Q

Lauren has a picture of the Swedish Flag she would like to send to her friend. What form of compression should she use to ensure it has a fast data transfer speed?

A

She should use RLE(Run Length Encoding) as the Swedish flag has runs of repeating colours which she could save as the colour and how long the run is