Home »
MCQs »
Python MCQs
bytes, bytearray, memoryview are type of the ___ data type
7. bytes, bytearray, memoryview are type of the ___ data type.
- Mapping Type
- Boolean Type
- Binary Types
- None of the mentioned above
Answer: C) Binary Types
Explanation:
The Binary type's data type is represented by the bytes, byte array, and memory view types. Binary data manipulation is accomplished through the use of bytes and byte array. The memory view makes use of the buffer protocol in order to access the memory of other binary objects without the need to make a copy of the data. Bytes objects are immutable sequences of single bytes that can only be changed. When working with ASCII compatible data, we should only use them when necessary.