

Has the same name as the name of the class.ĭefines the instance's size and resolution.Įxecuted automatically when a new instance of the class is created.ĩ. Which one should be removed? Mark for Review The list below displays characteristics of a Greenfoot world constructor, except for one. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review From your Greenfoot lessons, an instance inherits all of the characteristics of the class, and those characteristics cannot be changed. Provide the superclass for acting objects.Ħ. Provide the background scenery for the scenario. Provide the acting objects for the scenario. What does an instance of the World class do? Mark for Review The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.ĥ. The instance executes all of the programming statements in their class's act method two times until the scenario is stopped. The class executes all of the programming statements in their instance's act method two times until the scenario is stopped. The instance executes all of the programming statements in their class's act method once. Only one instance moves until the pause button is clicked. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario? Mark for Review

In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Reviewģ. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review In Greenfoot the showText() method belongs to which class? Mark for Reviewġ.

In Greenfoot, the = operator is used to test if two values are equal. In Greenfoot, we typically use the act method in the class to automatically create the Actor instances when the world is initialized. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Reviewġ3. You can only use the sounds that are stored in the Greenfoot library. You cannot record unique sounds in Greenfoot.
#Greenfoot pdf code#
In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. When the end to the act method isn't established.ġ0. When the end to the code isn't established. From your Greenfoot lessons, when do infinite loops occur? Mark for Review Instead of entering ".png" after each image file name, add = ".png" after the imageName value in the programming statement.ĩ. Instead of entering ".png" after each image file name, add + ".png" after the imageName value in the programming statement. Instead of entering ".png" after each image file name, add & ".png" after the imageName value in the programming statement. Instead of entering ".png" after each image file name, add ".png" after the imageName value in the programming statement. Which of the following is an example of string concatenation? Mark for Review In Greenfoot, a local variable is declared at the beginning of a class. In Greenfoot you can only access the methods of the current class? Mark for Review

Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Reviewĥ. Defined methods are methods that are only created by the Greenfoot development team? Mark for ReviewĤ. To execute a method in your Greenfoot game, where is it called from? Mark for Review In Greenfoot a collision is when 2 actors touch? Mark for ReviewĢ.
