2.2 Data Representation (B03) Flashcards

1
Q

ASCII

A
  • A standard
  • For representing text/characters
  • Allows data to be interchangeable between computers (from
    different manufacturers)
  • Each character is mapped to a unique number/binary
    equivalent
  • ASCII (encoding) uses 7/8 bits
  • There are 128 unique characters
    (allow 256 for 128)
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

19
Q

analogue signal

A

varies continuously in both amplitude and frequency and the signal can take one of many different values

20
Q

wavelength, amplitude, frequency

21
Q

how to convert analogue to digital

A

SAMPLING = measuring the amplitude of the wave at regular intervals

stored as binary data

22
Q

sampling interval

A

amount of time between samples, measured in seconds

23
Q

what does x axis mean for digital sound waves

A

The 𝑥-axis represents time, but the numbers on the 𝑥-axis refers to the number of samples so far

24
Q

sample rate

A

No. of samples per second (measured in HERTZ or Hz)

25
Q

bit depth (sound waves)

A

The height (amplitude) of each sample is stored using a fixed number of bits (0s or 1s), known as the bit depth.
With more bits available, the amplitude can be recorded more accurately.

26
Q

digital sound - good or bad? (mainly good)

A

A complete wave cannot be recorded, so a digital recording can never be as accurate or have the same fidelity as an analogue recording, but it does have other benefits such as:
Equipment to record and process digital sound is relatively cheap and has allowed people to record music at home.
It is easily edited using computer equipment.
It is easily copied.
Unlike vinyl and tape, digital files do not physically deteriorate with use, although they may become corrupted if the storage medium is damaged.
Digital files are more portable than records and tapes and can be copied to any digital medium, such as a hard drive, emailed, downloaded and streamed.

27
Q

file size (sound)

A

file size in bits = sample rate * bit depth * duration (in seconds) * number of channels

28
Q

exam question!

29
Q

exam question!

A

Effect on colour depth (1)
* More colours can be represented (with 24 bits)
Effect on accuracy of representation (1)
* So the image looks more realistic
Effect on transmission speed/storage/memory (1)
* But takes longer to transmit / creates larger file sizes / uses more
memory