Using Encoded Data in Python 3 :Using Databases with Python (Python for Everybody Specialization) Answers 2025
Question 1
What is the most common Unicode encoding when moving data between systems?
✅ UTF-8
❌ UTF-16
❌ UTF-128
❌ UTF-64
❌ UTF-32
Explanation:
UTF-8 is the standard encoding for data transmission on the internet — compact, backward-compatible with ASCII, and universally supported.
Question 2
What is the ASCII character that is associated with the decimal value 42?
✅ *
❌ Newline
❌ w
❌ 0
❌ W
Explanation:
In the ASCII table, decimal 42 corresponds to the asterisk symbol (*).
Question 3
What word does the following sequence of numbers represent in ASCII:
108, 105, 115, 116
✅ list
❌ webs
❌ dict
❌ mist
❌ first
Explanation:
108 → l, 105 → i, 115 → s, 116 → t → together spell “list”.
Question 4
How are strings stored internally in Python 3?
✅ Unicode
❌ bubble memory
❌ EBCDIC
❌ UTF-16
❌ inverted
Explanation:
All strings in Python 3 are stored as Unicode objects, supporting all languages and characters.
Question 5
When reading data across the network (i.e. from a URL) in Python 3, what method must be used to convert it to the internal format used by strings?
✅ decode()
❌ split()
❌ encode()
❌ rstrip()
❌ internal()
Explanation:
Network data is received as bytes. The .decode() method converts it into a Unicode string suitable for processing in Python.
🧾 Summary Table
| # | ✅ Correct Answer | Key Concept |
|---|---|---|
| 1 | UTF-8 | Standard Unicode encoding for data exchange |
| 2 | * | ASCII decimal 42 |
| 3 | list | ASCII decoding |
| 4 | Unicode | Python 3 internal string storage |
| 5 | decode() | Convert bytes → string |