

R does the isKeyDow n method expect? String (*) Boolean Method Integer Correct 7. You can only use the sounds that are stored in the Greenfoot library. You cannot record unique sounds in Greenfoot. In Greenfoot you can interact with the scenario using a mouse.
#GREENFOOT COLLISION CODE#
Instance method Defined method (*) Class method World method Code method Incorrect. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _. IsCollision() isTouching() (*) hasCollided() isContact() Incorrect. Which one of the following can be used to detect when 2 actors collide? One reason to write a defined method in a class is to make it easier to read. Use your Greenfoo t knowledg e to answer the question. Logic operators (*) Keyboard key names Integers String concatenation 1. In Greenfoot, what type of symbol is used to connect boolean expressions? Within the world constructor Within the act method Within the scenario Within loop constructs (*) Incorrect. In Greenfoot, when is a local variable most often used? When the end to the act method isn't established. When the end to the code isn't established. From your Greenfoot lessons, when do infinite loops occur? In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction?

(*) Adding a property to a Class Incorrect. 11.From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used?Īdding a property to an instance Initialising a variable Passing a paramater in a constructor to set an initial speed. In Greenfoot, you can cast an Actor class to a World class? In Greenfoot, which method is used to end a game?ĭuke.stop( ) Game.stop(1) Greenfoot.stop( ) (*) Class.stop( ) Correctġ0. The GreenfootImage class enables Greenfoot actors to maintain their visible image by holding an object of type GreenfootImage.

In Greenfoot, the = operator is used to test if two values are equal. True (*) False Correct 5.In Greenfoot when you use the method to retrieve input from the user, the scenario will continue to run in the background?įalse (*) Correct 6.In Greenfoot, you can only interact with the scenario using a keyboard. True (*) False Correct 4.In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. 3.In Greenfoot, a way to have all subclasses of a superclass inherit a method is by adding the method to the superclass. HasCollided() hasTouched() isCollision() isInContactWith() isTouching() (*) Incorrect. True (*) False Correct 2.Which actor method is used to detect a simple collision? Section 3 - Quiz 2 L6-L10 (Answer all questions in this section) 1.In Greenfoot a collision is when 2 actors touch?
