题目内容

下列程序段执行后,输出结果为( )。n=1s=1While n < 5:s=s*nn=n+1print(s)

A. 24
B. 10
C. 120
D. 15

查看答案
更多问题

下面程序段的循环次数是()。k=0While k < 10 :if k < 1 :continueif k == 5 :breakk+=1

A. 5
B. 6
C. 4
D. 死循环

while语句必须要有限定条件,否则会死循环

A. 对
B. 错

使用最合适的时态填空。 ___________ (you/ arrive) at the theatre in time for the play last night?

使用最合适的时态填空。 Mary went for a swim after work yesterday. She needed some exercise because she __________________ (sit) in an office all day in front of a computer.

答案查题题库