COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

TYPES OF SOFTWARE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following calculations would cause overflow in a computer system that only uses an 8-bit register to store the calculation result?
A
122 + 47
B
200 + 122
C
150 + 106
D
84 + 69
Explanation: 

Detailed explanation-1: -In general, a data type overflow error is when the data type used to store data was not large enough to hold the data. Furthermore, some data types can only store numbers up to a certain size. An overflow error will be produced, for example, if a data type is a single byte and the data to be stored is greater than 256.

Detailed explanation-2: -Overflow occurs when there are insufficient bits in a binary number representation to portray the result of an arithmetic operation. Overflow occurs because computer arithmetic is not closed with respect to addition, subtraction, multiplication, or division.

Detailed explanation-3: -The effects of an overflow error can vary. It might make the program crash or it might just ignore the extra digit on the left and produce an unexpected result (in this case, 2 + 3 = 0!).

Detailed explanation-4: -Overflow occurs when the magnitude of a number exceeds the range allowed by the size of the bit field. The sum of two identically-signed numbers may very well exceed the range of the bit field of those two numbers, and so in this case overflow is a possibility.

There is 1 question to complete.