题目详情

采用(  )表示带符号数据时,算术运算过程中符号位与数值位采用同样的运算规则进行处理。

  • A.补码
  • B.原码
  • C.反码
  • D.海明码

正确答案及解析

正确答案
A
解析

本题考查原码、反码、补码和移码的基础知识。

①原码运算要注意的问题:它的数值部分就是该数的绝对值,但是它的加减法运算较复杂。当两数相加时,首先判断两数的符号是否相同,如果相同则两数相加,若符号不同,则两数相减;

②反码运算要注意的问题:反码运算时,其符号位与数值一起参加运算。反码的符号位相加后,如果有进位出现,则要把它送回到最低位去相加(循环进位)。用反码运算,其运算结果亦为反码。在转换为真值时,若符号位为0,数位不变;若符号位为1,应将结果求反才是其真值;

③补码运算要注意的问题:补码运算时,其符号位与数值部分一起参加运算,采用一样的规则不需要特殊处理。因此用补码进行加减运算要简便的多,这也是大多数计算机采用的方式。补码的符号位相加后,如果有进位出现,要把这个进位舍去(自然丢失)。用补码运算,其运算结果亦为补码。在转换为真值时,若符号位为0,数位不变;若符号位为1,应将结果求补才是其真值。

A选项正确。

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +