4. Representing Data Flashcards

1
Q

How do you convert from denary to binary?

A

Keep subtracting number by biggest base 2 that goes into it. Base 2’s that go in are 1’s in binary column.
Eg. 12 - 8 = 4
4-4 = 0
1’s in 8 and 4 column

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

How do you add binary?

A
1+1 = 10 (carry the 1)
0+1 = 1
0+0 = 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is it called when result of addition exceeds available space?

A

Overflow

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

Why is hexadecimal used?

What does it look like

A

Represents 16 values instead of 2 of binary, so easier to remember for programmers
0-9 and then A to F

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

How do you convert between hexadecimal and denary?

A

Put each digit in base 16 columns
Multiply digit by the base 16
Eg. 27 = 216 + 71

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

How do you convert denary to hexadecimal?

A

Keep dividing by 16 and record remainders
Eg. 45/16 = 2 remainder 13
2/16 = 0 remainder 2
=2D (last to first)

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

How do you convert from binary to hexadecimal?

A

Split split into nibbles

Value of each nibble is one digit of hexadecimal

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

How do you convert from hexadecimal to binary?

A

Replace each hex digit with binary nibble

Work out denary then binary

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

What is difference between ASCII and Unicode character set?

A

ASCII 7 bit (128 characters) or extended 8 bit (252 char)
Unicode 16 bit (65 000 char) or 32 (4 billion)
Unicode can include specialist symbols and multiple languages, keep 128 characters of ASCII so ASCII is subset of Unicode

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

What is a character set?

A

List of codes that match characters

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

What happens if you sort the list ‘Gorilla’, ‘bear’, ‘Elephant’, ‘Cat’ and ‘dog’ in a program using ASCII (or Unicode) as character set?

A
Cat
Elephant
Gorilla
bear
dog
(as A first and z last)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is metadata?

A

Data about the data eg. Of image

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

How many colours can 1-16 bits represent

A
1 bit- two (2^1)
2 bits- four(2^2)
4 bits- sixteen (2^4)etc.
8 bits- 256
16 bits- 65 536
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the colour depth? Units?

Names?

A

Number of bits in a pixel (bpp)
16 bpp = high colour
24 bpp = true colour
32 bpp = deep colour

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

What is the resolution? Units?

A

Number of pixels in a unit (dpi)

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

What does sound metadata store?

A

Audio codec and sample rate

17
Q

How is sound interpreted by computer?

A

Sound analogue, digitally sampled by computer at the sample rate

18
Q

What happens when sample rate is low?

A

Few samples taken
Poor match between original sound and sampled sound
Small file size required

19
Q

What is the bit rate (for sound)

What does higher bit rate mean

A

Amount of space used for each sample
Higher bit rate:
More accurate sampling, better quality
More data, larger file size

20
Q

What is the bit rate for MP3 and CD?

A

128 Kbits/s

1411.2 Kbits/s

21
Q

What is instruction made up of?

A

Operator- instruction/function

Operand- data

22
Q

How does computer tell between operator and Operand?

A

They are fetched at different times in fetch execute cycle

23
Q

What is accumulator?

A

Special register in CPU, stores results of calculations

24
Q

What is the order of bits/bytes etc.

A
4 bits - 1 nibble
8 bits- 1 byte
1024 bytes - 1 kilobyte
1024 kilobytes - 1 megabyte
1024 megabytes - 1 gigabyte
1024 gigabytes - 1 terabyte