File Formats Flashcards

1
Q

What is ASCII?

A

American Standard Code for Information Interchange

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

How does ASCII work?

A

It uses 7 bits to store 128 different characters

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

What characters does ASCII store?

A

letters, numbers, symbols (“alphanumeric”) and special commands

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

What is a character set?

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
5
Q

How many characters can extended ASCII store?

A

256

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

What is the use of Unicode?

A

It has over 1 million possible characters, so it allows the use of different languages and emojis

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

What is a bitmap image?

A

It is an image made up of small parts called pixels that are each assigned a colour eg JPEG, Gif

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

What is a vector image?

A

It is an image made up of lines and shapes. Each shape/line has properties like line thickness/colour. Often used on webpages and graphics

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

What are the main differences between a vector and bitmap image?

A

A vector image is scalable. You can zoom in on a vector image without losing resolution, but in a bitmap image, the pixels are enlarged when you zoom in

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

What is colour depth?

A

Each colour value of an image is stored as a binary number. The greater the number of bits allocated to store that number, the more colours to choose from e.g. if you have 5 bits you have 32 different colours

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

What are pixels?

A

A picture element - the smallest point in an image

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

What is resolution?

A

Resolution is a measure of pixel density, measured in dots per inch (dpi) - eg a resolution of 72 dpi has 5184 pixels per square inch

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

What are the dimensions of an image?

A

Dimension of an image is the number of pixels wide by height. We call this the size of an image

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

Formula for size in bits?

A

Size in bits = width x height x colour depth. Divide by 8 to get size in bytes

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

What is an audio sample?

A

An audio sample is a measure of amplitude at a point in time

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

What is the sample rate?

A

The number of samples taken in a second, measured in Hertz

17
Q

What is sample resolution?

A

Bit depth - The number of bits available for each sample. The higher the resolution, the higher the quality of the audio. A sample resolution of 16 has 2^16 = 65,536 possible values

18
Q

How to calculate the size of sound files?

A

Sample rate x sample resolution x seconds

19
Q

What is compression?

A

It is the method computers use to make file sizes smaller by reducing the number of bits used to store the information

20
Q

Why do we compress files?

A

Storage space is very valuable on a computer. Reducing file size allows data to be transferred more quickly over the internet. It allows faster download and upload times. It allows faster streaming eg JPEG MP3

21
Q

How does lossless compression work?

A

It compresses files by finding repeated patterns in the data and creating a data dictionary. It can be restored to the original. No quality is lost. Eg ZIP PNG

22
Q

How does lossy compression work?

A

It compresses files by removing redundant data. Cannot be restored to the original. Some quality may be lost, but usually parts you can’t see or hear

23
Q

How does lossy work on images?

A

It compresses by reducing colour depth, running a compression algorithm that will reduce colour ranges or brightness to a level that will not change the viewers perception of the image

24
Q

How does lossy work on sound?

A

It is compressed by reducing the bit depth of the samples, removing sounds too high, low or quiet for human hearing. Also, if two sounds are played at once, the quieter one is removed, converting a WAV to MP3 file. This gives about a 90% reduction

25
What is Huffman Coding?
Huffman coding is a form of lossless compression. It assigns a number of bits to each according to its frequency within the text. It is mathematically the most efficient form of compression by character, but inefficient for small pieces of data
26
What is RLE?
Run Length Encoding - it is a lossless compression that looks for consecutive runs of the same data. It is useful when there are small number of values repeated, but in more complex files it can increase the file size
27
How do you do RLE?
Value followed by frequency eg B13, W11. It can be done with binary eg (0 2), (1 1), (0 3), (1 3) would 001000111. This would also look like 0100 0011 0110 0111.