Exam-style question
Try this first
Explain what is meant by 'overflow' when working with a quantity of bits available to store a numerical value using an example. Your example should demonstrate how a specific numerical value would cause an overflow and the potential result. [6 marks].
Answer and explanation
Concise answer
Overflow occurs when the value of a calculation or data storage operation exceeds the maximum numerical range that can be represented by the specific number of bits allocated for that value.
Why this is correct
1 mark for explaining that overflow occurs when a value exceeds the maximum capacity of its allocated bits. 1 mark for stating that it happens when storing or calculating. 1 mark for explaining the range of a 4-bit unsigned integer (0-15) and its maximum value. 1 mark for identifying that attempting to store 16 would cause an overflow. 1 mark for explaining what happens to the bit representation (truncation of MSB).
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
