组卷题库 > 高中信息技术试卷库
试题详情
有如下Python程序段:

#随机产生 n 个两位正整数存入数组a 中

q=[-1]*n;top=-1

for i in range(n):

    if a[i]%3==0 :

        top+=1

        q[top]=a[i]

    elif a[i]>q[top] and a[i]%2==0:

        top+=1

        q[top]=a[i]

        while top>-1:

            print(q[top],end=',')

            top-=1

执行上述程序段后, 输出结果不可能是(   )
A、48,57,
B、74,80,76,
C、74,68,62,33,44,
D、98,45,78,88,
知识点
参考答案
采纳过本试题的试卷
教育网站链接