题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-30 21:58:30

[填空题]下列程序段的输出结果为 (15)
Dim S1(5) As Integer,S2(5) As Integer,S3(5) As Integer
N=4
For I=1 To N
S1(I)=I
S2(I)=L
Next I
S3(5)=0
For K=1 To N
S3(K)=S1(K)*S2(K)
S3(5)=S3(5)+S3(K)
Next K
Print S1(3); S1(5); S1(2)
Print S2(4); S31); S3(5)

更多"下列程序段的输出结果为 (15) 。 Dim S1(5) As In"的相关试题:

[填空题]下面程序段的输出结果为 (6)
Dim S1(5) As Integer,S2(5) As Integer,S3(5) As Integer
N=4
For I=1 To N
S1(I)=I
L=N+1-I
S2(I)=L
Next I
S3(5)=0
For K=1 To N
S3(K)=S1(K)*S2(K)
S3(5)=S3(5)+S3(K)
Next K
Print S1(3); S1(5); S1(2)
Print S2(4); S3(1); S3(5)
[填空题]下列程序段的输出结果为______。 Dim S1(5)As Integer,S2(5)As Integer,S3(5)As Integer N=4 ForI=1 To N S1(I)=I L=N+i-I S2(I)=L NextI S3(5)=0 ForK=1 To N S3(K)=S1(K)*S2(K) S3(5)=S3(5)+S3(K) NextK PrintS1(3)=S1(5);S1(2) PrintS2(4)=S3(1);S3(5)
[填空题]下列程序段的输出结果为______。
Dim S1(5)As Integer,S2(5)As Integer,S3(5)As Integer
N=4
ForI=1 To N
S1(I)=I
L=N+i-I
S2(I)=L
NextI
S3(5)=0
ForK=1 To N
S3(K)=S1(K)*S2(K)
S3(5)=S3(5)+S3(K)
NextK
PrintS1(3)=S1(5);S1(2)
PrintS2(4)=S3(1);S3(5)
[填空题]下列程序段的输出结果为______。 Dimy As Integer Private Sub Commandl_CUck( ) DimX As Integer x=2 TeKt1.Text=SecondFunc(FirStFunC(X),y) Text2.Text=FirstFunc(X) End Sub PrivateFunctionFirstFunc(XASInteger)As Integer x=x+y:y=x+y FirstFunc=x+y End Function PtivateFunction SecondFunc(X As Integer,y AS Integer)As Integer SecondFunc=2*x+y End Function
[填空题]已知如下程序段:
Dim MyInt As Integer
Dim MyLen
MyLen=Len(MyInt)
执行以上程序段后,MyLen为______。
[填空题]下列程序段的输出结果为______。
Dimy As Integer
Private Sub Commandl_CUck( )
DimX As Integer
x=2
TeKt1.Text=SecondFunc(FirStFunC(X),y)
Text2.Text=FirstFunc(X)
End Sub
PrivateFunctionFirstFunc(XASInteger)As Integer
x=x+y:y=x+y
FirstFunc=x+y
End Function
PtivateFunction SecondFunc(X As Integer,y AS Integer)As Integer
SecondFunc=2*x+y
End Function
[单项选择]下列程序段的执行结果为 ______。
Dim m(3,3)As Integer
Dim i As Integer
Dim j As Integer
Dim K As Integer
For i=1 To 3
m(i,i)=i
Next
For i=0 To 3
For j=0 To 3
x=x+m(i,j)
Next
Next
Print x
A. 3
B. 4
C. 5
D. 6
[单项选择]下列程序段的执行结果为______。
Dim m(3,3)As Integer
Dim i As Integer
Dim j As Integer
Dim x As Integer
For i=1 To 3
m(i,i)=i
Next
For i=0 To 3
For j=0 To 3
x=x+m(i,j)
Next
Next
Print x
A. 3
B. 4
C. 5
D. 6
[填空题]下列程序段运行结果是______。
Dim c As Integer,num As Integer
Num=29483
Do
 c=num Mod 10
 Print c;
 num=num/10
Loop While num<>0
[填空题]下列程序段的运行结果是______。
Dim num As Integer, a As Integer, b As Integer
a=88:b=24
Do While b <>0
num=a Mod b
a=b
b=num
Print a
Loop
[填空题]下列程序段运行结果是______。 Dim c As Integer,num As Integer Num=29483 Do  c=num Mod 10  Print c;  num=num/10 Loop While num<>0
[填空题]下面程序段运行后,变量X的值为 【14】
Dim X As Integer
Dim I as Integer
X = 0
For i = 0 to 50 step 10
X=X+i
Print X

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码