题目详情

某机器的字长为8,符号位占1位,数据位占7位,采用补码表示时的最小整数 为( )。

  • A.-2^8
  • B.-2^7
  • C.-2^7+l
  • D.-2^8+1

正确答案及解析

正确答案
B
解析

补码表示的规则是:用最高位表示符号,正数用0表示,负数用1表示,正数的补码是其原码本身,负数的补码的数值部分是对其原码的数值部分按位取反后加1。例如, 十进制整数+1的补码表示为00000001,-1的补码表示为11111111。机器字长为8时,用7位表示数值,最大整数值为12^7 (补码表示为01111111),最小整数值为-12^8=-2^7 (补码表示为10000000)。

你可能感兴趣的试题

单选题

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

相关题库更多 +