paper 1 - data representation and compression Flashcards

1
Q

what are alphanumeric characters used for?

A

they are used to make words and strings. They include uppercase and lowercase letters, the digits 1-9, and symbols like ? + and £

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

what are character sets?

A

collections of characters that a computer recognises from their binary representation

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

what is ASCII?

A
  • ASCII is the most commonly-used character set in the English-speaking world. Each ASCII character is given a 7-bit binary code - this means it can represent a total of 128 different characters, including all the letters in the English alphabet, numbers, symbols and commands
  • An extra bit (0) is added to the start of the binary code for each ASCII character. This means each ASCII character fits nicely into 1 byte
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is extended ASCII?

A

a character set which gives each character an 8-bit binary code, allowing for 256 characters to be represented. The first 128 characters are in exactly the same order as the ASCII characters.
Extended ASCII is particularly useful for many European languages like French and German which include accents on some of the vowels

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

what is unicode?

A
  • unicode is a character set that comes in several different forms and tries to cover every possible character that might be written. In its most common forms it uses 16-bit and 32-bit binary codes
  • Unicode is that covers all major languages , even those that use a completely different alphabet like Greek, Russian and Chinese
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the 2 types of images?

A

bitmap and vector

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

what are bitmap images mainly used for?

A

photos

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

how are bitmap images stored as binary?

A

Bitmap images are made up of lots of tiny dots, called pixels. The colour of each pixel is represented by a binary code. The number or colours available in an image is related to the number of bits the code has

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 used for each pixel

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

what is the formula to work out how many colours can be made in an image?

A

total number of colours = 2^n (where n = number of bits per pixel, or bpp)

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

what colour depth do most devices use?

A

a 24-bit colour depth, with 8 bits used to indicate the levels of red, green and blue needed for each pixel. It is estimated that the human eye can see around 10 million different colours, so a 24-bit colour depth should cover every colour that you could possibly see

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

what is the resolution of an image? What is resolution normally measured in?

A

the density of pixels in an image, i.e. how many pixels are within a certain area. It’s normally measured in dots per inch (dpi)

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

what does increasing the resolution or the colour depth of an image mean?

A

that there are more bits in the image. This improves the image quality but also increases the file size

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

what is metadata? (images)

A

the information stored in an image file which helps the computer recreate the image on the screen from the binary data in each pixel. It usually includes the image’s file format, height, width, colour depth and resolution. It can also include extra information, like the time and date that the image was created or last edited. Without metadata, devices would not be able to display the image on screen as intended

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

what are the steps to sampling sound and storing it digitally?

A
  1. sound is recorded by a microphone as an analogue signal. Analogue signals are pieces of continually changing data
  2. analogue signals need to be converted into digital data so that computers can read and store sound files. This is done by analogue to digital converters, which are found in most modern recording devices
  3. the process of converting analogue to digital is called sampling: to convert the analogue recording to digital data, we sample the amplitude of the wave at regular intervals. The amplitude can only take certain values depending on the bit rate.
  4. once the device has sampled the recording, it creates the curve digitally
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how is a digital sound wave similar/different to an analogue sound wave?

A
  • the digital data is about the same shape as the analogue wave, but it’s not continuous. It’s lost a lot of data - the peak of the analogue wave is much flatter in the digital data
17
Q

how can digital sound data be improved?

A

by taking samples more regularly - most music isn’t sampled every second but every millisecond

18
Q

what are sampling intervals?

A

the gaps between each of the points where the analogue recording is sampled. E.g. the audio file might be sample every 5 milliseconds (ms), in which case the sampling interval would be 5 ms

19
Q

what is sampling frequency (or sample rate)? What is it usually measured in?

A

how many samples you take in a second - it’s usually measured in kilohertz (kHz). E.g. a common sampling frequency is 44,100 samples per second (44.1 kHz)

20
Q

what is sample size?

A

the number of bits available for each sample (like colour depth but for sound samples)

21
Q

what is bit rate?

A

the number of bits used per second of audio

22
Q

what is the formula for bit rate?

A

bit rate = sampling frequency x sample size

23
Q

what is bit rate usually measured in?

A

kilobits per second (kbit/s)

24
Q

what would happen if you increased the sampling frequency?

A

increasing the sampling frequency means the analogue recording is sampled more often. The sampled sound will therefore be better quality and will more closely match the original recording.

25
Q

what will happen if you increase the sample size of a sound recording?

A

increasing the sample size means the digital file picks up quieter sounds, even if they’re happening at the same time as louder ones. This will also result in a sampled sound that is closer the the quality of the original recording.

26
Q

what is a negative of increasing the sampling frequency and sample size?

A

a larger file size

27
Q

what is data compression?

A

making files smaller, while trying to make the compressed file as true to the original as possible

28
Q

what are the benefits of compression?

A
  • smaller files take up less storage space on a device
  • streaming and downloading files from the internet is quicker as they take up less bandwidth
  • it allows web pages to load more quickly in web browsers
  • email services normally have restrictions on the size of the attachment you can send - compressing the file allows you to send to same content with a much smaller file size
29
Q

how does lossy compression work?

A

by permanently removing data from the file - this limits the number of bits the file needs and so reduces its size

30
Q

how does lossless compression work?

A

lossless compression makes the file smaller by temporarily removing data to store the file and then restores it to its original state when it’s opened

31
Q

what are the pros of lossy compression?

A
  • greatly reduces file size, meaning more files can be stored
  • lossy files take up less bandwidth so can be downloaded and streamed more quickly
  • commonly used - lots of software can read lossy files
32
Q

what are the cons of lossy compression?

A
  • lossy compression loses data - the file can’t be turned back into the original
  • lossy compression can’t be used on text or software files as these files need to retain all the information of the original
  • lossy files are worse quality than the original, but this loss in quality is normally unnoticeable
33
Q

what are the pros of lossless compression?

A
  • data is only removed temporarily so there is no reduction in quality - the compressed file should look or sound like the original
  • lossless files can be decompressed - turned back into the original
  • lossless compression can be used on text and software files
34
Q

what is the con of lossless compression?

A

there’s only a slight reduction in file size, so lossless files still take up quite a bit of space on your device. E.g. a lossless song may have a file size of around 30 MB, while the same song with lossy compression may be 5MB

35
Q

give 3 examples of lossy file types

A
  1. MP3 (audio)
  2. AAC (audio)
  3. JPEG (image)
36
Q

give 3 examples of lossless compression file types

A
  1. FLAC (audio)
  2. TIFF (image)
  3. PNG (image)