Intermediate Embedded Systems & IoT
Q79 / 100

Why might a developer use "circular buffers" (ring buffers) when handling streaming data from a UART or sensor in embedded systems?

Correct! Well done.

Incorrect.

The correct answer is A) A circular buffer provides a fixed-size, efficient way to store incoming data continuously, overwriting the oldest data when full, without needing dynamic memory allocation or shifting elements

A

Correct Answer

A circular buffer provides a fixed-size, efficient way to store incoming data continuously, overwriting the oldest data when full, without needing dynamic memory allocation or shifting elements

Explanation

Ring buffers use a fixed-size array with wrap-around indexing, making them ideal for buffering continuous data streams (like UART received bytes) in memory-constrained systems without the overhead of dynamic allocation.

Progress
79/100