题目
题目
单项选择题

The following application was developed to allow a user to guess a number between 0 and 10. If a number between 0 and 10 is entered, the number is not accepted.How can this error be removed?

选项
A.a. change the condition of “number < 0 or number > 10” to “number < 0 and number > 10”.
B.b. delete say block.
C.c. change the condition of “number < 0 or number > 10” to "not (number < 0 or number > 10)”.
D.d. use repeat block instead of repeat until block
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
The question describes a Scratch-like program where a user is prompted to guess a number between 0 and 10, but the current validation rejects valid inputs. We’ll evaluate each answer choice to see whether it fixes the issue, and explain why. Option a: change the condition of “number < 0 or number > 10” to “number < 0 and number > 10”. - This change makes the condition require the number to be both less than 0 AND greater than 10 at the same time. That’s impossib......Login to view full explanation

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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