更多"阅读程序:
a=1:b=1
DO
Print a,b
"的相关试题:
[填空题]阅读程序:
a=1:b=1
Do
Print a, b
a=a+b:b=a+b
If a > 20 Then Exit Do
Loop
程序中的Do...Loop循环的循环体执行 【13】 次。
[填空题]阅读程序:
a=1:b=1
DO
Print a,b
a=a+b: b=a+b
If a>20 Then Exit DO
Loop
程序中的Do-Loop循环的循环体执行______次。
[填空题]阅读程序:
main( )
char strl[]="how do you do",str2[10];
char * p1=strl,* p2=str2;
scanf("%s”,p2);
printf("%s”,p2);
printf("%s/n",p1);
运行上面的程序,输入字符串HOW DO YOU DO 则程序的输出结果是 【15】 。
[填空题]阅读程序:
Sub p(b ( ) As Integer)
For i=1 To 4
b(i) =2(i
Next i
End Sub
Private Sub Command1_Click( )
Dim a (1 To 4) As Integer
a(1)=5
a(2)=6
a(3)=7
a(4)=8
call p (a)
For i=1 To 4
Print a(i)
Next i
End Sub
运行上面的程序,单击命令按钮,输出结果为 ______。
[单项选择]阅读程序: Function F(a As Integer) b=0 Static c b=b+1 c=c+1 f=a+ b+ c End Function Private Sub Command1_Click( ) Dim S As Integer a=2 For i=1 To 3 Print P(A) Next i End Sub运行上面的程序,单击命令拄钮,输出结果为______ 。
A. 4 4 4
B. 4 5 6
C. 4 6 8
D. 4 7 9
[单项选择]阅读程序
SUB P(B( ) AS INTEGER)
FOR I=1 TO 4
B(I) =2*I
NEXT I
END SUB
PRIVATE SUB COMMAND1_CLICK( )
DIM A( 1 TO 4) AS INTEGER
A(1)=5
A(2) =6
A(3) =7
A(4) =8
P A( )
FOR I = 1 TO 4
MSGBOX A(I)
NEXT I
END SUB
运行上面的程序,单击命令按钮COMMAND1后,消息框4次输出的内容分别是( )。
A. 出错
B. 10, 12, 14, 16
C. 5, 6, 7, 8
D. 2, 4, 6, 8
[单项选择]有如下语句序列:Dim a,b As Integer Print a Print b执行以上语句序列,下列叙述中错误的是
A. 输出的a值是0
B. 输出的b值是0
C. a是变体类型变量
D. b是整型变量
[单项选择]阅读程序:
Function F(a As Integer)
b=0
Static c
b=b+1
c=c+1
F=a+b+c
End Function
Private Sub Command1_Click( )
Dim a As Integer
a=2
For i=1 To 3
Print F(
A. 4 5 6
B. 4 6 8
C. 4 7 9
[单项选择]Why do most staff still print documents
A. They do it out of habit.
B. Their screens are small.
C. Printed documents make easier reading.
[填空题]阅读程序:
Sub p(b( ) As Integer)
For i=1 To 4
b(i)=2*i
Next i
End 5ub
Private Sub Command1_C1ick( )
Dima(1 To 4)As InteSer
a(1)=5
a(2)=6
a(3)=7
a(4)=8
caU p(a)
For i=1 To 4
Pdnt a(i)
Next i
End Sub
运行上面的程序,单击命令按钮,输出结果为【15】。