Question

In: Computer Science

QUESTION 20 Floating-point instruction names begin with the letter F to distinguish them from CPU instructions....

QUESTION 20

  1. Floating-point instruction names begin with the letter F to distinguish them from CPU instructions.

    True

    False

1 points   

QUESTION 21

  1. Which of the following exception conditions are recognized and detected by the floating point unit (FPU)?

    a.

    Inexact precision

    b.

    Divide by zero

    c.

    Numeric overflow

    d.

    Numeric underflow

1 points   

QUESTION 22

  1. How many operands can a floating-point instruction have?

    a.

    Can have zero operands.

    b.

    Can have two operands.

    c.

    Can have one immediate operand.

    d.

    Must have at least one operand.

1 points   

QUESTION 23

  1. What effect does initializing the floating point unit (FPU) have on the contents of the FPU control word.

    a.

    All floating-point exceptions are masked.

    b.

    Nothing, the FPU control word is not changed at initialization.

    c.

    Calculation precision is set to 80 bits.

    d.

    Rounding is set to nearest even.

1 points   

QUESTION 24

  1. How are unsigned comparisons performed by the floating point unit (FPU)?

    a.

    Integer subtraction is used.

    b.

    A default value is used for the sign.

    c.

    Never, floating-point values are implicitly signed.

    d.

    Twos-complement is used in the comparison.

1 points   

QUESTION 25

  1. Which of the following statements accurately describes floating point comparisons?

    a.

    They incur more runtime overhead than integer comparisons.

    b.

    The extreme accuracy of floating-point numbers makes comparing for equality much easier.

    c.

    Conditional jumps using the contents of the EFLAGS register are immediately available after a comparison.

    d.

    They incur less runtime overhead than integer comparisons.

1 points   

QUESTION 26

  1. What happens by default when you divide a floating-point number by zero?

    a.

    An exception is thrown and execution is transferred to the operating system.

    b.

    A default value is assigned to the result and execution continues.

    c.

    A default value is assigned to the result and en exception is thrown.

    d.

    The processor tries to execute an appropriate exception handler.

1 points   

QUESTION 27

  1. Which of the following statements are true regarding the x86 machine instruction format?

    a.

    The opcode overrides the deafult operand size.

    b.

    A prefix byte is never optional.

    c.

    An opcode is never optional.

    d.

    Memory displacement bytes are optional.

1 points   

QUESTION 28

  1. Use the following code snippet to identify the contents of ST(1) after execution has completed:
         .data
         dblOne    REAL8 123.45
         dblTwo    REAL8 3.1415
         dblThree REAL8 234.56
         dblFour   REAL8 101.01
         .code
         fld dblTwo
         fld dblFour
         fld dblOne
         fld dblThree

    a.

    3.1415

    b.

    101.01

    c.

    123.45

    d.

    234.56

1 points   

QUESTION 29

  1. Which of the following are fields in the FPU control word?

    a.

    Denormal operand exception mask

    b.

    Overflow exception mask

    c.

    Infinity control

    d.

    Rounding control

1 points   

QUESTION 30

  1. Which of the following statements accurately describes the exponent portion of a single precision floating-point number that uses the IEEE format?

    a.

    Stored as an 8-bit signed integer.

    b.

    Values range from -126 to +127.

    c.

    Stored as an 8-bit unsigned integer.

    d.

    Stored with a positive bias of 127.

Solutions

Expert Solution

QUESTION 20

  1. Floating-point instruction names begin with the letter F to distinguish them from CPU instructions.

    True

    False

Answer:----- True

QUESTION 21

  1. Which of the following exception conditions are recognized and detected by the floating point unit (FPU)?

    a.

    Inexact precision

    b.

    Divide by zero

    c.

    Numeric overflow

    d.

    Numeric underflow

Answer:----- All of the above

QUESTION 22

  1. How many operands can a floating-point instruction have?

    a.

    Can have zero operands.

    b.

    Can have two operands.

    c.

    Can have one immediate operand.

    d.

    Must have at least one operand.

Answer:----- d. Must have at least one operand.

QUESTION 23

  1. What effect does initializing the floating point unit (FPU) have on the contents of the FPU control word.

    a.

    All floating-point exceptions are masked.

    b.

    Nothing, the FPU control word is not changed at initialization.

    c.

    Calculation precision is set to 80 bits.

    d.

    Rounding is set to nearest even.

Answer:---- a. All floating-point exceptions are masked.

QUESTION 24

  1. How are unsigned comparisons performed by the floating point unit (FPU)?

    a.

    Integer subtraction is used.

    b.

    A default value is used for the sign.

    c.

    Never, floating-point values are implicitly signed.

    d.

    Twos-complement is used in the comparison.

Answer:-- d. Twos-complement is used in the comparison.

QUESTION 25

  1. Which of the following statements accurately describes floating point comparisons?

    a.

    They incur more runtime overhead than integer comparisons.

    b.

    The extreme accuracy of floating-point numbers makes comparing for equality much easier.

    c.

    Conditional jumps using the contents of the EFLAGS register are immediately available after a comparison.

    d.

    They incur less runtime overhead than integer comparisons.

Answer:----- c. Conditional jumps using the contents of the EFLAGS register are immediately available after a comparison.

QUESTION 26

  1. What happens by default when you divide a floating-point number by zero?

    a.

    An exception is thrown and execution is transferred to the operating system.

    b.

    A default value is assigned to the result and execution continues.

    c.

    A default value is assigned to the result and en exception is thrown.

    d.

    The processor tries to execute an appropriate exception handler.

Answer:-------  An exception is thrown and execution is transferred to the operating system.

QUESTION 27

  1. Which of the following statements are true regarding the x86 machine instruction format?

    a.

    The opcode overrides the deafult operand size.

    b.

    A prefix byte is never optional.

    c.

    An opcode is never optional.

    d.

    Memory displacement bytes are optional.

Answer:------ d. Memory displacement bytes are optional.

QUESTION 28

  1. Use the following code snippet to identify the contents of ST(1) after execution has completed:
         .data
         dblOne    REAL8 123.45
         dblTwo    REAL8 3.1415
         dblThree REAL8 234.56
         dblFour   REAL8 101.01
         .code
         fld dblTwo
         fld dblFour
         fld dblOne
         fld dblThree

    a.

    3.1415

    b.

    101.01

    c.

    123.45

    d.

    234.56

Answer:------ a.  3.1415

QUESTION 29

  1. Which of the following are fields in the FPU control word?

    a.

    Denormal operand exception mask

    b.

    Overflow exception mask

    c.

    Infinity control

    d.

    Rounding control

Answer:-----
Denormal operand exception mask, Overflow exception mask, Infinity control, Rounding control

QUESTION 30

  1. Which of the following statements accurately describes the exponent portion of a single precision floating-point number that uses the IEEE format?

    a.

    Stored as an 8-bit signed integer.

    b.

    Values range from -126 to +127.

    c.

    Stored as an 8-bit unsigned integer.

    d.

    Stored with a positive bias of 127.

Answer:-------- d. Stored with a positive bias of 127.


Related Solutions

Question 18 (1 point) Which of the following items is excluded from an engagement letter? Question...
Question 18 (1 point) Which of the following items is excluded from an engagement letter? Question 18 options: Audit scope and objective Auditor and management responsibilities Inherent audit limitations Type of opinion to be expressed Question 19 (1 point) In which step of the audit do auditors conduct tests of controls? Question 19 options: Assess the risk of misstatement Form an opinion Obtain an understanding of the client Perform further audit procedures Question 20 (1 point) How long do auditors...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT