计算机系统基础(一):程序的表示、转换与链接(第二周小测验)

2年前 (2022) 程序员胖胖胖虎阿
215 0 0

1.108对应的十六进制形式是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice1">A.5CH<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice1">B.63H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice1">C.6CH<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice1">D.B4H<br> </div>

2.-1029的16位补码用十六进制表示为( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice2">A.8405H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice2">B.FBFBH<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice2">C.0405H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice2">D.7BFBH<br> </div>

3.考虑以下C语言代码:

	short si=–8196;
	unsigned short usi=si;

执行上述程序段后,usi的值是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice3">A.8196<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice3">B.34572<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice3">C.57339<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice3">D.57340<br> </div>

4.考虑以下C语言代码:

	short si=–32768;
	unsigned short usi=si;

执行上述程序段后,usi的值是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice4">A.65536<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice4">B.65535<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice4">C.32768<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice4">D.-32768<br> </div>

5.考虑以下C语言代码:

	unsigned short usi=65535;
	short si=usi;

执行上述程序段后,si的值是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice5">A.65535<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice5">B.-1<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice5">C.-65535<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice5">D.1<br> </div>

6.在ISO C90标准下执行以下关系表达式,结果为"真"的是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice6">A.(unsigned) -1 > -2<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice6">B.-1 < 0U<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice6">C.2147483647 < (int) 2147483648U<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice6">D.2147483647 > -2147483648<br> </div>

7.-1028采用IEEE 754单精度浮点数格式表示的结果(十六进制形式)是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice7">A.44808000H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice7">B.44C04000H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice7">C.C4808000H<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice7">D.C4C04000H<br> </div>

8.假定变量i、f的数据类型分别是int、float。已知i=12345,f=1.2345e3,则在一个32位机器中执行下列表达式时,结果为"假"的是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice8">A.f==(float)(int)f<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice8">B.i==(int)(double)i<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice8">C.f==(float)(double)f<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice8">D.i==(int)(float)i<br> </div>

9.假定某计算机按字节编址,采用小端方式,有一个float型变量x的地址为0xffffc000,x=12345678H,则在内存单元0xffffc001中存放 的内容是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice9">A.0001001000110100B<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice9">B.01010110B<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice9">C.00110100B<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice9">D.0101B<br> </div>

10.下面是关于计算机中存储器容量单位的叙述,其中错误的是( )。

<div> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice10">A.最小的计量单位为位(bit),表示一位"0"或"1"<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice10">B.最基本的计量单位是字节(Byte),一个字节等于8bit<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled checked type="radio" name="choice10">C.一台计算机的编址单位、指令字长和 数据字长都一样,且是字节的整数倍<br> &nbsp;&nbsp;&nbsp;&nbsp;<input disabled type="radio" name="choice10">D."主存容量为1KB"的含义是指主存中能存放1024个字节的二进制信息<br> </div>

相关文章

暂无评论

暂无评论...