Section 4: Character Encoding Flashcards

1
Q

Q: What are ASCII and Unicode?

A

A: Standards for encoding characters into binary. ASCII uses 1 byte per character, while Unicode (e.g., UTF-8) supports multiple bytes.

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

Q: How is a null-terminated string stored in memory?

A

A: Characters are stored sequentially, followed by a null byte (00) to indicate the end of the string.

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