Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Stevens Institute Of Technology CS 550 Chapter 5 Representing Numerical Data 1)How do computers store all data and program instructions? As decimal numbers

Stevens Institute Of Technology CS 550 Chapter 5 Representing Numerical Data 1)How do computers store all data and program instructions? As decimal numbers

Computer Science

Stevens Institute Of Technology

CS 550

Chapter 5 Representing Numerical Data

1)How do computers store all data and program instructions?

    1. As decimal numbers.
    2. As ASCII characters
    3. As binary numbers.
    4. As algebraic equations.

 

  1. The binary numbers in a computer might represent

c) images.

b) numbers.

a) characters.

d) All of the above

 

  1. What numbers are generally manipulated as characters?
    1. Zip code.
    2. Telephone number.
    3. Grade point average.
    4. Both a and c.

 

  1. 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)
    1. constant.
    2. exponent.
    3. complement.
    4. real number.

 

  1. An 8-bit storage location can store any unsigned integer of value between 0 and
    1. 7
    2. 16

c) 255

d) 512

 

  1. What does BCD stand for?
    1. Binary-Coded Decimal
    2. Binary Calculating Device
    3. Binary Common Denominator
    4. Binary Character Data

 

  1. 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

 

  1. How many BCD digits can be stored in one byte?
    1. 1
    2. 2
    3. 7

d) 255

 

  1. What is the most common way to represent negative integers in binary form?
    1. As BCD
    2. Using 2's complement
    3. Using sign-and-magnitude
    4. None of the above

 

 

  1. If we complement the value twice, it will
  1. be twice as big.
  2. return to its original value.
  3. cause an overflow error.
  4. reset the carry flag.

 

  1. A combination of numbers that produces a result outside the available range is known as
  1. overload.
  2. overflow.
  3. spillover.
  4. wraparound.

 

  1. Changing every 0 to a 1 and every 1 to a 0 is also known as
  1. reversion.
  2. inversion.
  3. diversion.
  4. conversion.

 

  1. 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

 

  1. Using sign-and-magnitude representation, if the leftmost bit is 1 the number is
  1. positive.
  2. negative.
  3. an error.
  4. a character

 

  1. If both inputs to an addition have the same sign, and the output sign is different then
  1. the leftmost bit should wrap around.
  2. the leftmost bit should be disregarded.
  3. the range is insufficient to hold the result.
  4. you must take the complement of the result.

 

  1. Using sign-and-magnitude representation, storing the number -12 in 4 bits is a) 1100

b) 0011

c) 0100

d) impossible.

 

  1. In 1's and 2’s complement representations, a negative number begins with
  1. -1
  2. 0
  3. 1
  4. -0

 

  1. How do you find the 2's complement of positive numbers?
  1. Invert the numbers
  2. Invert the numbers and add one
  3. Invert the numbers and wrap around the leftmost bit
  4. Do nothing, the complement is the same as the original

 

  1. How do you find the 2's complement of negative numbers?
  1. Invert the numbers.
  2. Invert the numbers and add one.
  3. Invert the numbers and wrap around the leftmost bit.
  4. Do nothing, the complement is the same as the original.

 

  1. When adding two numbers using 2's complement, carries beyond the leftmost digit are
  1. inverted.

 

  1. ignored.
  2. shifted left.
  3. shifted right.

 

  1. What is the 8-bit 2’s complement representation for -35?

a) 11011101

b) 01011101

c) 11011100

d) 11011111

 

  1. To correct for carries and borrows that occur when large numbers must be separated into parts to perform additions and subtractions, we use
  1. a bit hold.
  2. a carry flag.
  3. an error flag.
  4. an overflow flag.

 

  1. What is the number 12.345 x 10 2 without using exponential notation? a) 0.12345

b) 123.45

c) 1234.5

d) 12345

 

  1. In excess-50 notation, an exponent can range from
  1. 0 to 50

b) -50 to 49

c) -49 to 50

d) -99 to 99

 

  1. In excess-50 notation, an exponent equaling 17 is stored as a) -37
  1. 17
  2. 67
  3. 87

 

  1. Shifting numbers left and increasing the exponent until leading zeros are eliminated is called
  1. conversion.
  2. factorization.
  3. normalization.
  4. excess notation.

 

  1. The leftmost bit in an IEEE standard floating point number represents
  1. the exponent.
  2. the mantissa.
  3. the sign of the mantissa.
  4. the sign of the exponent.

 

  1. The exponent of a floating point number is stored using
  1. excess N notation.
  2. one's complement.
  3. two's complement.
  4. binary coded decimal.

 

 

  1. In the IEEE 754 standard 32 bit single-precision floating point format, how many bits are allocated to the exponent?
  1. 1
  2. 2
  3. 7
  4. 8

 

29) In the IEEE 754 standard 32 bit single-precision floating point format, how many bits are allocated to the mantissa?

  1. 8
  2. 16
  3. 23
  4. 24

 

  1. With floating point numbers, to add and subtract require that
  1. the sign in each number be equal.
  2. the mantissa in each number be equal.
  3. the exponents in each number be equal.
  4. you convert to decimal to perform the operation.

 

  1. In the normalized IEEE 754 standard 32 bit single-precision floating point format, the leading bit of the mantissa is
  1. the sign bit.
  2. not stored.
  3. always a zero.
  4. used for larger exponents.

 

  1. In the IEEE 754 standard 32 bit single-precision floating point format the number "zero" is
  1. impossible to represent.
  2. treated as a special case.
  3. has a mantissa of all ones.
  4. has an exponent of all ones.

 

  1. The Department of Motor Vehicles is developing a software program that uses a variable to count the number of cars being sold each day. The maximum number of cars sold is expected to be several million over the life of the program and there are no fractional sales. What data type will you use for this variable?
  1. float 32-bit
  2. float 64-bit
  3. integer long 64-bit
  4. integer short 32-bit

 

  1. Calculations with floating point numbers
  1. are faster than integer calculations.
  2. are more precise than integer calculations.
  3. typically require less storage space than integers for the results.
  4. None of the above.

 

 

Discussion Questions

 

  1. Calculate largest positive integer that can be stored in 2 bytes using a) an unsigned integer

b) an integer using sign and magnitude, and c) an unsigned BCD number.

 

 

  1. How does overflow occur when using a fixed word size to represent integers?

 

 

  1. The 9’s complementary operation.
    1. Find the 9’s complementary representation for the three-digit number -351.
    2. Find the 9’s complementary representation for the four-digit number -351.

 

 

 

  1. The 9’s complementary representation.
    1. What is the sign-and-magnitude value of the three-digit number represented in 9’s complement by 461?
    2. What is the sign-and-magnitude value of the three-digit number represented in 9’s complement by 747?

 

  1. Two's complement

 

    1. Find the 2’s complementary representation in 8-bits of the number -51.

 

    1. Find the 2’s complementary representation in 16-bits of the number -331.

 

 

  1. Two's complement.

 

    1. What is the decimal sign-and-magnitude value of the 8-bit number represented in 2's complement by 11010011?

 

    1. What is the decimal sign-and-magnitude value of the 8-bit number represented in 2's complement by 01000011?

 

 

 

 

 

 

 

  1. The exponent for a given number is negative 25. What value is stored to represent the exponent in excess-50 notation?

 

 

  1. What purpose is served by "normalizing" the mantissa? That is—given the extra work— what is gained?

 

 

 

In problems 9-13 use the floating point format SEEMMMMM, where S = 0 is "+" and 5 is "-"; EE is the exponent in excess- 50, and MMMMM are five digits of mantissa.

 

  1. Show how 12.25 is represented in SEEMMMMM format.

 

  1. Show how -0.00012325 is represented in SEEMMMMM format.

 

 

  1. Convert 55698799 in SEEMMMMM to a decimal integer without exponents.

 

.

 

  1. Add the two numbers 04933460 and 04877456 (in SEEMMMMM format.) Represent your answer in decimal form without using exponents.

 

 

 

  1. Multiply the two numbers 05312675 and 05144359 (in SEEMMMMM format.) Leave the answer in SEEMMMMM rounding if necessary.

 

 

 

  1. What are the trade-offs between integer and floating calculations?

 

 

  1. Suppose you are writing a program that needs to represent a maximum 50,000 whole things (i.e. integer data type). What would be better: to use a short integer (16 bits) or long integer (64 bits)? Why?

 

 

 

 

 

 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE