Unit 1: Data Representation Flashcards

1
Q

Convert 2A from hex to denary

A

16x2+10=42

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

How do you perform two’s complement in binary?

A

Reverse all 1s and 0s and then add 1.

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

Convert denary 14 to hexadecimal.

A

The scale is 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F, etc.

So therefore the answer is E

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

What is A32F in binary?

A

Each hex digit is used for one nibble (four bits)

Therefore A32F = 1010 0011 0010 1111

What is hex F27B in binary?

What is hex ABCD in binary?

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

What is hex F27B in binary?

A

1111 0010 0111 1011

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

What are the advantages of Hex?

A

It is easier for humans to understand as it is a shorter
representation of the binary

Hex values are also easier to remember and enter

People are less likely to make an error with fewer digits

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

What is an overflow error?

A

When the result of an addition is too large for the
number of bits the computer works with, there will be an overflow error

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

What is the effect of a binary shift to the right?

A

Division

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

What is the effect of a binary shift to the left?

A

Multiplication

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

What is sample rate in audio files?

A

Number taken of samples per second(measured in hz)

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

What is sample resolution?

A

The number of bits (audio bit depth) used to record
each sample

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

How do you calculate file size of audio files?(in bits)

A

File size (bits) = sample rate × resolution × duration

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

What is image resolution?

A

Image resolution is the number of pixels in the image

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

How do you increase the number of colours in an image?

A

More bits per pixel =
more colour combinations

1 bit = 2 Colours

2 bits = 4 Colours

3 bits = 8 Colours

4 bits = 16 Colours

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

Bit depth: How many bits per pixel
required for 256 colours?

A

2^8=256
8 bits per pixel

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

How do you calculate the file size of an image?

A

image width x image height x colour depth (in bits)

17
Q

Describe the effect of reducing the resolution and colour depth of an image.

A

The file size would be reduced since the there is less data therefore the file would be more compact. The colours would lose their detail and the quality would deteriorate, the same would go for the resolution since you are lowering the amount of pixels in the file.

18
Q

What is compression?

A

Compression is reducing the the size of a file so that it takes up less space on secondary storage.

19
Q

What is the difference between lossy and lossless compression?

A

Lossy compression permanently loses some data while lossless compression does not lose any data

20
Q

What is Run Length Encoding?

A

Run-length encoding (RLE) is a form of data compression that condenses identical elements into a single value with a count

21
Q

Use RLE to shorten this piece of code assuming 1=white and 0 =black

1111000000000000

A

Using RLE, the row could be represented as 4 ‘1’s
and 12 ‘0’s or 4 1 12 0

22
Q

Describe 2 advantages of compression

A

Smaller files = fewer packets = faster transmission time

Quicker to complete transmission

Reduces traffic over the Internet

Reduces download times of video, sound (including
speech used for VOIP systems) and image files

Streaming is also possible as the data can be sent as fast as the
rate it is played

Images inside web pages appear faster

Reduces space on disk / servers