5.6 Representing images, sound and other data Flashcards

1
Q

what are the main differences between analogue and digital data? ( 2 separate points)

A

Analogue data is continuous, Digital is discrete

Analogue signals can take any values and can change frequency as required

Digital signals must always take on specified range of values and can only change values at specified intervals

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

How do you convert sound, digital to analogue and how does it work?

A

DAC is used
Device reads a bit pattern representing an analogue signal and outputs an alternating, analogue, electrical current

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

How do you convert sound analogue to digital?

A

ADC is used
The device takes a reading of an analogue signal at regular intervals and records the value (sampling)
Samples are taken at a specific frequency (in Hertz)
This determines the number of samples taken per second
Greater sampling frequencies result in a better reproduction of an analogue signal

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

How do bitmap graphics work?

A

An image is broken down into pixels each of which has a binary value assigned to it.

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

What is the resolution of an image?

A

number of dots per square inch in an image where a dot is a pixel. also refer to the number of pixels in an image.

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

what is colour depth, how can it be calculated?

A

Colour depth is the number of bits assigned to a pixel in an image. It can be calculated by 2^n n being the amount of bits used

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

how do you calculate the storage required to represent a bitmap image?

A

Multiple the number of pixels (width * height) by the colour depth + metadata.

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

what are some typical examples of metadata?

A

Width, height, date created and colour depth

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

How do vector graphics work?

A

Geometric objects and shapes are used to create images
Properties for each geometric object or shape in the image are stored in a list

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

What’s the advantages and disadvantages of using vector graphics over bitmap images?

A

Vector graphics can be scaled without losing quality

Vector graphics are not suited to store photos

Vector graphics take up less storage space

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

How do you represent sound digitally?

A

As a sequence of samples
Each sample takes a discrete digital value
Samples per second is the sample rate (hertz)
Number of bits allocated is the sample resolution.

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

How do you calculate the size of a sound sample?

A

Multiplying the duration of the sample in seconds by the sampling rate in hertz and the sample resolution. With metadata

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

What is the Nyquist theorem?

A

The sampling rate must be at least twice the frequency of the signal

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

What is MIDI?

A

Musical instrument digital interface.
Used with electronic instruments which can be connected to computers
Stores sound as event messages
each event message represents an event in a piece of music.

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

In MIDI what do the event messages contain?

A

the duration of a note, The instrument with which a note is played, how loud a note is, if a note should be sustained

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

what are the advantages and disadvantages of MIDI?

A

Benefits of MIDI
MIDI allows easy manipulation of music without loss of quality
The instruments on which notes sound can be changed
Notes can be transposed
The duration of notes can be altered
MIDI files are often smaller than sampled audio files
Drawbacks of MIDI
MIDI can’t be used for storing speech
MIDI sometimes results in a less realistic sound than sampled recordings

17
Q

Why are files compressed?

A

To reduce their size
So then can be transferred faster

18
Q

What is lossy compression?

A

Lossy compression is when information is lost in the process of reducing the files size.

19
Q

what is lossless compression and the 2 methods?

A

Lossless compression is when there is no loss of information. the file size can be reduced without a decrease of quality.
This can be RLE or dictionary based methods.

20
Q

How does run length encoding (RLE) work?

A

RLE reduces the size of a file by removing repeated information and replacing it with one occurrence of the repeated information followed by the number of times it is to be repeated

21
Q

How do dictionary-based methods work?

A

A dictionary containing repeated data is appended to the file. The dictionary used to comprise the data must be present in the file

22
Q

What are the advantages and disadvantages of lossy compression compared to lossless compression?

A

Information is lost in lossy but not lossless.

Quality is reduced in lossy but not lossless

There is no limit of compression in lossy but there is a limit to lossless

23
Q

what is encryption?

A

Encryption is the process of scrambling data so that it cannot be understood if intercepted in order to keep it secure during transmission.

24
Q

Describe what is meant by plain text and cypher text?

A

Unencrypted information is referred to as plaintext and encrypted information is called cypher text.

25
Q

What is a cipher?

A

A cipher is a type of encryption method

26
Q

How do caesar ciphers work?

A

Encrypt information by replacing characters
One character is always replaced by the same characters.
Two types - shift and substitution

27
Q

How do shift ciphers work?

A

All letters in the alphabet are shifted by the same amount.
This forms a key

28
Q

How do substitution ciphers work?

A

Substitution ciphers are when letters are randomly replaced.

29
Q

Why aren’t caesar ciphers secure?

A

Once one character has been discovered a shift cipher can be completely crackers as the key can be found.

30
Q

How does the Vernam cipher work?

A

Aligning the characters of plaintext with key
Convert each character to binary
Apply XOR operation to bit patterns
Convert the results back to characters

31
Q

What is a one-time pad cipher

A

Cipher where:
Each key should only ever be used once
The key must be random
The key must be as long as the plaintext

32
Q

Why is the vernam cipher so secure?

A

because it is an example of a one-time pad cipher

33
Q

What is computational security?

A

In theory every cryptographic algorithm except for vernam cipher can be broken, given enough cipher text and time.