试题 试卷
题型:解答题 题类:常考题 难易度:普通
江苏省东台创新高级中学2020-2021学年高一上学期信息技术10月检测试卷
求1+22+32+……+1002的结果
input(“运行完毕,请按回车键退出...”)
s=Text1.Text:n=Len(s):i=1
‘按变量s中字符顺序从左到右依次存入字符串数组a中,代码略
Do While I < n
t=a(i)
For j= I+ 1 To n
①
Next j
a(j-1)=t
②
Loop
For i = 1 To lean(s)
Texts2.Text = Texts2.Text + a(i)
Next i
s = "ABCDEF"
For i = 1 To Len(s)
a = Int(Rnd * 3 + 1)
b = Mid(s, a Mod 6 + 1, 1)
ch = ch + Chr(Asc(b) + 32)
执行该程序后,变量ch的值可能是( )
i=6
while i>=2:
print (i)
i=i-1
import random
a = [ 0 ] *5 ; i = 0 ; flag = True
while i < 5 :
a[ i ] = random.randint( 1 , 8 )
if i % 2 == 1 :
a[ i ] = a[ i ] + a[ i - 1 ]
flag = not flag
elif a[ i ] % 2 == 0 and flag == False:
i -= 1
i += 1
执行该程序段后,列表a的值不可能的是( )
n = int(input())
a,b,num = 2,1,2
for i in range(n-1):
print(num)
方框中的代码由以下三部分组成:①num += a / b ②a = a + b ③b = a - b代码顺序正确的选项是( )
试题篮