Questions
Questions

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

Single choice

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.

Question Image
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
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

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!