题目
题目

CSE-110-OD25-27 7.1 Lessons and Knowledge Check - Study Hall Video epsodes: 14-16

单项选择题

Which of the following is a drawback of while loops?

选项
A.They cannot be used when programmers do not know exactly how many times a loop will run.
B.They are less adaptable than for loops.
C.They require programmers to look in different places in the code to follow the logic of what happens to a variable.
D.They cannot be used with conditional statements.
查看解析

查看解析

标准答案
Please login to view
思路分析
Question: Which of the following is a drawback of while loops? Options: 1) They cannot be used when programmers do not know exactly how many times a loop will run. 2) They are less adaptable than for loops. 3) They require programmers to look in different places in the code to follow the logic of what happens to a variable. 4) They cannot be used with conditional statements. Option 1 analysis: The statement claims while loops cannot be used when the exact number of iterations is unknown. In fact, while loops are specifically designed......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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