题干

在计算机内,有符号数有3种表示法:原码、反码和补码。

⑴原码就是二进制定点表示法,即最高位为符号位,“0”表示正,“1”表示负,其余位表示数值的大小;

⑵反码表示法规定:正数的反码与其原码相同;负数的反码是对其原码逐位取反,但符号位除外。如二进制原码10010,则反码11101(注:在10010中,左边的1为符号码,故为负);

⑶补码表示法规定:正数的补码与其原码相同;负数的补码是在其反码的末位加1,符号位除外。

根据以上运算规则,二进制有符号数100011的补码的十进制表示是(  )

A:-29

B:-4

C:-61

D:-36

上一题 下一题 0.0难度 选择题 更新时间:2019-03-19 10:35:13

答案(点此获取答案解析)

A

同类题4

    "Can I see my baby?" the happy new mother asked. When the baby was lying in her arms and she moved the cloth to look upon his tiny face, she gasped(吃力地喘着气). The doctor turned quickly and looked out of the hospital window. The baby had been born without ears. Luckily, time proved that the baby's hearing was perfect. Though the misfortune(不幸)happened to him, he grew into a handsome boy. Yet he felt ashamed when he communicated with others.
    "You should get in touch with other young people," his mother told him, with a kindness in her heart. The boy's father talked with the family doctor about his ears. "Could nothing be done?"the father asked. "I believe I could give him a pair of outer ears, if they could be got," the doctor replied.
    Two years went by. One day, his father said to the son, "You are going to the hospital, Son. Mother and I have someone who will donate the ears you need, but it's a secret."The operation is a big success. Later he married and entered the diplomatic(外交的) service. One day, he asked his father, "Who gave the ears? Who gave me so much? I could never do enough for him or her."
    "You could, my son," said the father, "but the agreement was that you are not to know…not yet."
    The years kept their secret, but one of the darkest days did come. He stood with his father over his mother's casket(棺材). Slowly, the father stretched forth(伸出) a hand and raised the thick, reddish brown hair to reveal the mother had no outer ears.
    "Mother said she was glad she never let her hair be cut," his father whispered gently, "and nobody ever thought mother less beautiful, did they?"