In greenfoot, what type of parameter does the iskeydown method expect?

Compares two boolean values and returns a boolean value which is true if either one of theoperands is true.15. In Greenfoot, string concatenation reduces the number of redundant characters or phrasesyou need to type into each array. True or false? Mark for Review(1) PointsTrue (*)

Get answer to your question and much more

1. In Greenfoot, defined methods must be used immediately. True or false? Mark for Review(1) Points

Get answer to your question and much more

2. Use your Greenfoot knowledge to answer the question. One reason to write a defined methodin a class is to make it easier to read. True or false? Mark for Review(1) PointsTrue (*)False

3. In Greenfoot, a way to have all subclasses of a superclass inherit a method is by adding themethod to the superclass. True or false? Mark for Review(1) Points

Get answer to your question and much more

4. In Greenfoot, what type of parameter does the isKeyDown method expect? Mark forReview(1) PointsIntegerString (*)

Get answer to your question and much more

5. In Greenfoot, which method checks if a key on the keyboard has been pressed? Mark forReview(1) PointskeyClick method

Get answer to your question and much more

6. What type of parameter does the keyDown method expect? Mark for Review(1) PointsThe name of the key to press on the keyboard. (*)The password that will protect the class.The name of the sound file to play when the key is pressed.The name of the class that will use the key.

7. In Greenfoot, an if-statement is used to alternate between displaying two images in aninstance. True or false? Mark for Review(1) PointsTrue (*)

Get answer to your question and much more

8. The GreenfootImage class enables Greenfoot actors to maintain their visible image by holdingan object of type GreenfootImage. True or false? Mark for Review(1) PointsTrue (*)

Get answer to your question and much more

            (Answer all questions in this section)

                        1.         From your Greenfoot lessons, Which of the following statements is most correct?

            My program is complete when I add music to it.

            My program is complete when it runs and I've tested the code. (*)

            My program is complete when I add images to it.

            My program is complete when it compiles.

2.         Which of the following Java syntax is used to correctly create a Bee subclass?

            private class extends Bee

            private Bee extends World

            public class Bee extends World

            private class extends Actor

            public class Bee extends Animal (*)

3.         What does an instance of the World class do?           Mark for Review

            Provide the superclass for acting objects.

            Provide the source code for instances.

            Provide the background scenery for the scenario. (*)

            Provide the acting objects for the scenario.

4.         In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario?         Mark for Review

5.         In Greenfoot, the class holds the general attributes of an instance, such as the methods it inherits. True or false?           Mark for Review

6.         In Greenfoot, the body of the method is located in between which of the following characters?    Mark for Review

7.         In Greenfoot, the move method expects what type of information in its parameters?          Mark for Review

            Integer of steps to move forward (*)

8.         A variable is also known as a ____________.            Mark for Review

9.         Using the Greenfoot IDE, only five instances can be added to a scenario. True or false?    Mark for Review

10.       From your Greenfoot lessons, when does an if-else statement execute it's second code segment?   Mark for Review

            After the first code segment is executed.

            When an instance is created.

            When a random number is less than 10.

            If a condition is false. (*)

11.       In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class?   Mark for Review

            Method-name.object-name(parameters);

            object-name.method-name(parameters); (*)

            class-name.method-name(parameters);

12.       Which of the following Greenfoot methods returns a random number between 0, up to and including 10,000?           Mark for Review

            Greenfoot.getRandomNumber(0-10,000)

            Greenfoot.getRandomNumber(9,999)

            Greenfoot.getRandomNumber(10,000)

            Greenfoot.getRandomNumber(10,001) (*)

13.       Read the following method signature. Using your Greenfoot experience, what does this method do?

public static int getRandomNumber (int limit)           Mark for Review

            Returns a random number between zero and the parameter limit. (*)

            Returns a random number for instances in the animal class only.

            Returns a random coordinate position in the world.

            Returns a random number less than 10.

14.       From your Greenfoot lessons, where do you review a class's inherited methods?     Mark for Review

15.       The list below displays components of the Greenfoot source code editor except one. Which one should be removed?    Mark for Review

1.         In Greenfoot, only 10 methods can be written for each class in the Code editor. True or false?      Mark for Review

2.         From your Greenfoot lessons, where do you review a class's inherited methods?     Mark for Review

3.         In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review

            Integer of steps to move forward

4.         In Greenfoot, methods can be called in the act method. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. True or false?       Mark for Review

5.         Using the Greenfoot IDE, only five instances can be added to a scenario. True or false?    Mark for Review

6.         In Greenfoot, the instance has a source code editor. True or false?   Mark for Review

7.         In Greenfoot, the origin of the world coordinate system (0,0) starts in the center of the world. True or false?   Mark for Review

8.         From your Greenfoot lessons, classes can only use the methods they have inherited. They cannot use methods from other classes. True or false?     Mark for Review

9.         The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed?    Mark for Review

            Has a void return type. (*)

            Executed automatically when a new instance of the class is created.

            Defines the instance's size and resolution.

            Has the same name as the name of the class.

10.       What does the following Greenfoot programming statement tell the class to do?

if (Greenfoot.getRandomNumber(100) < 6) { turn(18); }     Mark for Review

            Turn 6 degrees, then turn 18 degrees.

            If a random number is returned that is greater than 6, turn 18 degrees.

            If a random number is returned that is less than 6, turn 18 degrees. (*)

            If a random number is returned that is less than 6, move 18 steps.

11.       In Greenfoot, you will not receive an error message if your code is incorrect. It will simply not work, and you will have to determine why the code doesn't work. True or false?  Mark for Review

12.       In Greenfoot, what happens to an instance when the Act button is clicked in the environment?     Mark for Review

            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. (*)

            The instance executes all of the programming statements in their class's act method two times until the scenario is stopped.

            The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.

            Only one instance moves until the pause button is clicked.

13.       In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario?         Mark for Review

14.       In Greenfoot, a subclass is created by right-clicking on a superclass. True or false? Mark for Review

15.       Which of the following Java syntax is used to correctly create a Bee subclass?        Mark for Review

            private class extends Actor

            private Bee extends World

            public class Bee extends World

            public class Bee extends Animal (*)

            private class extends Bee

1.         Which of the following is an incorrectly written programming statement?   Mark for Review

2.         In Greenfoot, the move method expects what type of information in its parameters?          Mark for Review

            Integer of steps to move forward (*)

3.         In Greenfoot, the body of the method is located in between which of the following characters?    Mark for Review

4.         In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review

            Integer of steps to move forward

5.         An instance variable can be saved and accessed later, even if the instance no longer exists. True or false?   Mark for Review

6.         In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review

7.         An if-statement requires which type of information returned from the condition?   Mark for Review

8.         In Greenfoot, the class holds the general attributes of an instance, such as the methods it inherits. True or false?           Mark for Review

9.         In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario?         Mark for Review

10.       In Greenfoot, a subclass is a specialization of a superclass. True or false?     Mark for Review

11.       In Greenfoot, what happens to an instance when the Act button is clicked in the environment?     Mark for Review

            Only one instance moves until the pause button is clicked.

            The instance executes all of the programming statements in their class's act method once. (*)

            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 two times until the scenario is stopped.

            The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.

12.       In Greenfoot you can use comparison operators to compare a variable to a random number. True or false?   Mark for Review

13.       From your Greenfoot lessons, dot notation allows you to use a method from a different class, if the class you are programming does not possess the method. True or false?       Mark for Review

14.       From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances?        Mark for Review

15.       The first step to executing an if-else statement is to:____________. Mark for Review

            Evaluate the condition (*)

            Execute the else statement

1.         Which actor method is used to detect a simple collision?      Mark for Review

2.         In Greenfoot, defined methods must be used immediately. True or false?   Mark for Review

3.         Which one of the following can be used to detect when 2 actors collide?    Mark for Review

4.         In Greenfoot when you use the method to retrieve input from the user, the scenario will continue to run in the background?           Mark for Review

5.         Greenfoot has tools to record sound. True or false?   Mark for Review

6.         What type of parameter does the keyDown method expect? Mark for Review

            The name of the class that will use the key.

            The name of the sound file to play when the key is pressed.

            The password that will protect the class.

            The name of the key to press on the keyboard. (*)

7.         In Greenfoot the showText() method belongs to which class?          Mark for Review

8.         Use your Greenfoot knowledge to answer the question: Where are defined variables typically entered in a class's source code?          Mark for Review

            After the constructors and methods in the source code.

            At the top of the source code, before the constructors and methods. (*)

            Between the constructors and methods in the source code.

            In the defined method in the source code.

9.         Where can we review the available classes and methods in Greenfoot, including the stop method?            Mark for Review

            Greenfoot Application Programmers' Interface (API) (*)

            Class Application Programmers' Interface (API)

10.       In Java what is casting?          Mark for Review

            Casting is when we remove an object from the world

            Casting is when we want to tell the java compiler that a class we are accessing is really another type of class (*)

            Casting is when we reset the state of an instance.

            Casting is when we change the coordinates of an actor

11.       Use your Greenfoot knowldege: If an Actor class Fly has a variable defined to store the current speed, which of the following statements would successfully add a Fly and define the current speed as 2?          Mark for Review

            addObject (new Fly(), 2, 150, 150);

            addObject (new Fly(), 150, 150);

            addObject (new Fly(2, 90), 150, 150);

            addObject (new Fly(2), 150, 150); (*)

12.       Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false?   Mark for Review

13.       In Greenfoot, which statement is a correct example of string concatenation?           Mark for Review

            bee.setImage("bee" + i + ".png"); (*)

            Bee bee = new Bee(image1);

            bee.setImage("bee" - "I" - ".png");

14.       From your Greenfoot lessons, which symbol represents string concatenation?         Mark for Review

15.       From your Greenfoot lessons, when do infinite loops occur?            Mark for Review

            When the end to the act method isn't established.

            When the end to the code isn't established. (*)

            When the loop is executed.

1.         From your Greenfoot lessons, how do you call a defined method?   Mark for Review

            Write the method in the Actor class.

            Call the method from the act method. (*)

            Write the method in the World superclass.

            Write the method in the documentation.

            Write the method in the instance.

2.         Which one of the following can be used to detect when 2 actors collide?    Mark for Review

3.         Which actor method is used to detect a simple collision?      Mark for Review

4.         Greenfoot has tools to record sound. True or false?   Mark for Review

5.         In Greenfoot, what type of parameter does the isKeyDown method expect?           Mark for Review

6.         In Greenfoot when you use the method to retrieve input from the user, the scenario will continue to run in the background?           Mark for Review

7.         In Greenfoot, a defined variable is a variable that is defined in an instance. True or false?  Mark for Review

8.         When you re-initialize a scenario, Greenfoot automatically displays an instance of the World subclass in the scenario. True or false? Mark for Review

9.         Which of the following answers have the correct syntax for declaring a class variable in Greenfoot?            Mark for Review

                                    (Choose all correct answers)  

            private variable-type variable-name; (*)

            public variable-type variable-name; (*)

            private variable-name, variable-type;

            public variable-name variable type;

10.       In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction?   Mark for Review

11.       In Greenfoot, you will never have to cast as we only ever use 2 classes - World and Actor.            Mark for Review

12.       From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used?       Mark for Review

            Adding a property to an instance

            Passing a paramater in a constructor to set an initial speed. (*)

            Adding a property to a Class

13.       Which of the following Greenfoot logic operators represents "not"? Mark for Review

14.       In Greenfoot, which statement is a correct example of string concatenation?           Mark for Review

            Bee bee = new Bee(image1);

            bee.setImage("bee" + i + ".png"); (*)

            bee.setImage("bee" - "I" - ".png");

15.       How would the following sentence be written in Greenfoot source code? If Bee is turning, and the keyboard key "d" is down...   Mark for Review

            if (isTurning && Greenfoot.isKeyDown("d") ) (*)

            if (!isTurning && Greenfoot.isKeyDown("d") )

            if (&&isTurning ! Greenfoot.isKeyDown("d") )

            if (!Greenfoot.isKeyDown && isTurning("d") )

1.         In reference to Greenfoot, if the following method was defined in a superclass,

public void turnAtEdge(){

all subclasses of the superclass will inherit the method.

True or false?  Mark for Review

2.         In Greenfoot a collision is when 2 actors touch?        Mark for Review

3.         Defined methods are methods that are only created by the Greenfoot development team? Mark for Review

4.         Greenfoot has tools to record sound. True or false?   Mark for Review

5.         In Greenfoot, which method checks if a key on the keyboard has been pressed?     Mark for Review

6.         From your Greenfoot lessons, the isKeyDown method is located in which class?    Mark for Review

7.         In Greenfoot, the == operator is used to test if two values are equal. True or false? Mark for Review

8.         In Greenfoot, a constructor has a void return type. True or false?     Mark for Review

9.         Which class holds the method that ends a Greenfoot game? Mark for Review

10.       Abstraction occurs in many different ways in programming. True or false?  Mark for Review

11.       In Java what is casting?          Mark for Review

            When you remove an object instance.

            When you reset an object instance.

            When you take an Object of one particular type and turn it into another Object type. (*)

            Casting is not possible in Java.

12.       From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used?       Mark for Review

            Adding a property to an instance

            Adding a property to a Class

            Passing a paramater in a constructor to set an initial speed. (*)

13.       In Greenfoot, what is a common letter used for the loop variable?   Mark for Review

14.       In the Greenfoot IDE, what does the AND operator (&&) do?        Mark for Review

            Compares two boolean variables or expressions and returns a result that is true if either of its operands are true.

            Compares two boolean values, and returns a boolean value which is true if and only if both of its operands are true. (*)

            Compares two boolean values, and returns a boolean value which is true if and only if one of its operands are true.

            Compares two boolean values and returns a boolean value which is true if either one of the operands is true.

15.       In Greenfoot, string concatenation reduces the number of redundant characters or phrases you need to type into each array. True or false?     Mark for Review

1.         In Greenfoot, defined methods must be used immediately. True or false?   Mark for Review

2.         Use your Greenfoot knowledge to answer the question. One reason to write a defined method in a class is to make it easier to read. True or false?          Mark for Review

3.         In Greenfoot, a way to have all subclasses of a superclass inherit a method is by adding the method to the superclass. True or false?  Mark for Review

4.         In Greenfoot, what type of parameter does the isKeyDown method expect?           Mark for Review

5.         In Greenfoot, which method checks if a key on the keyboard has been pressed?     Mark for Review

6.         What type of parameter does the keyDown method expect? Mark for Review

            The name of the key to press on the keyboard. (*)

            The password that will protect the class.

            The name of the sound file to play when the key is pressed.

            The name of the class that will use the key.

7.         In Greenfoot, an if-statement is used to alternate between displaying two images in an instance. True or false?           Mark for Review

8.         The GreenfootImage class enables Greenfoot actors to maintain their visible image by holding an object of type GreenfootImage. True or false?           Mark for Review

9.         In Greenfoot, what is the purpose of the variable type?        Mark for Review

            Defines the access specifier used with the variable.

            Defines the instance that the variable is associated with.

            Defines which class the variable is associated with.

            Defines what kind of data to store in the variable. (*)

10.       In Greenfoot, you will never have to cast as we only ever use 2 classes - World and Actor.            Mark for Review

11.       In Java what is casting?          Mark for Review

            When you take an Object of one particular type and turn it into another Object type. (*)

            Casting is not possible in Java.

            When you remove an object instance.

            When you reset an object instance.

12.       Use your Greenfoot knowldege: If an Actor class Fly has a variable defined to store the current speed, which of the following statements would successfully add a Fly and define the current speed as 2?          Mark for Review

            addObject (new Fly(), 2, 150, 150);

            addObject (new Fly(2, 90), 150, 150);

            addObject (new Fly(2), 150, 150); (*)

            addObject (new Fly(), 150, 150);

13.       In Greenfoot, what happens if the end to a while loop isn't established?      Mark for Review

            The code will execute once and then stop, due to controls in Greenfoot.

            The code will not execute.

            The code will prompt you to enter a loop counter.

            The code will keep executing and will never stop. (*)

14.       In the Greenfoot IDE, what does the AND operator (&&) do?        Mark for Review

            Compares two boolean values and returns a boolean value which is true if either one of the operands is true.

            Compares two boolean variables or expressions and returns a result that is true if either of its operands are true.

            Compares two boolean values, and returns a boolean value which is true if and only if one of its operands are true.

            Compares two boolean values, and returns a boolean value which is true if and only if both of its operands are true. (*)

15.       If an end to a while loop is not established, what happens?  Mark for Review

            The code stops after 20 executions.

            The code stops after 10 executions.

            The condition becomes false after one minute of executions.


            The code executes and does not stop. (*)

Section 2 Quiz             (Answer all questions in this section) 1.         An Entity Relationship model is independent of the hardware or software used for implementation. True or False?  Mark for Review (1) Points             True (*)             False 2.         A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False?           Mark for Review (1) Points             True             False (*) 3.         The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False?          Mark for Review (1) Points             True (*)             False 4. Documenting Business Requirements helps developers control the scope of the system and prevents users from claiming that the new system does not meet their business req

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee メ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) LAST_NAME  NOT NULL     VARCHAR2 (25) EMAIL NOT NULL     VARCHAR2 (25) PHONE_NUMBER                  VARCHAR2 (20) HIRE_DATE   NOT NULL     DATE JOB_ID           NOT NULL     VARCHAR2 (10) SALARY                     NUMBER (8,2) COMMISSION_PCT                NUMBER (2,2) MANAGER_ID                       NUMBER (6) DEPARTMENT_ID                 NUMBER (4) JOBS Table: Name   Null?    Type JOB_ID           NOT NULL     VARCHAR2 (10) JOB_TITLE     NOT NULL     VARCHAR2 (35) MIN_SALARY                      

Section 1 Quiz                 (Answer all questions in this section) 1.            A specialized type of software, which controls and manages the hardware in a computer system.             Mark for Review (1) Points                 Operating System (*)                 Hardware                 Software                 Client 2.            Personal computers (PCs) have been in existence since 1950. True or False?       Mark for Review (1) Points                 True                 False (*) 3.            The overall mission of the Oracle Corporation is to use the internet and fast processing servers to build its own network.   Mark for Review (1) Points                 True                 False (*) 4.            Users could directly interact with which of the following software to access essential business applications? (Choose three) Mark for Review (1) Points                                                 (Choose all correct answers)