

In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review (1) Points Method (*) Class name World name Objects Integers Correct 5. Image files from 1-119 are associated with image1. (*) The variable, image1, cannot use the image file, duke12.png. The image file, duke12.png, is assigned to the variable image1. What does the following programming statement mean?image1 = new GreenfootImage(“duke12.png”) Mark for Review (1) Points The image file, duke12.png, has just been drawn and imported into the scenario. Defines the access specifier used with the variable. greenfoot-final-project-jonathan created by GitHub Classroom - greenfoot-final-project-jonathan/MerchantTutorial.java at main yrdsb-peths/greenfoot-final-project. Defines the instance that the variable is associated with. (*) Defines which class the variable is associated with. In Greenfoot, what is the purpose of the variable type? Mark for Review (1) Points Defines what kind of data to store in the variable. In Greenfoot, which method body correctly adds an instance of the World to a scenario, with size x = 300 y = 300 and a resolution of 2 pixels per cell? Mark for Review (1) Points super(300,300,2) (*) Super(300,300,2) world(300, 300, 2) super(2,300,300) Correct 2.
GETWORLD GREENFOOT CODE
In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario? Mark for Review (1) Points Creation of an instance Editing of source code Compilation (*) Creation of source code Incorrect. True or false? Mark for Review (1) Points True (*) False Correct 15. From your Greenfoot lessons, the reset button resets the scenario back to its initial position. True or false? Mark for Review (1) Points True False (*) Incorrect. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass’s source code. A subclass has what kind of relationship to a superclass? Mark for Review (1) Points “a-is” “is-by” “is-a” (*) “for-what” Incorrect. True or false? Mark for Review (1) Points True (*) False Correct 12. When designing a game in Greenfoot, it helps to define the actions that will take place in a textual storyboard. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review (1) Points Add a video (*) Import an image Draw an image Select an image from the Greenfoot library Correct 11.

In Greenfoot, the move method expects what type of information in its parameters? Mark for Review (1) Points Integer of steps to move forward (*) Degrees to turn True or false response String statement Correct 10. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review(1) Points Square brackets Curly brackets (*) Asterisks ** Incorrect.
GETWORLD GREENFOOT HOW TO
I would have to see the codes for the Jeroo class, the MazeIsland class and possibly other classes to see what these methods you are calling do and how to access specific data within those classes. In Greenfoot, the move method expects what type of information in its parameters? Mark for Review(1) Points Degrees to turn True or false response Integer of steps to move forward (*) String statement3. The code I gave was just a snippet to acquire certain values as if it was a greenfoot project. Which of the following is an incorrectly written programming statement? Mark for Review(1) Points move(2) move(): (*) turn(25) turn(2) 2.
GETWORLD GREENFOOT INSTALL
: Index: 0, Size: 0Īt (ArrayList.java:653)Īt (ArrayList.java:429)Īt Hero.act(Hero.java:23) public void act()Īctor 2 = (Actor)getWorld().getObjects(2.class).get(0) getWorld().removeActor(this) // leave the current world tWorld (new Level2(this)) // create new world, install it, and pass myself into it. It works the first time but throws an error immediately after that: When an enemy comes into contact with the hero the hero class is supposed to remove the enemy class with the same X and Y.
