试题 试卷
题型:填空题 题类: 难易度:普通
江苏省普通高中学业水平合格性考试信息技术模拟卷(十二)
求和:计算s=1++++…++。
s=
for i in range(1, ):
s=s+
print("s=",str(s))
s=0
For i=1 To 3
s=s+i
Next i
该程序段运行后,变量s的值是( )
m=0:n=0
For i=1 to 100
If i mod 3="0" then
m=m+1
Else
n=n+1
next i
print m,n
图 a
图 b
彩票中心编写一个程序,功能为:随机生成7个不重复的中奖号码,并读取文件“彩票记录.txt”(该文件存储所有已售出的彩票号码),最后根据兑奖规则输出开奖结果,运行界面示例如下:
s=input()
n=len(s);c=1;max=1
for i in range(1,n):
if (1)____:
c=c+1
if c>max:
max=c
else:
试题篮