}You can call aySound instead of aySound and there are methods to control both background music as well as incidental sounds. Public static void playBackgroundMusic(boolean play) Public static void setBackgroundMusic(GreenfootSound bgm) SetBackgroundMusic(new GreenfootSound(filename)) Public static void setBackgroundMusic(String filename) Public static void setSoundVolume(GreenfootSound sound) GreenfootSound sound = new GreenfootSound(filename) Public static void playSound(String filename) If (bgMusic != null & bgMusic.isPlaying()) tVolume(volume) 1.Public abstract class Sound extends Greenfoot The Greenfoot method getRandomNumber is used to create predictable behaviour in your scenario Mark for Review (1) Points True False (*) Incorrect. Which keyword indicates that Greenfoot needs to create a new object? Mark for Review (1) Points newClass newObject addObject new (*) Incorrect. From your Greenfoot lessons, which axes define an object's position in a world? Mark for Review (1) Points (Choose all correct answers) x (*) w y (*) z Incorrect. In Greenfoot, which keyword calls the World superclass? Mark for Review (1) Points constructor addObject super (*) new world Incorrect. (*) My program is complete when it compiles. My program is complete when it runs and I've tested the code. My program is complete when I add music to it. From your Greenfoot lessons, Which of the following statements is most correct? Mark for Review (1) Points My program is complete when I add images to it. A subclass has what kind of relationship to a superclass? Mark for Review (1) Points "is-by" "for-what" "a-is" "is-a" (*) Incorrect. (*) A single person is a superclass of the human subclass. A rose is a subclass of the flower superclass. A computer is a subclass of a video game superclass. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review (1) Points A dog is a subclass of the cat superclass. True or false? Mark for Review (1) Points True (*) False Correct 9. From your Greenfoot lessons, which of the following is not a step to creating a new subclass? Mark for Review (1) Points Click New subclass. From your Greenfoot lessons, where do you review a class's inherited methods? Mark for Review (1) Points Act method Inspector If-statement Documentation (*) Incorrect. In Greenfoot, which of the following methods display an object's orientation? Mark for Review (1) Points (Choose all correct answers) int getRotation() (*) void move() void turn() int getX() (*) Incorrect. True or false? Mark for Review (1) Points True (*) False Correct 5. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. In Greenfoot, methods can be called in the act method. True or false? Mark for Review (1) Points True False (*) Incorrect. In Greenfoot, the instance has a source code editor. In Alice, which of the following programming statements moves the cat forward the distance to the bird? Mark for Review (1) Points this.Cat move (*) Incorrect. Mark for Review (1) Points "Hello World." IF or WHILE 12 + 15 = 27 (*) None of the above Incorrect. Identify an example of an Alice expression. A conditional loop is a loop that will continue forever. The Alice If control structure requires the false statement to be populated.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |