fundamentals of data representation Flashcards

1
Q

what is a pixel

A
  • pixels are short for picture element
  • the smallest identifiable area of an image
    -each pixel is a single colour and is given a binary value which represents that colour
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the resolution

A

the concentration of pixels within a specific area

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

how many values does a one-bit-per-pixel allow

A

2 values - black and white

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

how many colours come from 3 bits

A

8 - 2^8

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

how does a higher bit depth affect the image

A

gives a greater quality of image and greater range of colours

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

how many colours come from 24 bits

A

2^24 = 16777216

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

how does the number of colours affect file size

A

an increase in the number of colours used( the bit depth ) increases the file size

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

how does the size of the image affect file size

A
  • an increase in the number of pixels in the image will increase the file size

BUT if the image’s physical size is increased by making each pixel larger, the file size will not change

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

what is the formula to calculate the image file size in bits

A

width x height x colour depth

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

what is the formula to calculate the image file size in bytes

A

width x height x colour depth / 8

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

what is metadata

A

is data about data

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

what are the ways to store images

A

bitmap and vector

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

what is colour depth

A

the number of colours needed to represent each pixel

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

sound is —– and must be converted to a ———– form for storage and processing in a computer

A

digital , digital

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

what does ADC stand for

A

analogue to digital converter

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

what is an ADC used for

A

to convert inputs to digital signals

17
Q

what is a DAC

A

digital to audio converter

18
Q

what does a DAC do

A

convert digital signals to outputs

19
Q

how is sound sampled

A

using a sample resolution ( bit depth)
- using a sampling rate

20
Q

what is sample resolution

A

the number of bits used to record each measurement

21
Q

what is the sample rate

A

The number of samples taken in a second is usually measured in hertz (1 hertz = 1 sample per second).

22
Q

what affects the quality of a digitally converted sound wave

A

sample rate and sample resolution

23
Q

what would happen if either or both sample rate or sample resolution increased

A

the quality of overall sound would also increase( get better ) and the file size will increase

24
Q

how to calculate file size (in bits) in term of sound

A

sampling rate x resolution x duration

25
Q

how can you improve the recording quality

A
  • the more frequently we sample the sound
  • the more accurately we record the wave height
26
Q

why is data compressed

A
  • compression reduces the size of the file, so it takes up less space, and so you can maximise the amount of storage on a device
  • smaller files are quicker when transferred / streamed over the internet
27
Q

what are some compression techniques ( images )

A
  • to make the file size smaller: store a lower number of colours
  • or store bigger areas of pixels as one colour
28
Q

what is lossy compression?

A

removes the data permanently, so the file can never return to its original form. ​

29
Q

what is lossless compression

A

Compression that doesn’t lose any of the file’s original quality

30
Q

what are some examples of lossy compression

A

JPG , GIF , MP3

31
Q

what are some examples of lossless compression

A

PNG, TIFF

32
Q

what is decompression

A

process where compressed data is resotred to its original format

33
Q

what does RLE stand for

A

run - length - encoding

34
Q

differences between lossy and lossless compression

A

lossy :
- some of the data is lost and cannot be recovered
-greatly reduces file size
-reduces the quality of the image/sound
- suitable for image and sound
- cannot be used on text and executable files

lossless:
- none of the data is lost , it is encoded differently
- can be turned back into original format
- can be used on all types of data
- less effective than lossy and reducing file size
- suitable on documents

35
Q

what is RLE used for

A

compressing bitmaps images

36
Q

Explain how data can be compressed using run length encoding

A

RLE uses frequency data pairs to to encode each run length of the same coloured pixel

37
Q

what type of compression is huffman coding

A

lossless