试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙教版高一信息技术 专题五:VB程序设计
x=-4.2
y=Abs(Int(x))
If x>0 And x<5 Then
y=y+1
Else
y=y-1
End If
该程序段运行后,y的值为( )
s = 0
For i = 1 To 30
If i Mod 5 = 0 Then
s = s + i
i = i + 6
Next i
运行后,变量s的值是( )
s="Dijob 2023" s1=""
for i in range(0,len(s)):
c=s[i]
if "a"<=c<="z" or "A"<=c<="Z":
s1=s1+chr(ord(c)-1)
else:
s1=c+s1 print(s1)
程序运行后,输出的结果是 ( )
试题篮