已知符号定义语句如下: ALPHA EQU 100 BETA EQU 25 GAMMA EQU 2 分别求下列各表达式的值。 (1)ALPHA*4GTBETA (2)ALPHAMODGAMMA+BETA (3)(BETA/3)LE5 (4)ALPHAANDBETA (5)GAMMAXOR(BETAEQ25)
已知符号定义语句如下: ALPHA EQU 100 BETA EQU 25 GAMMA EQU 2 分别求下列各表达式的值。 (1)ALPHA*4GTBETA (2)ALPHAMODGAMMA+BETA (3)(BETA/3)LE5 (4)ALPHAANDBETA (5)GAMMAXOR(BETAEQ25)
相关考题:
假设数据段定义如下: DSEG SEGMENT DAT DW 1,2,3,4,5,6,7,8,9,10 CNT EQU ($-DAT)/2 DSEG ENDS 执行指令MOV CX, CNT后,寄存器CX的内容是:A.10B.5C.9D.4
设 VALA EQU 200 VALB EQU 30 VALC EQU 1BH 表达式(VALB AND 0FH)OR (VALB XOR 0FH)的值为A.0DEHB.1FHC.1EHD.11H
14 Alpha buys goods from Beta. At 30 June 2005 Beta’s account in Alpha’s records showed $5,700 owing to Beta.Beta submitted a statement to Alpha as at the same date showing a balance due of $5,200.Which of the following could account fully for the difference?A Alpha has sent a cheque to Beta for $500 which has not yet been received by Beta.B The credit side of Beta’s account in Alpha’s records has been undercast by $500.C An invoice for $250 from Beta has been treated in Alpha’s records as if it had been a credit note.D Beta has issued a credit note for $500 to Alpha which Alpha has not yet received.
下述程序为一数据段,正确的判断是( )。 DATA SEGMENT X DB 332H FIRST = 1 FIRST EQU 2 ENDSA.以上5条语句为代码段定义,是正确的B.语句3、4分别为FIRST赋值,是正确的C.语句2定义变量X是正确的D.以上没有正确答案
下述程序为一数据段,正确的判断是( )。1 DATA SEGMENT2 X DB 385H3 VAR=14 VAR EQU 25 ENDSA.语句2定义变量X是正确的B.语句3、4分别为VAR赋值,是正确的C.上5条语句为代码段定义,是正确的D.上没有正确答案
有关等价伪指令EQU和等号伪指令=的说法中,正确的是()。A、EQU能对所定义的符号名再重新定义,而=不行B、=能对所定义的符号名再重新定义,而EQU不行C、EQU和=都能对所定义的符号名再重新定义D、EQU和=都不能对所定义的符号名再重新定义
已知数据和符号定义 A1 DB ? A2 DB 8 K1 EQU 100 判断下列指令的正误,并说明错误指令的原因。 (1)MOV K1,AX (2)MOV A2,AH (3)CMP A1,A2 (4)MOV BX,K1 MOV[BX],DX (5)K1EQU 200
10. class Foo { 11. static void alpha() { /* more code here */ } 12. void beta() { /* more code here */ } 13. } Which two are true?()A、 Foo.beta() is a valid invocation of beta().B、 Foo.alpha() is a valid invocation of alpha().C、 Method beta() can directly call method alpha().D、 Method alpha() can directly call method beta().
现有包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class 和类: //insert code here import com.*; import com.x.y.*; class Test { Alpha a; Beta b; Gamma c; } 哪两行分别插入后可允许代码编译?() A、package com.;B、import com.x;C、package com.x;D、import com.x.Alpha;
现有如下包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class 和类: class Test { Alpha a; Beta b; Gamma c; } 哪三个必须加入到类 Test 中,以使其通过编译?()A、package y;B、package com;C、import com.x.*;D、import com.x.y.*
阅读下列一段程序,分析数据段中BUF, DDBUF, DWBUF各变量的属性,并指出它们各自所在的段首址与偏移地址。程序中的DDBUF EQU THIS DWORD 和DWBUF EQU WORD PRT BUF两条语句有何功能? DATA SEGMENT DDBUF EQU THIS DWORD BUF DB 100 DUP(?) DWBUF EQU WORD PRT BUF DATA ENDS ┆ FIRST EQU THIS FAR LEA SI , BUF ┆
A resource group, MY_APP, has the following configuration: Resource Group NameMY_APP Participating Node Name(s)Alpha Beta GammaStartup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Fallback To Higher Priority Node InThe List MY_APP is currently running on node Beta. MY_APP is then moved to node Gamma using C-SPOC.Nodes Alpha and Beta are shutdown and restarted. Node Alpha stabilizes approx 60 seconds before nodeBeta. What happens to the resource group, MY_APP, when nodes Alpha and Beta are restarted?()A、It moves to BetaB、It stays on GammaC、It moves to AlphaD、It moves to Alpha, then to Beta
1. class Alpha { void m1() {} } 2. class Beta extends Alpha { void m2() { } } 3. class Gamma extends Beta { } 4. 5. class GreekTest { 6. public static void main(String [] args) { 7. a Alpha [] a = {new Alpha(), new Beta(), new Gamma() }; 8. for(Alpha a2 : a) { 9. a2.m1(); 10. if (a2 instanceof Beta || a2 instanceof Gamma) 11. //insert code here 12. } 13. } 14. } 哪一行代码插入到第11行,将编译但是会在运行时产生异常?() A、 a2.m2();B、 ((Beta)a2).m2();C、 ((Alpha)a2).m2();D、 ((Gamma)a2).m2();
10. interface Foo {} 11. class Alpha implements Foo {} 12. class Beta extends Alpha {} 13. class Delta extends Beta { 14. public static void main( String[] args) { 15. Beta x = new Beta(); 16. // insert code here 17. } 18. } Which code, inserted at line 16, will cause a java.lang.ClassCastException?() A、 Alpha a = x;B、 Foo f= (Delta)x;C、 Foo f= (Alpha)x;D、 Beta b = (Beta)(Alpha)x;
单选题A resource group, MY_APP, has the following configuration: Resource Group NameMY_APP Participating Node Name(s)Alpha Beta GammaStartup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Fallback To Higher Priority Node InThe List MY_APP is currently running on node Beta. MY_APP is then moved to node Gamma using C-SPOC.Nodes Alpha and Beta are shutdown and restarted. Node Alpha stabilizes approx 60 seconds before nodeBeta. What happens to the resource group, MY_APP, when nodes Alpha and Beta are restarted?()AIt moves to BetaBIt stays on GammaCIt moves to AlphaDIt moves to Alpha, then to Beta
单选题1. import java.util.*; 2. class SubGen { 3. public static void main(String [] args) { 4. //insert code here 5. } 6. } class Alpha { } class Beta extends Alpha { } class Gamma extends Beta { } 和四段代码片段: s1. ArrayList〈? extends Alpha〉 list1 = new ArrayList〈Gamma〉(); s2. ArrayList〈Alpha〉 list2 = new ArrayList〈? extends Alpha〉(); s3. ArrayList〈? extends Alpha〉 list3 = new ArrayList〈? extends Beta〉(); s4. ArrayList〈? extends Beta〉 list4 = new ArrayList〈Gamma〉(); ArrayList〈? extends Alpha〉 list5 = list4; 哪些片段分别插入到第4行,可允许代码编译?()A只有s1B只有s3C只有s1和s3D只有s1和s4
单选题现有: 1. class Alpha { void m1() {} } 2. class Beta extends Alpha { void m2() { } } 3. class Gamma extends Beta { } 4. 5. class GreekTest { 6. public static void main(String [] args) { 7. Alpha [] a = {new Alpha(), new Beta(), new Gamma() }; 8. for(Alpha a2 : a) { 9. a2.m1(); 10. if (a2 instanceof Beta || a2 instanceof Gamma) 11. //insert code here 12. } 13. } 14. } 哪一行代码插入到第11行,将编译但是会在运行时产生异常?()A a2.m2();B ((Beta)a2).m2();C ((Alpha)a2).m2();D ((Gamma)a2).m2();