2.2 Data Representation (B03) Flashcards

1
Q

ASCII

A

American Standard Code for Information Interchange

  • based on 7-bit binary numbers (128 possible valkues)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

text file - and why are they good?

A

only contains character-by-character encoding of the text

They are cross-platform: a text file on Windows is the same text file on a Mac, on Linux etc.
Most operating systems come with basic tools to view and edit them (Notepad on Windows).

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

what 2 ASCII values do you need to know

A

A = 65
a = 97
32 GAP BETWEEN

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

extended ASCII (ex)

A

uses eight bits, giving a character set of 256 characters. This allows for special characters such as those with accents in languages such as French and Spanish.

still not enough for all of the worlds languages

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

unicode (ex)

A

Uuses between 8 and 32 bits per character, so it can represent characters from languages from all around the world.
It is commonly used across the internet.
larger than ASCII, it might take up more storage space when saving documents
Global companies, like Facebook and Google, could not operate with just the ASCII character set because their users communicate in many different languages.

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

character set

A

the defined list of characters recognised by an encoding system. So, for example, ASCII has a character set that contains 128 characters.

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

exam question!

A

i) Each character is assigned a unique character code
Each letter is converted to its character code (which is a binary number)

ii) 0100 0011 0100 0001 0100 0010.

iii) ASCII uses 8 bits…
…and so can only represent 255 / 256 distinct characters…
…many more characters are needed for coping with all languages (e.g. Unicode 16bits)
ASCII does contain characters used in some languages

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

problem with ASCII

A

uses 7-bits - 128 characters - not enough to represent all of the worlds languages

unicode (16 bits) generally used instead

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

pixel

A

smallest element of a bitmapped image

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

metadata

A

basically data about the data

contains (for bmp):
No. of columns in the image
No. of bits in the binary numbers used to store the colours (in this example on the right: 2).

(also creation date, mod. date etc)

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

resolution

A

number of pixels per inch when the image is displayed.
Higher resolution -> more pixels per inch

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

image size

A

the number of pixels (width × height) - different from physical size or file size

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

bit depth (colour depth)

A

number of bits for each colour

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

bit pattern

A

a unique string of binary digits used in a representation

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

calculating file size (for pictures)

A

File size = width × height × colour depth

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

exam question!

A

An image is made up of / consists of pixels
A pixel can be one colour
Each colour has a unique / corresponding binary number
Each pixel / square is given the binary number of its colour
The binary numbers are stored in order in the file
E.g. White = 000, Red = 010, Blue= 110, top line would be 000000010010010110110

17
Q

exam question!

A

To store data / information about the image / data
E.g. Dimensions / height / width / No. of bits per pixel / Colours used / location / date / file type

18
Q

exam question!

A

Answer: 2 from
Fewer bits are needed per colour
which means fewer bits per pixel
Any example from diagram