试题 试卷
题型:单选题 题类:常考题 难易度:普通
江苏省2016最新高中信息技术学业水平测试选择题库主题二:信息的加工与表达
Private Sub Command1_Click()
For i = 150 To 300
a = i \ 100
b = I mod 100 \ 10
c = i – a*100 – b*10
If i = a * a * a + b * b * b + c * c * c Then
Label1.Caption = Str(i)
End If
Next i
End Sub
Dim a As Integer, b As Integer, c As Integer, y As Integer
a=3:b=4:c=4
If a<=b And c<=a Then
y=a+b
ElseIf a<=b or b<=c Then
y=b+c
ElseIf b=c Then
y=a mod c
Else
y=a+b+c
该程序段运行之后,变量y的值为( )
s=1
For i=20 To________ Step-2
s=s+i
若要使语句s=s+i执行5次,则循环变量i终值应为( )
依次输入x的值为5、3、-1后,该算法的输出结果为( )
试题篮