题目内容

x=1 y=2 则执行if x>=y: max=x else: max=y 语句后,max的值为( )

A. 1
B. 2
C. 0
D. 无结果

查看答案
更多问题

if score>=60.0:Grade=’D’if score>=70.0:Grade=’C’if score>=80.0:Grade=’B’if score>=90.0Grade=’A’在以上程序中,若输入score为85,则输出grade为( )

A. D
B. C
C. B
DCB

if score>=60.0:Grade=’D’elif score>=70.0:Grade=’C’elif score>=80.0:Grade=’B’Elif score>=90.0Grade=’A’Else:Grade=’E’在以上程序中,若输入score为76,则输出grade为( )

A. B
B. E
C
D

可以终止循环的关键字是( )

A. continue
B. retun
C. exit
D. break

遍历循环要求()

A. 循环次数不确定
B. 循环次数确定
C. 循环次数确定或不确定
D. 和循环次数无关

答案查题题库