题目详情

计算机在进行浮点数的相加(减)运算前需先进行对阶操作,若x的阶码大于y的阶码,则应将( )。

  • A.x的阶码缩小至与y的阶码相同,并对x的尾数进行算术左移
  • B.x的阶码缩小至与y的阶码相同,并对x的尾数进行算术右移
  • C.y的阶码扩大至与x的阶码相同,并对y的尾数进行算术左移
  • D.y的阶码扩大至与x的阶码相同,并对y的尾数进行算术右移

正确答案及解析

正确答案
D
解析

在浮点数加减运算时,首先要进行对阶,根据对阶的规则,阶码和尾数将进行相应的操作。对阶,首先应求出两数阶码Ex和Ey之差,即△E=Ex-Ey若△E=0,表示两数阶码相等,即Ex=Ey;若△E>0,表示Ex>Ey;若△E<0,表示Ex<Ey。当Ex≠Ey时,要通过尾数的移位来改变Ex或Ey,使Ex=Ey相等。对阶的规则是:小阶向大阶看齐。即阶码小的数的尾数右移,每右移一位,阶码加1,直到两数的阶码相等为止。如:Ex=Ey,无需对阶。Ex>Ey,则My右移。每右移一位.Ey+1→Ey,直至Ex=Ey为止。Ex<Ey,则Mx右移。每右移一位,Ex+1→Ex,直至Ex=Ey为止。

你可能感兴趣的试题

单选题

(  )is the process of transforming information so it is unintelligible to anyone but the intended recipient.

  • A.Encryption
  • B.Decryption
  • C.Security
  • D.Protection
查看答案
单选题

As each application module is completed,it undergoes(  )to ensure that it operates correctly and reliably.

  • A.unit testing
  • B.integration testing
  • C.system testing
  • D.acceptance testing
查看答案
单选题

(  )algorithm specifies the way to arrange data in a particular order.

  • A.Search
  • B.Random
  • C.Sorting
  • D.Merge
查看答案
单选题

After analyzing the source code,(  )generates machine instructions that will carry out the meaning of the program at a later time.

  • A.an interpreter
  • B.a linker
  • C.a compiler
  • D.a converter
查看答案
单选题

(  )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.

  • A.Data processing system
  • B.Big Data analytics
  • C.Cloud computing
  • D.Database management
查看答案

相关题库更多 +