Data Representation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How is a vector graphic represented?

A

Vector images are composed of objects
Properties of objects are stored

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

What are some properties a vector graphic might store?

A

Fill colour
Outline colour
x and y coords
Outline width
Width
Height

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

What is run length encoding?

A

A run is a series of pixels of the same colour.

Pairs of values are stored:
The colour and the number of pixels in the run

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

What is an ordinal number?

A

An ordinal number is used to show position/rank.

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

What are advantages of vector graphics?

A

Individual parts of images can be manipulated independently.
Parts of the image can be enlarged without loss of quality.
If component is deleted the software knows what is behind it.
Stored images take up less storage.

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

What are advantages of bitmaps?

A

Images can be represented with complex textures.
Can represent non-regular shapes.
Digital photos are naturally represented as bitmaps.

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

How does MIDI represent digital music?

A

Music is represented as a sequence of MIDI (event) messages.
Data contained in a message might include:
- Instrument.
- Frequency of note.
- Duration.
- Volume.

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

What are the advantages and disadvantages of MIDI?

A

Pros:
- Less storage space take up than sampled recording.
- Performance data can be easily manipulated (pitch, duration etc.)

Cons:
- Synthesised sound often doesn’t sound realistic.

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

What is analogue data (sound)?

A

Data measured in a continuous manner.
An electrical analogue signal consists of a continuously variable voltage.

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

What is digital data (sound)?

A

Sets of distinct values.
A digital signal is a representation of discrete values over time.

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

How does an ADC work?

A

Analogue to Digital Converter.
Analogue signals sampled at regular intervals.
Amplitude at each sample point is measured.
Measurement is coded into binary.

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

What is the main advantage of floating point representation?

A

It can represent a wider range of numbers (than fixed point)

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

What is an advantage of fixed point representation of a number?

A

Can represent numbers more precisely.
Represents numbers to a constant level of precision.
Calculations can be performed quicker.

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

Why are advantages of JSON over XML?

A

JSON is easier for humans to read.
It is more compact, uses less memory.
It is quicker to parse.

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

What are advantages of XML over JSON?

A

It allows a schema to be written. This allows the user to specify the structure of the file.

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