** MAIN. PRG ** PROC1. PRG
SET TALK OFF PROC P1
X=10 PARA S1,S2
Y=5 S1=S1*5
SET PROC TO PROC1 S2=S2+5
D.O P1 WITH X,Y RETURN
PROC P2
? X,Y &&第一次显示 PARAX,Y
X=10 X=5
Y=5 Y=X+20
D.O P2 WITH X,Y RETURN
? X,Y &&第二次显示
X=10
Y=5
D.O P1 WITH X+5,Y
? X,Y &&第三次显示
X=10
Y=5
D.O P2 WITH X,Y+5
? X,Y &&第四次显示
SET PROC TO
SET TALK ON
RETURN
第一次显示结果为 ______。
A.10 5
B.10 50
C.50 5
D.50 10
[单选题](程序)* * PROG1. PRGSET TALK OFFPUBLIC X,YX=“同学们”Y=“你们好!”? X+YD.O SUBPRO? X,Y,ZSET TALK ONRETURN** SUBPRO. PRGPRIVATE XPUBLIC ZX=100Y=200Z=300? X+Y+ZRETURN第一个X+Y的输出结果为 ______。A.同学们你们好!B.你们好同学们C.同学们+你们好!D.同学们
[单选题](程序)** 主程序:Z.PRGSET TALK OFFSTORE 10 TO X1,X2,X3X1=X1+1D.O Z1? X1+X2+X3RETURNSET TALK ONRETURN** 子程序:Z1. PRGX2=X2+1D.O Z2X1=X1+1RETURN** 子程序:Z2. PRGX3=X3+1RETURN TO MASTER屏幕上的显示结果为 ______。A.33B.32C.31D.32
[单选题](程序)* * MAIN. PRGX1=1X2=3D.O P1 W1TH X1,(X2)? “ X1=”+STR(X1,1),“X2=”+ STR(X2,1)X1=2X2=4D.O P1 WITH X1,X1+ X2?“X1=”+STR(X1,1),“X2=”+STR(X2,1)RETURN* * P1. PRGPARA W1,W2W1=W1 * 2W2=W2 * 2RETURN当第一次调用P1时,X1的输出结果为 ______。A.1B.2C.3D.4
[单选题]有如下程序:***主程序:P.prg******子程序:P1.prg***SET TALK OFFX2=X2+1STORE 2 TO X1,X2,X3DO P2X1=X1+1X1=X1+1D.O P1RETURN?X1+X2+X3***子程序:P2.prg***RETURNX3=X3+1SET TALK ONRETURN TO MASTER执行命令DO P后,屏幕显示的结果为( )。A.3B.4C.9D.10
[单选题]设VisualFoxPro的程序中有PROG1.PRG、PROG2.PRG、PROG3.PRG3层程序依次嵌套,下面的叙述中,正确的是______。A.在PROG1.PRG中用!RUNPROG2.PRG语句可以调用PROG2.PRG子程序B.在PROG2.PRG中用RUNPROG3.PRG语句可以调用PROG3.PRG子程序C.在PROG3.PRG中用RETURN语句可以返回PROG1.PRG主程序D.在PROG3.PRG中用RETURNTOMASTER语句可返回PROG1.PRG主程序
[单选题]设Visual FoxPro的程序中有PROG1.prg、PROG2.prg、PROG3.prg三层程序依次嵌套,下面的叙述中,正确的是______。A.在PROG1.prg中用! RUN PROG 2.prg语句可以调用PROG2.prg 子程序B.在四PROG2.prg中用RUN PROG3.prg语句可以调用PROG3.prg子程序C.在PROG3.prg中用RETURN 语句可以返回PROG1.prg主程序D.在PROG3.prg中用RETUN TO MASTER语句可返回PROG1.p
[单选题](程序)SET TALK OFFD.IMENSION A(6)F.OR K=1 TO 6A.(K)=30—3*KE.NDFORK=5D.O WHILE K>=1A.(K)=A(K)—A(K+1)K=K—1E.NDDO? A(1),A(2),A(4),A(6)SET TALK ONRETURNA.(1)的输出结果为 ______。A.24B.15C.27D.9
[单选题](程序说明)程序功能是求30!。(程序)SET TALK OFFC.LEARN=1I=1D.O WHILE (1)(2)N=N+1(3)? ISET TALK ON(1)A.N<>30B.N>30C.N<30D.N<=30
[单选题](程序)SET TALK OFFI=1CLEARDO WHILE IINT(A) .OR. A>=10 LOOP ELSE I(程序)SET TALK OFFI=1C.LEARD.O WHILE I<=2INPUT “A=” TO AIF A>INT(A) .OR. A>=10LOOPE.LSEINPUT “B=” TO BIF B=INT(B) .AND. B<10LOOPE.LSE?A,“+”,B“=”,A+BE.NDIFE.NDIFI=I+1E.NODOSET TALK ONRETURN程
[单选题]执行下列程序: CLEAR SET TALK OFF STORE 1 TO i,a,b DO WHILE i<=3 DO PROG1 ??"P("+STR(i,1)+")="+STR(a,2)+"," i=i+1 ENDDO ??"b="+STR(b,2) RETURN PROCEDURE PROGl a=a*2 b=b+a SET TALK ON RETURN 程序的运行结果为A.P(1)=2,P(2)=3,P(3)=4,b=15B.P(1)=2,P(2)=4,P(3)=6,b