![]() ![]() Private class extends Bee private Bee extends World public class Bee extends World private class extends Actor public class Bee extends Animal (*) Correct 13. Which of the following Java syntax is used to correctly create a Bee subclass? From your Greenfoot lessons, how do you know the program does not contain syntax errors? 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. Select an image from the Greenfoot library Draw an image Import an image Add a video (*)Ĭorrect 10. In Greenfoot, which of the following options are not possible when associating an image file with an instance? In Greenfoot, the instance has a source code editor. An instance variable can be saved and accessed later, even if the instance no longer exists. (Choose all correct answers) void turn() int getX() (*) int getRotation() (*) void move() Correct 7. In Greenfoot, which of the following methods display an object's orientation? In Greenfoot, only 10 methods can be written for each class in the Code editor. In Greenfoot, a semicolon is not necessary at the end of a method that uses dot notation. In Greenfoot you can use comparison operators to compare a variable to a random number. An if-else statement executes its first code block if a condition is true, and its second code block if a condition is false, but not both. In Greenfoot, which of the following is theĬorrect notation for calling a method for an instance of a class? Method-name.object-name(parameters) thod-name(parameters) (*) thod-name(parameters) Method-name.object-name Incorrect. In the Greenfoot IDE, an instance's position is on the x and y coordinates. In Greenfoot, the body of the method is located in between which of the following characters?Ĭurly brackets (*) Parnetheses ( ) Asterisks ** Square brackets Correct 15. Syntax Method Field (*) Class Instance Incorrect. When a program is tested once and it works then testing is complete. In Greenfoot, you must first create an instance before you create a class. The instance executes all of the programming statements in their class's act method once. The instance executes all of the programming statements in their class's act method two times until the scenario is stopped. Only one instance moves until the pause button is clicked. The instance executes all of the programming statements in their class's act method repeatedly 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. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? (*) A dog is a subclass of the cat superclass. ![]() A rose is a subclass of the flower superclass. A single person is a superclass of the human subclass. Which of the following demonstrates a Greenfoot subclass/superclass relationship?Ī computer is a subclass of a video game superclass. From your Greenfoot lessons, which of the following comparison operators represents "greater than"? In Greenfoot, you can use comparison operators to compare a variable to a random number. Has the same name as the name of the class.Ħ. Defines the instance's size and resolution. (*) Executed automatically when a new instance of the class is created. The list below displays characteristics of a Greenfoot world constructor, except for one. Using the Greenfoot IDE, only five instances can be added to a scenario. Parameter void Integer of steps to move forward True or false response Degrees to turn (*) String statement In Mark for Review Greenfoot, (1) Points the turn method expects what type of information in its parameters? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |