Representation of Data in a Computer system Flashcards

1
Q

What is a bit, nibble, byte, kilobyte, megabyte, gigabyte and terabyte?

A

a bit is a single digit in binary (0, 1), 4 bits, 8 bits, 1024 bytes, 1024 kilobytes, 1024 megabytes, 1024 gigabytes
You can say 1000 instead of 1024

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

Why does data need to be converted to binary to be processed by a computer?

A

So the computer can understand what is being inputted in its own language as binary represent two states in a circuit (on/off)

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

How do you convert denary into binary?

A

8 bit binary goes 128, 64, 32, 16, 8, 4, 2, 1 add them up to get denary

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

How do you add binary?

A
1 + 1 = 10 write zero carry 1
1 + 1 + 1 write 1 carry 1
0 + 1 = 1
0 + 0 = 0
Or convert to denary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an overflow error?

A

When a computer has only a certain number of bits to store a value and the result of addition needs and extra bit

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

How do you convert denary into hexadecimal?

A

you divide by 16 and get the remainder for the second digit
then you divide again by 16 and get the remainder for the first digit
197 = C5

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

How do you convery binary into hexadecimal?

A

split 8-bit binary into two four bits and represent the four bits in hexadecimal

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

Why is hexadecimal used to represent binary numbers?

A

It is much easier to write, remember and communicate with

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

How are binary codes used to represent characters?

A

relates a binary number with a character in a character set

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

What is a character set?

A

The list of codes and matching characters

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

What is the relation between the number of bits per character in a character set and the number of characters which can be represented?

A

The more bits per character the more numbers in a character set

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

What is the ASCII character set?

A

It uses 7 bits so can provide 128 characters

Only uses the English alphabet

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

What is the Unicode character set?

A

It uses 16 bits so can provide over 60,000 possibilities or 32 bit
It is universally applicable with many characters

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

How are images represented?

A

as a series of pixels represented by binary

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

What is the need for metadata to be included in a file?

A

metadeta shows the height, width, colour depth

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

What is the effect of colour depth and resolution on the size of the image?

A

The colour depth is the number of bits per pixel

The resolution is the number of pixels

17
Q

How can sound be sampled and stored in a digital form?

A

Convert analogue waveform into a numerical representaion, the device is called Analogue-to-Digital converter (ADC)
It measures the amplitude of the waves at regular intervals (sampling) and stores the values as a series of binary numebers

18
Q

How does sample intervals and others considerations affect file size and quality of playback?

A

The smaller the sample interval the higher the sample rate (samples per unit of time)
This means that the file size is bigger but the quality is better as there is a better match between the original and sampled sound
Also sample resolution is the number of bits stored per sample

19
Q

How are instructions coded in bit patterns?

A
There is an op-code and number bit (operator) and the operand
0110 1101 (011 is the op-code, 0 is the number bit, 1101 is the operand)
20
Q

How does the computer distinguish between instructions and data?

A

The op-code codes for instructions, operand for data

21
Q

What is the op-code, number bit and operand?

A

The op-code stores the instruction
The number bit says whether it is a value or an address
The operand is data or an address