题目详情

设机器码的长度为8,x为带符号纯小数,y为带符号纯整数,[X]原=11111111,[Y]补=11111111 ,则x的十进制真值为(),y的十进制真值为()。

  • A.–1
  • B.127
  • C.–127
  • D.1

正确答案及解析

正确答案
A
解析

带符号的纯小数,符号位是看数字的第一位,0就是正的,1就是负的。正数的补码和原码都一样。而负数的补码是把原码除了符号位外全部取反再加上1。这道题x的原码就是1.1111111。然后再看小数点后1所在的位置n,根据公式y=(1/2)的n次方叠加就行了。这道题小数点后7位都是1,因此是

初级网络管理员,历年真题,2008年上半年(上午)《网络管理员》真题

其结果是127/128,再加个负号,就得到x的十进制真值了:-127/128。

带符号纯整数,符号位是看数字的第一位,0就是正的,1就是负的。正数的补码和原码都一样。而负数的补码是把原码除了符号位外全部取反再加上1。这里[y]补=11111111,所以y的原码是10000001,则y的十进制真值是-1。

包含此试题的试卷

你可能感兴趣的试题

单选题

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
查看答案

相关题库更多 +