U3 - Data representation Flashcards

1
Q

What is the MSB

A

The most significant bit is the bit with the largest value (the bit that is furthest to the left)

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

What is the LSB

A

The least significant bit is the bit with the smallest value (the bit that is furthest to the right)

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

What is the largest number you can represent in 1 byte?

A

255 (but 256 numbers can be represented)

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

Advantages of hex (4)

A
  • It is much simpler to remember a hex value than a binary value
  • It is quicker to write or type since a hex digit only takes up one digit rather than 4 bits
  • People are less likely to make an error with fewer digits
  • It is easy to convert between hex and binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define overflow error

A

An overflow error occurs when the result of a binary addition is too large for the number of bits the computer works with

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

What effect does a binary shift left have on a number?

A

It doubles the number

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

What effect does a binary shift right twice have on a number?

A

It halves the number and rounds down each time

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

Define a character set

A

A set of letters, symbols and digits that can be represented by a computer

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

2 major character sets in use today

A

ASCII and unicode

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

How does ASCII encode characters?

A

It encodes 128 characters into 7-bit binary code

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

What is extended ASCII and how many characters can it encode?

A

Extended ASCII is an 8-bit character code to allow for many more characters to be represented e.g. copyright symbol. 256 different characters can be encoded

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

How does unicode encode characters?

A

It encodes 65,536 characters into 16-bit codes

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

What are bitmap images made up of?

A

Pixels

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

Define pixel

A

The smallest identifiable area of an image

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

How can a pixel’s colour change?

A

By changing the binary value of the colour

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

Define 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
17
Q

What happens when you have more bits per pixel?

A

More colour combinations

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

Bit depth in comparison to colour combinations examples

A

1 bit = 2 colours
2 bits = 4 colours
3 bits = 8 colours
4 bits = 16 colours

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

Higher bit depth

A

Gives a greater range of colour and a better quality of image

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

How does the number of colours affect file size?

A

An increase in the number of colours that are used in an image (the bit depth) will increase the file size

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

How does the size of the image affect file size? (2 meanings)

A
  • An increase in the number of pixels in the image, will increase the file size
  • If an images physical size is increased by making each pixel larger then there is no change in the file size
22
Q

What does 0 and 1 correspond to?

A
0 = black
1 = white
23
Q

What three colours does each pixel have a proportion of?

A

Red, green, blue

24
Q

Why are colour values expressed as decimal RGB values and hex rather than binary?

A

RGB values and hex are easier for people to read, write and remember and reduce errors if copied

25
Formula for bitmap image file size (MB) in bits and in bytes
BITS: Width x height x colour depth BYTES: (Width x height x colour depth) / 8
26
Define metadata
Holds data about the image, such as colour depth, resolution, date created, author
27
What data type are analogue sound signals?
Continuous
28
What data type are digitial sound signals?
Discrete. This means the sound wave is sampled at regular intervals
29
How is sound digitised?
By repeatedly measuring and recording the sound wave
30
Why do sounds have to be converted into a digital form?
In order to be stored and processed by a computer
31
Define sound sample
A measurement of amplitude of a sound wave at a given time
32
How is sound sampled
Using a sample resolution (bit depth) and sampling rate
33
What does the sampling resolution determine?
How closely the wave is sampled on the y-axis
34
What is the sampling rate? What is it measured in?
The number of samples taken per second, measured in hertz (Hz)
35
Define sample resolution / bit depth
The number of bits used to record each measurement
36
What does more bits used per sample enable?
More bits used per sample enables the height of the wave to be more accurately measured, but this increases file size
37
1 Hz =
1 sample per second
38
Formula for calculating sound file sizes
File size (bits) = sampling rate x resolution x duration
39
What does recording quality mean (2)
- We sample the sound more frequently | - We record the wave height more accurately
40
Define lossy compression
Compression that removes sounds that we can't easily hear or that least affect the perceived playback quality.
41
What is lossy compression useful for?
Storing, downloading or streaming
42
Define lossless compression
Compression that is able to reduce the file size when compressed without losing any data
43
Examples of lossless music file formats
- FLAC - ALAC - WMA Lossless
44
Examples of lossy file formats
- MP3 | - AAC
45
Define compression
Algorithms which reduce the amount of bits required to represent data. This reduces the file size.
46
Define decompression
The process where compressed data is restored to its original format
47
What is the difference between lossy and lossless compression?
Lossy compression permanently loses some data, whereas lossless compression will not lose any of the original data
48
What is RLE
An algorithm that uses frequency/data pairs to encode each run length of the same coloured pixel
49
Advantages of using compression (3)
- Download times are reduced - Data allowances go further - Smaller files = fewer packets = faster transmittion time. This reduces traffic over the internet - Streaming is possible as the data can be sent as fast as the rate it is played at - Images inside web pages appear faster - Reduces space on disk / servers
50
When does buffering occur?
When the download speed is slower than the playback speed
51
Lossless file formats
PICTURES: PNG, GIF DOCUMENT: ZIP MUSIC: FLAC/ALAC
52
Lossy file formats
PICTURES: JPEG VIDEO: MP4 MUSIC: MP3