高階ICT-DATA-015

An 8-bit unsigned integer stores whole numbers from 0 to 255. Which sum cannot be stored in that format?

A. 200 + 50
B. 100 + 100
C. 15 + 1
D. 250 + 10✓ 答案

解說

250 + 10 = 260, which is above 255, so it overflows an 8-bit unsigned integer. The other three sums are 250, 200 and 16, all inside the range.

「數據表示」全部 16 題 · 資訊及通訊科技 MCQ 題庫