自考资讯

导航

全国2008年1月自学考试汇编语言程序设计试题

来源 :中华考试网 2015-03-09

全国20081月高等教育自学考试

汇编语言程序设计试题

课程代码:02321

 

一、单项选择题(本大题共20小题,每小题1分,共20分)

在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分。

1.如某存储器分段时,一个段最多允许16K个字节单元,那么表示一个段内偏移地址的二进制位数至少是(      )

A.14位                                                           B.15位

C.16位                                                           D.17位

2.设SS=2050H,SP=0140H,则栈顶存贮单元的物理地址是(      )

A.20640H                                                       B.2063EH

C.2063FH                                                       D.21900H

3.使用DOS功能调用时,子程序编号应放在(      )

A.AL                                                              B.AH

C.AX                                                              D.任意指定

4.指令语句中标号的错误定义是(      )

A.在代码段中的名字项后面紧跟冒号定义       B.用EQU伪指令定义

C.用LABEL伪指令定义                                  D.由“JMP标号”指令定义

5.BUFl DB 3 DUP(0,2DUP(1,2),3)

COUNT  EQU  $  -BUFl

符号COUNT等价的值是(      )

A.6                                                                 B.8

C.16                                                               D.18

6.变量具有类型属性,错误的类型是(      )

A.字节型                                                        B.字型

C.字符型                                                        D.双字型

7.下列指令中有语法错误的是(      )

A.ADD AX,12H                                            B.SUB [BX],CX

C.MOV 20H [BX],[SI]                                   D.INC PTR BYTE [BP]

8.没有语法错误的输出指令是(      )

A.OUT AX,30H                                             B.OUT DX,AL

C.OUT AL,DX                                              D.OUT 30H,AH

9.用MOV指令将十进制数89以非压缩BCD码格式送入AX,可使用的指令是(      )

A.MOV AX,89                                              B.MOV AX,0809H

C.MOV AX,89H                                            D.MOV AX,0809

10.下面有语法错误的语句是(      )

A.MOV AX,[BX][SI]                                     B.MOV AX,-2[BX][DI]

C.MOV AX,[BX][BP]                                    D.MOV AX,-1[BX][SI]

11.设AX=8765H,DX=4321H,执行CWD指令后,DX中的内容是(      )

A.4321H                                                         B.0FFFFH

C.8000H                                                         D.0001H

12.设CL=05H,要获得CL=0AH,可选用的指令是(      )

A.XOR CL,0FH                                            B.NOT CL

C.OR CL,0AH                                               D.AND CL,0FH

13.  DAl DW 2A05H

DA2 DB 0FAH

      

MOV AL,BYTE  PTR DAl

SUB DA2,AL

上述指令执行后,DA2中的内容是(      )

A.0DAH                                                          B.0FAH

C.0F5H                                                           D.0D0H

14.假设执行ADD指令后AX=6EH,再执行AAA指令,AX中的值是(      )

A.14H                                                             B.0104H

C.74H                                                             D.04H

15.  MOV AL,79

ADD AL,0B1H

上面指令执行后,设置的标志位CF和OF的值是(      )

A.CF=0, OF=1                                             B.CF=l, OF=1

C.CF=0, OF=0                                             D.CF=1, OF=0

16. DB1 DB 8DUP(2 DUP(3),3DUP(2))

MOV AX,WORD PTR DBl [04H]

上面指令执行后,AX的内容是(      )

A.0302H                                                        B.0203H

C.0202H                                                         D.0303H

17.重复前缀指令REPNE/REPNZ重复执行串操作的条件是(      )

A.CX≠0 AND ZF=0                                        B.CX≠0 AND ZF=1

C.CX=0 AND ZF=0                                         D.CX=0 AND ZF=1

18.当执行条件转移指令JNS OPR时,如条件成立,相对于转移指令的转移距离是(      )

A.-128——+127字节                                      B.-126——+129字节

C.-128——+129字节                                      D.-126——+127字节

19.  TEST  DL,55H

JE NEXT

      

NEXT:……

       …

上述程序段,执行JE指令时能产生转移的情况是(      )

A.DL>55H                                                      B.DL<55H

C.DL=55H                                                      D.DL中第0、2、4、6位均为0

20.寄存器BX和DX中存放有32位二进制数,其中BX中放高16位,下列程序段完成对这32位数扩大四倍的功能;那么该程序段中方框里应填的语句是(      )

MOV  CX,2

LOP:SHL DX,1

 


LOOP LOP

A.ROL BX,1                                                B.ROR BX,1

C.RCL BX,1                                                 D.RCR BX,l

分享到

相关推荐