CHAPTER 5: Representing Numerical Data Flashcards
How do computers store all data and program instructions?
a) As decimal numbers.
b) As ASCII characters
c) As binary numbers.
d) As algebraic equations.
c) As binary numbers.
The binary numbers in a computer might represent
a) images.
b) numbers.
c) characters.
d) All of the above
d) All of the above
What numbers are generally manipulated as characters?
a) Zip code.
b) Telephone number.
c) Grade point average.
d) Both a and c.
d) Both a and c.
When the number to be expressed is outside of the integer range of the computer (too large or too small), or when the number contains a fractional part it must be stored as a(n)
a) constant.
b) exponent.
c) complement.
d) real number.
d) real number.
An 8-bit storage location can store any unsigned integer of value between 0 and
a) 7
b) 16
c) 255
d) 512
c) 255
What does BCD stand for?
a) Binary-Coded Decimal
b) Binary Calculating Device
c) Binary Common Denominator
d) Binary Character Data
a) Binary-Coded Decimal
What is the range of a 1 byte number stored in BCD format?
a) 0-9
b) 0-99
c) 0-999
d) 0-9999
b) 0-99
How many BCD digits can be stored in one byte?
a) 1
b) 2
c) 7
d) 255
b) 2
What is the most common way to represent negative integers in binary form?
a) As BCD
b) Using 2’s complement
c) Using sign-and-magnitude
d) None of the above
b) Using 2’s complement
If we complement the value twice, it will
a) be twice as big.
b) return to its original value.
c) cause an overflow error.
d) reset the carry flag.
b) return to its original value.
A combination of numbers that produces a result outside the available range is known as
a) overload.
b) overflow.
c) spillover.
d) wraparound.
b) overflow.
Changing every 0 to a 1 and every 1 to a 0 is also known as
a) reversion.
b) inversion.
c) diversion.
d) conversion.
b) inversion.
Using sign-and-magnitude representation, the largest positive number that can be stored in 8 bits is
a) 7
b) 127
c) 255
d) 512
b) 127
Using sign-and-magnitude representation, if the leftmost bit is 1 the number is
a) positive.
b) negative.
c) an error.
d) a character
b) negative.
If both inputs to an addition have the same sign, and the output sign is different then
a) the leftmost bit should wrap around.
b) the leftmost bit should be disregarded.
c) the range is insufficient to hold the result.
d) you must take the complement of the result.
c) the range is insufficient to hold the result.