题目
题目

(72ab92) AP CS Principles (72ab92) AP 计算机科学原理 1.9 Additional Practice   1.9 附加练习

单项选择题

Greg is designing a Scratch game in which the player moves a sprite by pressing the arrow keys. Greg writes the following scripts for the sprite: Greg 正在设计一款 Scratch 游戏,玩家可以通过按方向键来移动精灵。Greg 为该精灵编写了以下脚本: Chelsea suggests that Greg replace these scripts with the following:  Which of the following describe advantages of Chelsea’s suggestion over Greg’s original script? I. If Greg wants to change the default speed the sprite moves at he only needs to edit one block rather than 4 II. It is easy for Greg to add functionality to the program to change the speed of the sprite based on the gameplay (e.g. slowing the sprite’s speed when injured) III. It is clearer what the number used in the four movement scripts describes in the game.

题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: Describe advantages of Chelsea’s suggestion over Greg’s original Scratch scripts for moving a sprite with arrow keys, given the options I, II, and III. Option I: If Greg wants to change the default speed the sprite moves at he only needs to edit one block rather than 4 - This is true because Chelsea’s approach typically introduces a single speed variable that multiple movement directions reference. When speed is centralized, adjusting it requires changing only one value, not four ......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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