题目内容

表达式5 if 5>6 else(6 if 3>2 else 5)的值为( )

A. 5
B. 6
C. 3
D. 2

查看答案
更多问题

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

答案查题题库