All mock tests are FREE till 31 December — register to save your progress
Unit 3 · Programming Languages and Computer Graphics Paper 2 CS · June 2024 (Cancelled Exam)

The least values of signed and unsigned 8-bit data-type variables would be:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. −128, 0

Explanation

8-bit signed (two's complement) ranges from −128 to 127, and unsigned from 0 to 255. The least values are −128 and 0.

More Programming Languages and Computer Graphics questions