下列程序段的输出结果是 CLEAR STORE 10 TO A STORE 20 TO B SET UDFPARMS TO REFERENCE DO SWAP WITH A,(
A.10 20
B.20 20
C.20 10
D.10 10
第1题:
以下程序段运行后,消息框的输出结果是( )。 a=10b=20c=a<;bMsgBox c+l
A.一1
B.0
C.1
D.2
第2题:
下列程序段的输出结果
Clear
store 10 to a
store 20 to B.
set udfparms to reference
do swap with a,(b)
a,b
procedure swap
parameters x1,x2
temp=X1
x1=x2
x2=temp
endproc
A.10 20
B.20 20
C.20 10
D.10 10
第3题:
有下列程序段,程序段运行后的输出结果是10()。 int *p,n; n=10; p=&n; n=*p+10; printf("%dn", *p);
第4题:
下列程序段的输出结果是( )。
Clear
store 10to a
store 20to b
set udfparms to reference
do Swap with a,(b)
?a,b
procedure swap
parameters x1,x2
temp=x1
xl=x2
x2=temp
endproc
A)2010
B)1010
C)2020
D)1020
第5题:
下列程序的输出结果是:___________。 x = 10 y = 20 def swap(x, y): t = x x = y y = t print(x, y) swap(x,y) print(x,y)
A.20 10 10 20
B.10 20 10 20
C.10 20 20 10
D.20 10 20 10