Skip to content

Byte Ranges, Scaled Fields, and Overflow

Knowledge check · self-test

Byte Ranges, Scaled Fields, and Overflow

Check byte ranges, scaled type choices, and counters at their limits.

Back to the chapter →

Check byte ranges, scaled type choices, and counters at their limits.

Incremental Practice

Beginner

Convert 0x2A to decimal and to binary, and confirm all three notations describe the same quantity.

Intermediate

A counter must hold up to fifty thousand events before reset. Decide whether unsigned 16-bit is safe and justify the margin.

Advanced

A field stores a voltage from 0.00 to 3.30 volts in hundredths. Choose a width and signedness, and explain why a smaller type would fail.

Decode One Counter at Its Limit

Encode zero, the largest allowed value, the next value, and a known bit pattern in old and new versions. Keep notation, width, signedness, raw payload, firmware version, decoded value, and rejection or rollover result.

This test covers named boundaries, not every numeric format. The deeper sections connect binary, decimal, hexadecimal, width, range, and conversion checks.

Inspect Figure 3 in the chapter and ask which set bits contribute to the value 0xA6.

View Figure 3 in the chapter.

Back to Number Systems and Data Units: Decide What Happens at the Boundary