Data Representation Flashcards

1
Q

The difference between analog and digital data? (3 marks)

A
  • Analog is continuous while digital is discrete
  • Analog can be represented physically while digital data can only represented in 0, 1
  • Digital data can only represent a certain amount of values while analog can represent any values within a range
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Why is binary used? (2 marks)

A
  • Because computer is made of transistors and circuit
  • So turning on and off to represent 1 & 0 is the simplest way to output data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Difference between binary, denary and hexadecimal ( 1 mark)

A
  • Binary: base 2
  • Denary: base 10
  • Hexadecimal: base 16
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain hexadecimal number base (3 mark)

A
  • It is written in groups of 4 digits
  • From 1->9, hexadecimal base is similar to denary
  • From 10-> 15, it will start from A-> F
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Addition binary rules (4 marks)

A

0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1

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

What is MSB (Most significant bit) and LSB (Least Significant Bit)

A
  • MSB is on the left as it contains larger numbers
  • LSB is on the right as it contains smaller numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is sample rate and sample resolution?

A
  • Sample rate is how often the amplitude is recorded in 1 sec
  • Sample resolution is the number of bits a sample can record
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to caculate sample size?

A

Sample rate * Sample resolution * duration

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

How to calculate bitmap size?

A

Height pixel * Width pixel * color depth

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

How to calculate color depth?

A
  • First, we need to count up the amount of different numbers ( Ex: 8 color)
  • Then, we should know that 1 bit can carry 2 numbers (0,1)
    => 3 bits can carry 8 numbers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

1 byte = ? bits
1 kB = ? bits

A
  • 8 bits
  • 8192 bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Definition of lossy and lossless

A
  • Lossy is permanently deleting data to reduce the file size
  • Lossless is using an algorithm to recognize patterns of the file in which it will then re-construct the file with smaller file size.
    -RLE ( run-length encoding): is an example for the algorithm that is lossless. It minimizes the data by recording how many times it is repeated and represents it with a shorter code/text.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Compare and contrast lossy and lossless? ( 3 marks)

A

Compare:
- Lossy and lossless are both methods to reduce file size

Contrast:
- Lossy will permanently delete the data while we can recover the original files using lossless.
- Lossy can’t be used with text while lossless can used with every type of data ( Sound, Image, Text)

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

MP4 is lossy or lossless?

A

Lossy

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

PNG is lossy or lossless?

A

Lossless

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

Name 2 examples of lossy and lossless file? (2 marks)

A

Lossy: MP4 , MP3, JPEG

Lossless: PNG, PDF, ZIP

16
Q

What is ADC and DAC?

A

Analogue Digtal Converter
Digital Analogue Converter

17
Q

Zip is lossy or lossless?

A

Lossless

17
Q

JPEG is lossy or lossless?

A

Lossy

18
Q

Conver 117 to -117 in binary

A

1000 1011

19
Q

Difference between ASCII and Unicode ( 2 marks)

A

Unicode can include more languages /emojis
ASCII has limited languages/fewer languages

ASCII needs 7/ 8 bits for character’s representation
Unicode needs 16/32 bits for character’s representation