Data Encoding + Representations Flashcards

1
Q

What is a bit?

A

Bit represents the state of a transistor, where each piece of information (0 or 1) is a bit

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

What is a byte?

A

A byte is made up of 8 bits
Where 256 values can be stored in a byte

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

Advantage of using hexadecimal over binary

A

A: Easier to read
R: 4 binary digits can be represented by 1 hexadecimal digit, thus long binary numbers can be represented with shorter strings which increases readability

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

What is ASCII encoding?

A

ASCII encoding encodes 128 different symbols (usually the more common symbols such as digits/lower and upper case characters)
ASCII uses 7 bits to represent each symbol.

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

What is unicode encoding?

A

Unicode can encode characters from
1. almost all langauges
2. math symbols
3. Emojis

Examples: UTF-8 is backward compatible with ASCII, thus any ascii string is also UTF-8 string

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

Advantage of using Unicode over ASCII

A

Feature: Able to encode more characters of different language
A: Webpages using unicode can display more languages, allowing for more flexible designs etc

Feature: UTF-8 is backward compatible with ASCII
A: minimal code changes when switching from ASCII to UTF-8

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

Advantage of using ASCII over unicode

A

Feature: ASCII only takes up 7bits to represent one character, which is way less than unicode
A: More efficient use of memory for simpler tasks (provided that context; does not require multi language/complex characters to be display)

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

How to write answer if asked to represent decimal as binary/hex?

A

(77)₁₀ = (01001101)₂ = (4D)₁₆

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

What is character encoding?

A

Character encoding refers to the set of values that define how information is stored in an electronic format

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