更多“下列程序执行后,DX寄存器的内容是( )。 CODE SEGMENT ASSUME CS:CODE STAR ”相关问题
  • 第1题:

    You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray.You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred.Which code segment should you use?()

    A.bytesTransferred=stream1.Read(byteArray,0,80);

    B.

    C.

    D.


    参考答案:A

  • 第2题:

    下列程序段执行完后,A单元的内容是【 】H。

    DATA SEGMENT

    A DW 0

    B DW 0

    C DW 230,20,54

    DATA ENDS

    CODE SEGMENT

    ……

    MOV BX,OFFSET C

    MOV AX,[BX]

    ADD B,AX

    MOV AX,2[BX]

    SAL AX,1

    ADD AX,B

    MOV A,AX

    ……

    CODE ENDS


    正确答案:0EEH
    0EEH 解析:本题中,都是以字存放的,把C中十进制数转化为十六进制数为E6H,14H,36H。执行MOV BX,OFFSET C和MOV AX,[BX]指令后,AX=E6H,让AX和B中的值相加后B中的值也为E6H,MOV AX,2[BX]是把BX的偏移地址加2,然后取值给AX,即14H。经算术左移1位后再和B相加得EEH。

  • 第3题:

    下面的程序用来从键盘重复接收一字符送BUFF开始的单元,直到接收到行结束

    标志ODH。在程序中填空,保证其正确运行。

    1 DATA SEGMENT

    2 BUFF DW 128 DUP(0)

    3 DATA ENDS

    4 CODE SGEMENT

    5 ASSUME CS:CODE,DS:DATA

    6 BEGIN: MOV AX, DATA

    7 MOV DS, AX

    8 LEA SI, BUFF

    9 GCH: MOV AH, 01H

    10 INT 21H

    11 MOV [SI], AL

    12 INC SI

    13 __________

    14 JNE GCH

    15 MOV AH, 4CH

    16 INT 21H

    17 CODE ENDS

    18 END BEGIN


    正确答案:CMP ALODH
    CMP AL,ODH 解析:由题意可知,跳出循环的标志为0DH,应在循环段中加一个比较指令,判断结束条件,即在空处用指令CMP AL,0DH。

  • 第4题:

    假设某汇编语言源程序的代码段的段名是CSEG,启动地址为START,下面可用来预置CS寄存器的语句是( )。

    A.ASSUME CS:CSEG

    B.END START

    C.MOV CS,CSEG

    D.MOV AX,CSEG 和MOV CS,AX


    正确答案:B

  • 第5题:

    下述程序的功能是求变量X和变量Y的和送AX寄存器,请填空。

    DATA SEGMENT

    X DW 5

    Y DW 6

    DATA ENDS

    CODE SEGMENT

    ASSUME CS:CODE,DS:DATA

    BEGIN: MOV AX, DATA

    MOV DS, AX

    MOV AX, X

    ADD AX, Y

    MOV AH, 4CH

    INT 21H

    _________

    END BEGIN


    正确答案:CODE  ENDS
    CODE  ENDS 解析:本题考查汇编源程序的格式,每个段的定义要同时有SEGMENT和ENDS语句相对应,整个源程序的结束要以END结束。

  • 第6题:

    哪个对车间代码(workshop code)的描述是正确的?()

    • A、车间代码(workshop code)可以通过仪表读出
    • B、车间代码(workshop code)产生于维修车间
    • C、车间代码(workshop code)可以帮助客户提取他/她的车辆在非营业时间
    • D、车间代码(workshop code)可以帮助创建工单
    • E、车间代码(workshop code)可以通过Star Diagnosis读出

    正确答案:A,D,E

  • 第7题:

    下面是将内存一字节数据高四位和低四位互换并放回原位置的程序,其中有7个语句中有错误,请找出错误的地方并改正。 第1行 DATA SEGMENT 第2行 DD1 DB 23H 第3行 DATA ENDM 第4行 CODE SEGMENT 第5行 ASSUME CS:CODE,DS:DATA 第6行 START MOV AX,DATA 第7行 MOV DS,AX 第8行 LEA SI,OFFSET DD1;取变量DD1的偏移地址 第9行 MOV AL,[SI] 第10行 MOV DL,4;设置移位次数 第11行 RCR AL,CL;循环右移4次 第12行 MOV [SI],AL 第13行 MOV AH,4CH 第14行 INT 21H 第15行 CODE ENDP;代码段结束 第16行 END BEGIN


    正确答案: (1)第3行DATAENDS
    (2)第6行START:MOVAX,DATA
    (3)第8行LEASI,DD1
    (4)第10行MOVCL,4
    (5)第11行RORAL,CL
    (6)第15行CODEENDS
    (7)第16行ENDSTART

  • 第8题:

    若寄存器AX、BX、CX、DX的内容分别为14,15,16,17,依次执行PUSH AX,PUSH BX,POP CX,POP DX指令后,寄存器DX的内容为()

    • A、14
    • B、15
    • C、16
    • D、17

    正确答案:A

  • 第9题:

    80486CPU响应中断时,自动压入堆栈的信息是()。

    • A、AX,BX,CX,DX的内容
    • B、AX,CX的内容
    • C、CS,IP,SP的内容
    • D、CS,IP,标志寄存器的内容

    正确答案:D

  • 第10题:

    单选题
    You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment.Partial Public Class Custom  Inherits System.Web.UI.MasterPagePublic Property Region As String    Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadEnd SubEnd Class You create a new ASP.NET page and specify Custom.master as its master page.You add a Label control named lblRegion to the new page.  You need to display the value of the master pages Region property in lblRegion.What should you do? ()
    A

    Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent  lblRegion.Text = custom.Region

    B

    Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master  lblRegion.Text = custom.Region

    C

    Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl(lblRegion) lblRegion.Text = Me.Region

    D

    Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl(lblRegion) lblRegion.Text = Me.Region


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()
    A

    Override the OnPaint method.

    B

    Write a code segment to handle the CellPainting event.

    C

    Write a code segment to handle the CellParsing event.

    D

    Write a code segment to handle the RowPostPaint event.


    正确答案: B
    解析: 暂无解析

  • 第13题:

    阅读下述程序,指出宏指令ABC的功能是______。

    1 ABC MACRO X1,X2,X3

    2 LOCAL CONT

    3 PUSH AX

    4 MOV AX, X1

    5 SUB AX, X2

    6 CMP AX, 0

    7 JGE CONT

    8 NEG AX

    9 CONT: MOV X3, AX

    10 POP AX

    11 ENDM

    12 DATA SEGMENT

    13 X DW 32

    14 Y DW 98

    15 Z DW ?

    16 DATA ENDS

    17 CODE SEGMENT

    18 ASSUME CS:CODE,DS:DTAT

    19 BEGIN: MOV AX, DATA

    20 MOV DS,AX

    21 ABC X,Y,Z

    22 MOV AH, 4CH

    23 INT 21H

    24 CODE ENDS

    25 END BEGIN


    正确答案:第一个参数减第二个参数差的绝对值送第三个参数
    第一个参数减第二个参数,差的绝对值送第三个参数

  • 第14题:

    下列程序执行后,DX寄存器的内容是( )。 CODE SEGMENT ASSUMECS:CODE START: MOV CL,3 MOV DX,0C6H ROL DX,2 ROR DX,CL CODE ENDS END START

    A.35

    B.63H

    C.53H

    D.138H


    正确答案:B

  • 第15题:

    执行下列程序后,(CX)=( )。 DATA SEGMENT A DW 1, 2, 3, 4, 5 B DW 5 DATA SEGMENT CODE SEGMENT ASSUME CS: CODE, DS: DATA START: MOV AX, DATA MOV DS, AX LEA BX, A ADD BX, B MOV CX, [BX] MOV AH, 4CH INT 21H CODE ENDS END START

    A.400

    B.0

    C.10

    D.100


    正确答案:A
    解析:当执行指令“LEABX,A”时,将A相对数据段首地址的偏移量0送入BX寄存器,执行指令“ADDBX,B”后,(BX)=5。再执行指令“MOVCX,[BX]”时,由于源操作数是寄存器间接寻址方式且该指令为字传送指令,因此应将相对数据段首地址、偏移地址为0005的内容0400送入CX寄存2S。所以上述程序执行完后,(CX)=400。

  • 第16题:

    下列程序执行后,DX寄存器的内容是( ) CODE SEGMENT ASSUME CS:CODE START: MOV CL,3 MOV DX,0C6H ROL DX,2 ROR DX,CL CODE ENDS END START

    A.35

    B.63H

    C.53H

    D.138H


    正确答案:B
    解析:该题主要考查了两个移位指令ROL(循环左移)和ROR(循环右移),首先DX=0C6H=11000110B,而执行ROLDX,2后DX=00011011B,接着执行RORDX,CL结果为DX=01100011B=63H,所以选项B是正确的。

  • 第17题:

    有汇编程序段如下 CODES SEGMENT ASSUME CS:CODES START: MOV CX, 30 XOR AX, AX MOV BX, 1 AGAIN: ADD AX, BX INC BX LOOP AGAIN CODES ENDS END START 程序执行后,AX和BX的内容分别是

    A.465,31

    B.465,30

    C.434,31

    D.434,30


    正确答案:A

  • 第18题:

    下面语句中是堆桔段定义的语句是()。

    • A、CODE SEGMENT
    • B、DATA SEGMENT
    • C、STACK SEGMENT ‘STACK’
    • D、MAIN PROC FAR

    正确答案:C

  • 第19题:

    阅读程序段,回答问题: CWD XOR AX,DX SUB AX,DX 该程序片段中,AX寄存器的内容是一个16位有符号数。 若执行前(AX)=0FEDCH,则执行后(AX)等于多少?


    正确答案:执行后(AX)=124

  • 第20题:

    可以用几种方法得到DX ERROR CODE的解释。


    正确答案: CTRL+7
    NED
    SERVICE TERMINAL

  • 第21题:

    You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code. On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New York". You also must add code to TestPage.aspx to read this value. Which two actions should you perform?()

    • A、Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return "New York"; } } 
    • B、Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = "New York"; 
    • C、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; } 
    • D、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes["CityName"]; } 

    正确答案:A,C

  • 第22题:

    单选题
    You create a method that runs by using the credentials of the end user. You need to use  Microsoft Windows groups to authorize the user. You must add a code segment that identifies whether a user is in the local group named Clerk.Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.bool isAdmin=false;  WindowsBuiltInRole role=WindowsBuiltInRole.Administrator; ......  if(!isAdmin)          throw new Exception("User not permitted");   You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group. Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: B
    解析: 暂无解析