问题 单项选择题

假定编译器规定int和short类型长度分别为32位和16位,执行下列C语言语句:unsigned short a=65534;unsigned int b;b=a;得到b的机器数为______。

A.00007FFEH

B.0000FFFEH

C.FFFF7FFEH

D.FFFFFFFEH

答案

参考答案:B

解析:各种数据在计算机中表示的形式称为机器数,其特点是采用二进制计数制,数的符号用0、1表示,小数点则隐含表示而不占位置。机器数对应的实际数值称为数的真值。 二进制表示中,用最高位作为符号位,“0”代表“+”,“1”代表“-”,其余数位用作数值位,代表数值。有符号数的编码方式,常用的是补码。而无符号数的表数范围是非负数,全部二进制均代表数值,没有符号位。即第一个“0”或“1”不表示正负。 C语言支持所有整型数据类型的有符号数和无符号数运算。16位的无符号整数a等于65534,十六进制表示为FFFEH,32位的无符号整数b等于a,即65534,十六进制表示为0000FFFEH。

单项选择题

I got a job teaching special education at a school in Coachella, California, a desert town about 170 miles from home. It was no (1) job. Street gangs (2) around the school after dark.

"Be careful, " Dad warned me during one of my frequent weekend (3) home. He was concerned about my living (4) , but I needed to be on my own.

One evening, I stayed after school to rearrange my classroom. (5) , I turned out the light and closed the door. Then I (6) toward the gate. It was (7) ! I looked around. Everyone had gone home.

After (8) all the exits, I found just enough (9) to squeeze under a gate in the back of the school. Then I walked toward my car, parked in a field behind the building.Suddenly I heard voices. I (10) around and saw at least eight boys following me. (11) my pace, I reached into my shoulder bag to get my key. I (12) all over the inside of my handbag. But the key wasn’t (13) ! Dear Lord, please help me, I prayed (14) . Suddenly, my fingers touched a loose key in my purse. I didn’t even know if it was for my car, but I took it out and (15) it. It worked!I opened the door, slid in and locked it—just (16) the teenagers surrounded the car. Trembling , I started the engine and (17) away. When I returned to my apartment, the phone was ringing. It was my Dad. I didn’t tell him about my experience; I didn’t want to (18) him. "Oh, I forgot to tell you!" He said, "I had a (n) (19) car key made and slipped it into your purse—just (20) you ever need it.

14()

A.loudly 

B.nervously 

C.carefully 

D.silently

单项选择题