Data representation Flashcards

1
Q

Character code:

A

A binary representation of a letter, character or number

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

ASCII

A

A standard binary coding system for characters and number.
First was 7 bits (128 permutations), now extended to 8 bits (256 characters).
BUT 256 not enough, doesn’t cover all languages or platforms. Due to the widespread use of the web, increasing need for this. HENCE UNICODE

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

Unicode:

A

A standard binary coding system that has superseded ASCII. It includes characters from over 20 countries.
16 bits, constantly updated as aims to cover every language and platform(HW and SW) and every program

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

Parity bit:

A

Method of checking binary codes by counting the number of 1s and 0s. Even = even num 1’s. Odd = odd num 1’s

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

Majority voting:

A

Produces same data several times and checks the same both time EG 101 - 111000111

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

Check digits

A

Digit added onto end to check data is accurate, used in bar code scanners
Worked out by:
- Adding up numbers, add up that answer to get one digit BUT if digits swapped around in transmission, still get same check digit
- Modulo - 11 each num given weighting (scaling factor), times by this, add together, mod 11, remainder is check digit. ( rem = 10 ,X and rem = 11, 0)

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

Why is hexadecimal preferred?

A

Useful to represent large numbers with as fewer digits as possible - 2 hex digits represent 1 byte.
USED —> identify memory addresses as less digits than binary representation

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

Number Systems

A

Natural N - (0,1,2,3)
Integer Z - (-3,-2,-1,0,2)
Rational Q - (-1/2, 2.5, 3)
Irrational - (Pi, root2, root3)
Real R - EVERYTHING
Ordinal - (1st, 2nd, 3rd) used with size of lists often eg 3rd out of 30
Counting + measurement
- Natural for counting (counter used to keep track how many times looped)
- Real for measurement (microwaves control - both time and temp measured)

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

Bit

A

A fundamental unit of info, either a 1 or 0

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

Why comps use binary?

A

Processor only handles electricity in a simple way, flowing or not. Hence 2 states 0 (off) and 1 (on)

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

How many different values can be represented with 5 bits?

A

2^5 = 32

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

KMGT

A

BINARY DECIMAL
Kibi - 2^10 bytes Kila - 10^3
Mebi - 2^20 bytes Mega - 10^6
Gibi - 2^30 bytes Giga - 10^9
Tebi - 2^40 bytes Teba - 10^12

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

Unsigned binary

A

Represent positive numbers

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

Signed binary

A

Represent positive and negative numbers

Two’s compliment

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

Max number in binary

A

2^(n)-1

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

Most significant bit for 8 bits?

A

2^(n-1) = 2^7 = 128

17
Q

Twos compliment - range for 8 bits?

A

2^(n-1) -1 = 2^(7) - 1 = -128 to 127

128 is 2^(n-1)

18
Q

Convert from bits to bytes

A

/ 8

19
Q

Bit - mapped graphic

A

Image made up of individual pixels, each mapped to 1 bit of memory

20
Q

Pixels

A

Individual picture elements each mapped to 1 bit of memory

21
Q

Resolution

A

Width * Height (or pixels per inch)

22
Q

Colour depth

A

Number of bits/ bytes allocated to representing the colour of a pixel in a bit-mapped graphic

23
Q

Storage of an image?

A

Resolution * colour depth

24
Q

Metadata

A

Data about data. Bitmaps store this of themselves eg width, colour depth

25
Q

Analogue signals

A

Data that is infinitely variable and often represented in the form of a wave

26
Q

Digital signals

A

Discrete discontinuous data. either on of off

27
Q

Analogue to Digital converter

A

A series of readings are taken at fixed intervals from the wave to create discrete discontinuous values.
The more samples taken, the better accuracy to be like original copy. BUT takes up a greater file size

28
Q

Synthesized sound

A

Sound produced digitally

29
Q

File size (bits) =

A

Sample rate (hz) * length of recording (secs) * sampling resolution (bits)

30
Q

ADC Example

A

EG MIDI uses event messages to control various properties of sound (encoded in binary and provide communication between a midi device and processor
Advans over digital audio
- Small files hence less memory, loads faster (especially when file a web page)
- Completely editable (individual instruments can be selected/ modified)
- Supports wide range of instruments
- Midi files produce v high quality reproduction of instrument

31
Q

DAC example

A
  • phones when playing music
  • modem which is a device embedded within broadband routers that changes (modulates) a digital signal into analogue so that it can be sent down a telephone wire.
    When it is received at the other end, another modem demodulates the signal, converting it back into digital form
32
Q

Data compression

A

Process of reducing number of bits require to represent data so take up less memory

33
Q

Lossless compression

A

No data is lost
Less storage
Uses run-lenght encoding
Uses dictionary based encoding

34
Q

Run - length encoding

A

Eliminates repeating data eg blue blue blue = 3B

PICS

35
Q

Dictionary based encoding

A

Common strings of data in a text file eg tion rather than rewriting encoded
TEXT

36
Q

Lossy Compression

A

Identifies data that can be removed by Run time encoding, higher frequency data is less noticeable hence removed.
AUDIO of VIDEO