fundamentals of data representation Flashcards

1
Q

what is 0011 1010 in hexadecimal?

A

3A

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

what is 1101 0011 in decimal?

A

211

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

what is fd in decimal?

A

253

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

what is 4b in binary?

A

01001011

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

what is 20 in binary?

A

0001 0100

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

what does a binary shift to the left do?

A

n shifts to the left multiplies the number by 2^n

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

what does a binary shift to the right do?

A

n shifts to the left divides the number by 2^n

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

how many bits is needed to represent a character in ascii?

A

seven

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

what are the advantages to unicode over ascii?

A

unicode allows more characters so is better for languages with special characters or longer alphabets

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

file size ( bytes ) =

A

image size x colour depth / 8

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

what is a pixel?

A

a single point in an image

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

colour depth =

A

bits / pixel

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

what happens to the image if the colour depth is improved?

A

the size of the file will increase

the quality of the file will increase

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

what is a sample of sound?

A

a measure of amplitude at one point in time

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

how can the quality of sound improve?

A

increase the sample rate - number of samples per second ( Hz )
increase the sample resolution - number of bits per sample

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

size of sound sample =

A

sample rate x sample resolution x number of seconds

17
Q

why is compression useful?

A
  • reduces the amount of space needed to hold a file
  • reduces the time it takes to transport the file
  • allows large files to be sent over email
18
Q

why does huffman coding allow data to be stored in a smaller place than ascii?

A

because huffman encodes characters by how frequently they appear, so the characters that are most common require fewer bits to store
- whereas in ascii each character, no matter how common or uncommon needs seven bits

19
Q

what is 11110 01111 00100 11000 00111 in rle?

A

4 0 2 1 4 0 2 1 1 0 2 1 2 0 3 1 2 0 3 1