试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省嘉兴市2021届高三上学期信息技术12月教学测试技术试题卷
For i=1 To 5
a(i)=Int (Rnd*9) +1
Next i
For i= 1 To 5
If i Mod2=0 Then
a(i) = a(i)\i
Else
a(i)= a(i) Mod i
End If
执行该程序段后,在下列选项中a(1)至a(5)各元素可能是( )
s="ABCDEFGH"
i=1
Do While i<=Len(s)
If i mod 2=0 then
s=mid(s, i+1, len(s)-i) & mid(s, 1, i-1)
i=i+1
Loop
Text1.text=s
s=1
for i in range(1,5):
s=s*i
print(s,i)
该程序段运行后,结果为( )
for i in range(0,10,2):
print(" *" )
que=[""]*20
head,tail= 0,0
for i in range(3):
que[tail]=chr(97+i)
tail+= 1
st=["b","c","d","a"]
top=3
while head < tail and top > - 1:
if st[top]==que[head]:
head+= 1
else:
que[tail] = st[top]
top-= 1
print(que[head:tail])
执行该程序段,则输出的结果是( )
for i in range(X):
print(i)
试题篮