Skip to main content
⚡
← Courses
›
Senior Deep-Dives
›
Module 5 · Architecture & Code Review
›
Memory views and the buffer protocol
quiz
65 / 101
🇺🇸
EN
▼
↗
Share
💬 Discuss
🧪 Playground
+125 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Why use memoryview when slicing a large bytes object? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
Keep going
🧠
quiz
__slots__ deep dive
🧠
quiz
asyncio: event loop deep-dive
🧠
quiz
Typing: TypeVar, Generic, Protocol
🎯 Quiz
Question
📝 **Question:** Why use memoryview when slicing a large bytes object? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
It's required by sockets
B
Zero-copy slicing — the view points at the existing buffer; slicing it creates a new view with offset/length but no allocation, critical when handling large network frames or media buffers
C
It's threadsafe
D
Faster than tuples
Submit answer
📣 Help someone learn Python
Share this lesson with a friend — the first 15 are free, no signup.
📣 Share
Tweet
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…