题目
题目

Fal25_CS003C_74229 Ch. 4 Pre-Quiz (Remotely Proctored)

单项选择题

How many times does the following code fragment display "Hi"? i = 10 while i >= 0 : print("Hi") i = i - 1

选项
A.10 times
B.9 times
C.12 times
D.11 times
查看解析

查看解析

标准答案
Please login to view
思路分析
To assess how many times the code prints "Hi", we need to examine the loop behavior carefully. Option 1: "10 times". This would be the count if the loop ran from i = 10 down to i = 1, stopping before i reaches 0. However, the condition is i......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!