Data Representation Flashcards

1
Q

How do you convert Digital Signals to Analogue signals?

A

A device called a digital to analogue converter (DAC) is used - it reads a bit pattern representing an digital signal and outputs an analogue, electrical current

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

How do you convert Analogue Signals to Digital Signals?

A

1) A sensor such as a microphone outputs an analogue signal
2) Computer uses an Analogue to Digital Convertor
3) ADC takes samples of the analogue signal at regular intervals
4) The amplitude of each sample is approximated to an integer value
5) Each sample is assigned a binary value - so it can be stored digitally

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

How do you calculate the size of a sound file?

A

Size (Bits) = Sample Rate x Sample Resolution x Length of Sample

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

What is the range that humans can hear at?

A

Between 20Hz and 20,000Hz

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

What is Nyquist Theorem?

A

To produce an accurate recording, the sampling rate must be at least double that of the highest frequency in the original signal

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

What is MIDI?

A

Electronically generated sounds that mimic musical instruments

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

What are the advantages of MIDI?

A

MIDI allows easy manipulation of music without a loss in quality
MIDI are smaller in size and are lossless - so no information is lost when using MIDI

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

What are the disadvantages of MIDI?

A

Can’t be used for storing speech
Can result in less realistic sounds

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

What is colour depth?

A

The number of bits assigned to a pixel in an image - if one bit, then 2^1 colours are available, if 2 then 2^2 bits, etc

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

Give some examples of metadata

A

Metadata is extrainformation - e.g. Width, Height, Date Created

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

What are vector graphics?

A

Vector Graphics represent images using geometric objects and shapes

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

Vector Graphics vs Bitmapped Graphics?

A

1) Vector Graphics can be scaled without losing quality, whereas bitmap will lose quality
2) Vector graphics are suited to simpler images, bitmap to more complex - such as photographs
3) Vector Graphics use less storage space than bitmapped, as they only store information about the shape instead of each pixel

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

What is Lossy Compression?

A

The process of reducing a file size, by deleting information within the file - this could be lowering image resolution (deleting certain pixels)
This can’t be undone

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

What is Lossless Compression?

A

The process of reducing a file size without deleting any information, this reduces a file size without lowering qualitty

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

What is Run Length Encoding?

A

A type of lossless compression
Reduces the size of a file by removing repeated information and replacing it with a singoe occurance, followed by the number of times it is repeated

e.g. In a bitmap, a line of pixels could be
1 White 5 Yellow 1 white

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

What is Computational Security?

A

Something is computationally secure if it cannot be cracked within reasonable time

17
Q

What are the conditions for the Vernam Cipher to offer perfect security?

A

1) The encryption key is equal to or longer than the plaintext message
2) The key is random
3) The key is only used once and is then destroyed

18
Q

How do you peform the Vernam Cipher?

A

1) Separate your word into its letters (e.g. D, A, V, E)
2) Separate your key into its separate characters (e.g. #9[G)
3) Get the ASCII values of each character
4) Do an XOR calculation, comparing first letter to first character, second letter to second character, etc
5) Convert the new ASCII value back

19
Q

What is a Caesar Cipher?

A

1) Choose a letter and then shift that letter and every letter following it by x number of times

Very easy to crack or brute force as limited number of permutations

20
Q

How does dictionary based compression work?

A

Take a sentence and give a number to every unique word
(e.g. Walk to the park to say hi)
Walk - 1
To - 2
The - 3
Park - 4
Say - 5
Hi - 6
These new code are stored in unicode
This means that 3 bits are required as (2^3) = 8 and we have 6 codes (Repeated words count for one)
Lossless Compression

21
Q

How does Truncation/Rounding work?

A

Truncation - Cut the bits off that don’t fit
Rounding - Cut the bits off, but if the first bit to cut off is a 1, then add a 1 to the least significant bit

22
Q

What are absolute/relative errors?

A

Sometimes, some numbers cannot be represented using fixed/floating point binary (e.g. 1/3). So we work out the closest approximation and calculate the error
Absolute Error - The difference between the desired value and the actual value
Relative Error - Absolute Error / Actual Value * 100

23
Q

Floating Point vs Fixed Point

A

Floating Point binary allows representation for a greater range of numbers with a given number of bits.
Large exponent, smaller mantissa allows for a large range but little precision
Large Mantissa, Small Exponent allows for small range but great precision

Moving the fixed point to the left increased precision, to the right increases range

24
Q

What is Underflow?

A

When a number is too small to be represented with the amount of bits available

25
Q

What is Overflow?

A

When a number is too big to be represented with the amount of bits available

26
Q

What are the benefits of ASCII over Unicode?

A

1) Takes up less memory as only stores 128 characters
2) Uses 7 bits - so 8th bit can be used as an error check

27
Q

What are the benefits of Unicode over ASCII?

A

1) Allows a wider range of characters
2) Can be used internationally as allows multiple languages, better for communicating online

28
Q

What are the advantages of Normalisation?

A

1) Maxmises precision based on the number of bits
2) Gives a unique representation of each number