In greenfoot which of the following methods return the world that the instance lives in

In greenfoot which of the following methods return the world that the instance lives in

Deni Ace

Blog tentang pengalaman, pelajaran dan perjalanan semasa kuliah

Search This Blog

Section 3 Oracle Java Fundamental Quiz

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

Labels

Comments

thanks deniace.blogspot.co.id, you’re good

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

คาสิโนออนไลน์ที่น่าเชื่อถือและมีความเป็นมืออาชีพที่สุดในตอนนี้
โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
เพียงแค่คุณสมัคร สล็อตออนไลน์ กับทางทีมงานของเราเพียงเท่านั้น
ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
สมัครสล็อตออนไลน์ >>> Goldenslot
สนใจร่วมสนุกกับ คาสิโนออนไลน์ คลิ๊กได้เลย
มีทั้งคาสิโนออนไลน์ หวยออนไลน์ ฟุตบอลออนไลน์ สล็อตออนไลน์ และอื่นๆอีกมากมาย

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. quiz maker

3. Which two statements compile?
(Choose all correct answers)
String size = “M”;
char size = ’m’;
char size = ”m”;
String size = ‘M’;

Kunci Jawaban All Quiz Oracle Academy Java Fundamental 2017 Part 7

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

1. Which of the following is an incorrectly written programming statement? Mark for Review
(1) Points
move(2);
move(): (*)
turn(25);
turn(2);

2. 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 statement

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

4. In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review
(1) Points
String statement
Degrees to turn (*)
Parameter void
True or false response
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
(1) Points
True
False (*)

6. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getWorld() (*)
World getClass()
getXY()
getRotation()

7. An if-statement requires which type of information returned from the condition? Mark for Review
(1) Points
Method
Action
True or false (*)
Integer

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

9. In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario? Mark for Review
(1) Points
Editing of source code
Compilation (*)
Creation of source code
Creation of an instance

10. In Greenfoot, a subclass is a specialization of a superclass. True or false? Mark for Review
(1) Points
True (*)
False

11. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review
(1) Points
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
(1) Points
True (*)
False

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
(1) Points
True (*)
False

14. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points
World (*)
Vector
Actor
Animal

15. The first step to executing an if-else statement is to:____________. Mark for Review
(1) Points
Evaluate the class
Evaluate the condition (*)
Execute the if statement
Execute the else statement

1. Which actor method is used to detect a simple collision? Mark for Review
(1) Points
isTouching() (*)
isCollision()
isInContactWith()
hasCollided()
hasTouched()

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

3. Which one of the following can be used to detect when 2 actors collide? Mark for Review
(1) Points
isTouching() (*)
isCollision()
hasCollided()
isContact()

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
(1) Points
True
False (*)

5. Greenfoot has tools to record sound. True or false? Mark for Review
(1) Points
True (*)
False

6. What type of parameter does the keyDown method expect? Mark for Review
(1) Points
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
(1) Points
There is no such method.
Actor
Greenfoot
World (*)

8. Use your Greenfoot knowledge to answer the question: Where are defined variables typically entered in a class’s source code? Mark for Review
(1) Points
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
(1) Points
Greenfoot Application Programmers’ Interface (API) (*)
Class menu
Object menu
Class Application Programmers’ Interface (API)

10. In Java what is casting? Mark for Review
(1) Points
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
(1) Points
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
(1) Points
True (*)
False

14. From your Greenfoot lessons, which symbol represents string concatenation? Mark for Review
(1) Points
Symbol =
Symbol &
Symbol + (*)
Symbol (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

5. Which of the following comparison symbols represents equals? Mark for Review
(1) Points

6. In Greenfoot, you can use comparison operators to compare a variable to a random number. True or false? Mark for Review
(1) Points

7. In Greenfoot, the turn 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

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

8. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

9. 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

10. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points

Import an image

Select an image from the Greenfoot library

[Correct] Correct
11. When designing a game in Greenfoot, it helps to define the actions that will take place in a textual storyboard. True or false? Mark for Review
(1) Points

12. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

13. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

14. From your Greenfoot lessons, the reset button resets the scenario back to its initial position. True or false? Mark for Review
(1) Points

15. 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

Creation of source code

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
1. 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

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

Defines which class the variable is associated with.

Defines the instance that the variable is associated with.

Defines the access specifier used with the variable.

3. 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.

The image file, duke12.png, is assigned to the variable image1. (*)

The variable, image1, cannot use the image file, duke12.png.

Image files from 1-119 are associated with image1.

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

4. In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

5. Which of the following is not a component of a while loop? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
6. From your Greenfoot lessons, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

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

Write the method in the instance.

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 Actor class.

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

8. Which one of the following can be used to detect when 2 actors collide? Mark for Review
(1) Points

9. 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
(1) Points

10. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points

name of the class (as String)

name of an integer (as int)

name of a keyboard key (as String)

name of a sound file (as String) (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
11. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points

12. In Greenfoot, which method would you use to obtain input from the user? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

13. 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
(1) Points

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

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

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

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

14. From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used? Mark for Review
(1) Points

Adding a property to a Class

Adding a property to an instance

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

Initialising a variable

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

15. In Greenfoot, you can cast an Actor class to a World class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
1. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points

2. Which of the following Java syntax is used to correctly create a Bee subclass? Mark for Review
(1) Points

private class extends Bee

public class Bee extends World

private class extends Actor

private Bee extends World

public class Bee extends Animal (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

3. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

4. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points

A rose is a subclass of the flower superclass. (*)

A computer is a subclass of a video game superclass.

A dog is a subclass of the cat superclass.

A single person is a superclass of the human subclass.

5. From your Greenfoot lessons, what are the ways that you can view a class’s methods? Mark for Review
(1) Points

(Choose all correct answers)

In the Greenfoot gallery

In the scenario

By right-clicking on an instance (*)

In the class’s documentation (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
6. The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed? Mark for Review
(1) Points

Write and edit source code.

Review the online Java Library documentation. (*)

Write and edit comments.

Write source code to tell the class how to act in the scenario.

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

7. When a program is tested once and it works then testing is complete. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 4.

8. 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
(1) Points

9. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

10. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
11. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points

Import an image

Select an image from the Greenfoot library

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

12. Which of the following comparison operators represents «greater than or equal»? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

13. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points

Has no return type.

Has a void return type. (*)

Defines the instance’s size and resolution.

Has the same name as the name of the class.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

14. In Greenfoot, a semicolon is not necessary at the end of a method that uses dot notation. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

15. From your Greenfoot lessons, which axes define an object’s position in a world? Mark for Review
(1) Points

Kunci Jawaban All Quiz Oracle Academy Java Fundamental 2017 Part 3

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

1. Which of the following is not a type of event listener in Alice? Mark for Review
(1) Points
Keyboard
Scene Activation/Time
Mouse
Position/Orientation
Cursor (*)

2. In Alice, what tab would you choose to start a new animation with a pre-populated world? Mark for Review
(1) Points
Blank Slate
Starters (*)
Recent
My Projects

3. In Alice, you can access the Java on the side option through which menu option? Mark for Review
(1) Points
Window (*)
Project
Run
Edit

4. From your Alice lessons, variables are fixed and cannot be changed. True or false? Mark for Review
(1) Points
True
False (*)

5. You have a Class representing Cat. A cat can meow, purr, catch mice, and so on. When you create a new cat, what is it called? Mark for Review
(1) Points
A subprogram
A submethod
A subclass
A variable class
An instance (*)

Section 2
(Answer all questions in this section)

6. Which of the following statements about methods is false? Mark for Review
(1) Points
Classes must be defined directly within a method definition. (*)
Methods whose return type is not void are required to include a return statement specifying what to return.
The order in which methods are listed within the class is not important.
Java does not permit nesting one method definition within another method’s definition.

7. In Alice, the use of conditional control structures allows what two types of loops? Mark for Review
(1) Points
(Choose all correct answers)
conditional (*)
together
infinite
switch

8. From your Alice lessons, where on an object do an object’s axes intersect? Mark for Review
(1) Points
At the object’s head
At the object’s bottom
At the object’s chest
At the object’s center point (*)

9. Which of the following are examples of elements you would test in your Alice animation? Mark for Review
(1) Points
(Choose all correct answers)
Math expressions calculate as expected. (*)
All of the procedures display in alphabetical order in the Procedures tab.
Event listeners trigger the correct responses. (*)
Objects move with smooth timing. (*)

10. What type of Alice listener object is required to target a mouse-click on any object in the scene, allowing the user to drag that object around the scene when the animation is running? Mark for Review
(1) Points
addMouseListener procedure
addListener procedure
addDefaultManipulation procedure
addDefaultModelManipulation procedure (*)

Section 2
(Answer all questions in this section)

11. In Alice, which of the following arguments could be replaced with a random number? Mark for Review
(1) Points
(Choose all correct answers)
Direction
Duration (*)
Distance (*)
Object name
Procedure name

12. Alice uses built-in math operators. They are: Mark for Review
(1) Points
Add
Subtract
Multiply
Divide
All of the above (*)

13. In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree? Mark for Review
(1) Points
this.Butterfly move backward this.Butterfly move forward this.Butterfly move forward (*)
this.Butterfly move backward

14. In Alice, which function is used to move an object directly to the center point of another object? Mark for Review
(1) Points
getDuration
getDistance (*)
getDepth
getObject

15. When you disable a programming instruction, it is still executed when you run the Alice animation. True or false? Mark for Review
(1) Points
True
False (*)

Section 2
(Answer all questions in this section)

16. In Alice, Do In Order and Do Together: Mark for Review
(1) Points
Are move statements
Are control statements (*)
Are complex statements
None of the above

17. In Alice, the procedures’ arguments allow the programmer to adjust the object, motion, distance amount, and time duration. True or false? Mark for Review
(1) Points
True (*)
False

18. In Alice, a walking motion for a bipedal object can be achieved without the Do Together control statement. True or false? Mark for Review
(1) Points
True
False (*)

19. In Alice, what are the forms of a scenario? Mark for Review
(1) Points
(Choose all correct answers)
A task to perform. (*)
A person to help.
A problem to solve. (*)
A section of code to write.
A system to start.

20. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit the procedure. True or false? Mark for Review
(1) Points
True (*)
False

Section 2
(Answer all questions in this section)

21. Procedural abstraction may need to be implemented if an object in Alice needs to perform an action, but there isn’t an inherited procedure that accomplishes that action. True or false? Mark for Review
(1) Points
True (*)
False

22. The list below describes variables. All are correct except which one? Mark for Review
(1) Points
Has a type associated with it.
Has a unique name.
A place in memory where data of a specific type can be stored for later retrieval and use.
Arranged in rows and columns. (*)

23. The list below displays valid primitive types in Java, except which one? Mark for Review
(1) Points
String (*)
int
double
long
boolean

24. Alice 3 will periodically remind you to save your project. True or false? Mark for Review
(1) Points
True
False (*)

Section 3
(Answer all questions in this section)
25. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getWorld() (*)
World getClass()
getXY()
getRotation()

Section 3
(Answer all questions in this section)

26. From your Greenfoot lessons, in an if-statement, the programming statements written in curly brackets are executed simultaneously. True or false? Mark for Review
(1) Points
True
False (*)

27. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points
True
False (*)

28. In the Greenfoot IDE, what does the AND operator (&&) do? Mark for Review
(1) Points
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. (*)
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.

29. In Greenfoot, which of the following statements could prevent an infinite loop from occurring? Mark for Review
(1) Points
I = 100 + i
i = i + 1 (*)
i = i
i=1

30. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points
True
False (*)

Section 3
(Answer all questions in this section)

31. In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review
(1) Points
Method (*)
Integers
Objects
Class name
World name

32. Which of the following type of audience should you ask to play your Greenfoot game during the testing phase? Mark for Review
(1) Points
Testing
Programmer
Target (*)
Primary

33. In object oriented programming, programmers analyze a problem and create objects to solve the problem. True or false? Mark for Review
(1) Points
True (*)
False

34. Which one of the following can be used to detect when 2 actors collide? Mark for Review
(1) Points
isCollision()
hasCollided()
isContact()
isTouching() (*)

35. 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
(1) Points
True (*)
False

Section 3
(Answer all questions in this section)

36. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points
name of a keyboard key (as String)
name of a sound file (as String) (*)
name of the class (as String)
name of an integer (as int)

37. Greenfoot has tools to record sound. True or false? Mark for Review
(1) Points
True (*)
False

38. Which of the following answers have the correct syntax for declaring a class variable in Greenfoot? Mark for Review
(1) Points
(Choose all correct answers)
public variable-name variable type;
public variable-type variable-name; (*)
private variable-name, variable-type;
private variable-type variable-name; (*)

39. In Greenfoot, which method is used to add a new instance to a scenario when the world is initialized? Mark for Review
(1) Points
addObject (*)
addClass
addWorld
addInstance

40. Constructors are called automatically when a new intance of a class is created? True or false? Mark for Review
(1) Points
True (*)
False

41. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)

42. 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
String statement
True or false response

43. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)

44. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points
Curly brackets < >(*)
Square brackets [ ]
Asterisks **
Parnetheses ( )

45. In Greenfoot, a subclass is a specialization of a superclass. True or false? Mark for Review
(1) Points
True (*)
False

Section 3
(Answer all questions in this section)

46. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class’s act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points
True (*)
False

47. From your Greenfoot lessons, what can methods belong to? Mark for Review
(1) Points
(Choose all correct answers)
Galleries
Classes (*)
Scenarios
Objects (*)
All of the above

48. In Greenfoot, the origin of the world coordinate system (0,0) starts in the center of the world. True or false? Mark for Review
(1) Points
True
False (*)

49. The first step to executing an if-else statement is to:____________. Mark for Review
(1) Points
Execute the else statement
Evaluate the class
Execute the if statement
Evaluate the condition (*)

50. 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. True or false? Mark for Review
(1) Points
True (*)

3. What is the first step to entering comments in an Alice program?
• Type comments that describe the sequence of actions in the code segment.
• Drag and drop the comments tile above a code segment. (*)
• Drag and drop the comments tile below a code segment.
• Select the instance from the instance menu.

4. Which of the following are examples of elements you would test in your Alice animation?
• All of the procedures display in alphabetical order in the Procedures tab.
• Math expressions calculate as expected. (*)
• Objects move with smooth timing. (*)
• Event listeners trigger the correct responses. (*)
• Comments were added below each sequence of instructions in the code.

5. You want an event to happen when an object collides with another object, which category of event handler would you choose?
• Mouse
• Keyboard
• Scene Activation/time
• Position/Orientation (*)

6. Main is an example of what in the following code?
public static void main (String[] args) <
System.out.println <"Hello World!");
>
• A method (*)
• A class
• A variable

7. Which of the following does not describe methods?
• A subprogram that acts on data and often returns a value.
• A set of code that is referred to by name.
• Can be called at any point in a program simply by utilizing its name.
• Is associated with an instance variable. (*)

8. Which of the following is not an Alice variable value type?
• Color
• Decimal Number
• Whole Number
• Function (*)

9. In Java code the < >brackets are used to represent what statements?
• for
• end (*)
• while
• begin (*)

10. In Alice, if only objects that walk on four legs need to use a procedure, in which superclass would the procedure be declared? When a new procedure is declared, all subclasses of the superclass will inherit the procedure.
• Quadruped (*)
• Biped
• Swimmer
• Prop

11. In Alice, which of the following is not a control statement?
• Do In Order
• While
• Count
• Move (*)
• Do Together

13. Which of the following is an incorrectly written programming statement?
• move(): (*)
• move(2);
• turn(25);
1. Which of the following is not a step in the Alice animation development process? Mark for Review
(1) Points

Sell the animation (*)

Define the scenario

Run the animation

Design a storyboard

Program the animation

2. In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree? Mark for Review
(1) Points

this.Butterfly move backward

3. From your Alice lessons, the If control structure can process one true and one false response. True or false? Mark for Review
(1) Points

4. In Alice, we use the While control statement to implement the conditional loop. True or false? Mark for Review
(1) Points

5. A loop can be infinite (continue forever) or conditional (stops upon a condition). True or false? Mark for Review
(1) Points

6. In Alice, procedural abstraction is the concept of making code easier to understand and reuse. True or false? Mark for Review
(1) Points

7. In Alice, if a procedure is declared for MyClownFish, which classes can use the procedure? Mark for Review
(1) Points

MyClownFish class and MySwimmer class

MyPajamaFish class, MyClownFish class, and MySwimmer class

Any class with «Fish» in the class name

Incorrect. Refer to Section 2 Lesson 4.

8. In Alice, which of the following are benefits of separating out motions into their own procedures? Mark for Review
(1) Points

(Choose all correct answers)

It makes the animation easier to run.

It makes the scene easier to view.

It simplifies code and makes it easier to read. (*)

It allows many objects of a class to use the same procedure. (*)

It can allow subclasses of a superclass to use a procedure. (*)

Incorrect. Refer to Section 2 Lesson 4.

9. In Alice, which of the following instructions move the Blue Tang fish forward 2 meters? Mark for Review
(1) Points

this.blueTang move Forward 0.2

this.blueTang move Forward 2

this.blueTang move Backward 2

this.blueTang move Forward 2.0 (*)

10. From your Alice lessons, the Do In Order control statement is also referred to by what other name? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 3.

11. In Alice, which of the following procedures play a sound? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 3.

12. From your Alice lessons, the «Checklist for Animation Completion» does not ask questions about the scenario and storyboards, because these are not valid parts of the animation creation process. True or false? Mark for Review
(1) Points

13. From your Alice lessons, when coding for keyboard control, the programmer’s job is to consider at least 70% of every key stroke the user could take. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 8.

14. From your Alice lessons, you can run the animation to test that it works properly. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 8.

15. Expressions with relational operators produce true and false values. True or false?
Mark for Review
(1) Points
True (*)
False

16. Which of the following does not describe variables? Mark for Review
(1) Points

A place in memory where data of a specific type can be stored for later retrieval and use.

Has a unique name.

Has a type associated with it.

Arranged in rows and columns. (*)

17. From your Alice lessons, a Do Together statement embedded with two move statements is an example of what? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 5.

18. In Alice, once procedures are added to a control statement, they cannot be changed. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 5.

19. Do In Order and Do Together are the only control statements available in Alice. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 2 Lesson 5.

20. From your Alice lessons, built-in functions provide precise property details for the following areas: Mark for Review
(1) Points

Proximity and size

Distance to and nesting

Proximity, size, spatial relation, and point of view (*)

Proximity and point of view

21. Which of the following is not an example of the logic of an IF control structure? Mark for Review
(1) Points

Play the video three times. (*)

If the play button is pressed, then play the video one time.

If the doorbell rings, then the door opens.

If the bird rings the bell, a treat is dispensed.

22. Which of the following statements about methods is false? Mark for Review
(1) Points

Classes must be defined directly within a method definition. (*)

Methods whose return type is not void are required to include a return statement specifying what to return.

The order in which methods are listed within the class is not important.

Java does not permit nesting one method definition within another method’s definition.

Incorrect. Refer to Section 2 Lesson 10.

23. From your Alice lessons, how do you add an instance to a scene in Alice? Mark for Review
(1) Points

Select the instance from your computer’s network.

Write code that places the instance in the scene.

Select the class, then drag the object into the scene. (*)

Call the addObject method.

24. All objects in Alice have three dimensional coordinates on which axes? Mark for Review
(1) Points

(Choose all correct answers)

All of the above

Incorrect. Refer to Section 2 Lesson 2.

25. From your Alice lessons, what is a one-shot procedural method? Mark for Review
(1) Points

A procedure that is invoked when the Run button is clicked.

A procedure that is used to make a scene adjustment. (*)

A procedure that is dragged into the code editor.

A procedure that is used to launch the program.

26. Which of the following Java syntax is used to correctly create a Duke subclass? Mark for Review
(1) Points

private Dog extends World

public class Dog extends World

public class Duke extends Animal (*)

private class extends Actor

private class extends Duke

27. In Greenfoot, a subclass is a specialization of a superclass. True or false? Mark for Review
(1) Points

28. From your Greenfoot lessons, source code is written in the code editor. True or false? Mark for Review
(1) Points

29. In Greenfoot, a variable can be saved and accessed later, even if the instance no longer exists. True or false? Mark for Review
(1) Points

30. What does the following Greenfoot programming statement do?

turn(18); Mark for Review
(1) Points

Turn the object 36 degrees.

Turn the object 18 degrees. (*)

Turn the object 18 steps forward.

Move the object 18 steps forward.

31. In the Greenfoot IDE, which of the following are components of a parameter? Mark for Review
(1) Points

(Choose all correct answers)

Incorrect. Refer to Section 3 Lesson 2.

32. From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? Mark for Review
(1) Points

33. From your Greenfoot lessons, which of the following are examples of abstraction? Mark for Review
(1) Points

(Choose all correct answers)

Playing a range of sounds when keyboard keys are pressed. (*)

A single instance displays a single image.

Assigning a different keyboard key to each instance. (*)

Programming a single movement for a single instance.

Assigning a different image file to each instance. (*)

Incorrect. Refer to Section 3 Lesson 9.

34. Greenfoot does not have tools to record sound. True or false? Mark for Review
(1) Points

35. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points

name of a sound file (as String) (*)

name of an integer (as int)

name of a keyboard key (as String)

name of the class (as String)

Incorrect. Refer to Section 3 Lesson 7.

36. From your Greenfoot lessons, which line of code is missing something?

Mark for Review
(1) Points

Incorrect. Refer to Section 3 Lesson 12.

37. From your Greenfoot lessons, which of the following is an example of changing test data during a Q/A test cycle? Mark for Review
(1) Points

Use a different operating system.

Use the mouse instead of the keyboard.

Use symbols instead of numbers. (*)

All of the above.

Incorrect. Refer to Section 3 Lesson 12.

38. 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
(1) Points

39. Use you Greenfoot knowledge: What range of numbers does the following method return?

Greenfoot.getRandomNumber(30) Mark for Review
(1) Points

A random number between 1 and 30.

A random number between 0 and 30.

A random number between 0 and 29. (*)

A random number between 1 and 29.

Incorrect. Refer to Section 3 Lesson 5.

40. 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
(1) Points

41. From your Greenfoot lessons, a problem statement defines the purpose for your game. True or false? Mark for Review
(1) Points

42. Use your Greenfoot knowledge: An array object holds a single variable. True or false? Mark for Review
(1) Points

43. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 3 Lesson 10.

44. From your Greenfoot lessons, which of the following logic operators represents «and»? Mark for Review
(1) Points

45. Use your Greenfoot knowledge to answer the question. One reason to write a defined method in a class is to change the behavior of the class. True or false? Mark for Review
(1) Points

46. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points

The actor class

47. 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
(1) Points

48. We can use the Actor constructor to automatically create Actor instances when the Greenfoot world is initialized. True or false? Mark for Review
(1) Points

Incorrect. Refer to Section 3 Lesson 8.

49. Use your Greenfoot knowledge to answer the question: Where are defined variables typically entered in a class’s source code? Mark for Review
(1) Points

In the defined method in the source code.

Between the constructors and methods in the source code.

After the constructors and methods in the source code.

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

50. In Greenfoot, we can use the act method in the class to automatically create the Actor instances when the world is initialized. True or false? Mark for Review
(1) Points

Correct
. In Alice, we can avoid object collision using what?
• Slowing movements down.
• Using math operators. (*)
• Downloading the Alice3 collision detector app.
• Using object detection.
2. From your Alice lessons, which of the following are examples of scenarios?
• Conflict and resolution in a play
• Process to simulate
• Process to demonstrate
• Game to play
• All of the above (*)
3. In Alice, which of the following is the most likely situation where procedural abstraction could be used?
• Five dogs all need to bark and run at the same time. (*)
• One fish needs to swim forward 1 meter.
• Two fish say something to each other.
• One person moves up 10 meters.
4. In Alice, objects inherit the characteristics of their:
• Code
• Project
• Class (*)
• Program
5. In Alice, inheritance means that the superclass inherits its traits from the subclass. True or false? True False (*)
6. In Alice, which function is used to move an object directly to the center point of another object?
• getObject
• getDuration
• getDepth
• getDistance (*)
7. Do In Order and Do Together are the only control statements available in Alice. True or false? True False (*)
8. In Alice, once procedures are added to a control statement, they cannot be changed. True or false? True False (*)
9. Which of the following are examples of comments written in an Alice program?
• this.dog move forward 2
• this.cat turn left 0.5
• Boy runs to the girl. (*)
• Cat jumps into the tree and meows for help. (*)
10. In the Alice scene editor, where are the procedures located to precisely position an object?
• Right click on the object, then select Procedures. (*)
• Right click on the object, then select Remove.
• In the gallery of classes.
• In the package located in the gallery.
11. Besides invoking a procedure, another way to precisely position an Alice object is to enter values in the x, y, and z coordinates in the Position property. True or false?
True (*) False
12. Alice objects move relative to the orientation of the person viewing the animation. True or false? True False (*)
13. The value that a variable holds must be a whole number, not a decimal. True or false?
True False (*)

14. Define the value of the variable NumSpins based on the following math calculation:
NumSpins / 3 = 8
• 12 24 (*) 8 NumSpins
15. From your Alice lessons, the «Checklist for Animation Completion» does not ask questions about the scenario and storyboards, because these are not valid parts of the animation creation process. True or false? True False (*)
6. From your Alice lessons, which control statement executes instructions simultaneously?
• Do in order
• Count
• Variable
• Do together (*)
17. In Alice, which of the following instructions roll the Blue Tang fish left 1 meter?
• this.blueTang roll Left 1.0 (*)
• this.blueTang Left 1.0
• this.blueTang Left 1
• this.blueTang roll Left 1

18. How do you copy an Alice procedure?
• Drag the procedure into the clipboard, then click CTRL + C.
• Hold down the control (CTRL) key, then drag the procedure into the clipboard. (*)
• Drag the procedure into the clipboard.
• Select Copy in the Run menu.

19. Expressions with relational operators produce true and false values. True or false? True (*) False
20. In Alice, where are arithmetic operators available?
• Amount argument (*)
• Size argument
• Duration argument (*)
• Get Distance functions (*)
• If control

21. Which of the following is not an example of the logic of an IF control structure?
• Play the video three times. (*)
• If the play button is pressed, then play the video one time.
• If the doorbell rings, then the door opens.
• If the bird rings the bell, a treat is dispensed.

22. The condition in a WHILE loop is a boolean expression. True or false?
True (*) False
23. What Alice tool can be used to diagram the If conditional execution statement?
• Cause and effect diagram
• Process flow diagram (*)
• Conditional flow diagram
24. The Alice If control structure requires the false statement to be populated. True or false? True False (*)
25. A conditional loop is a loop that will continue forever. True or false? True False (*)
26. From your Greenfoot lessons, the reset button resets the scenario back to its initial position. True or false? True (*) False
27. In Greenfoot, a subclass is created by right-clicking on a superclass. True or false?
True (*) False
28. From the Greenfoot IDE, where are inherited methods located?
• In the computer network
• In the Greenfoot image gallery
• In the scene editor

29. What does the following Greenfoot programming statement do? turn(18);
• Turn the object 36 degrees.
• Turn the object 18 degrees. (*)
• Turn the object 18 steps forward.
• Move the object 18 steps forward.
30. In the Greenfoot IDE, which type of variable allows instances to store information?
• Method variable
• Instance variable (*)
• Class variable
• World variable
31. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? True (*) False
32.From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? True False (*)
33. From your Greenfoot lessons, what are the ways that you can view a class’s methods?
• In the scenario
• In the class’s documentation (*)
• By right-clicking on an instance (*)
• In the Greenfoot gallery

34. Use your Greenfoot knowledge: A specification of a method is called a __________________.
• Subclass
• Class
• Signature (*)
• Parameter

35. In Greenfoot, dot notation is used to call a _____________ from another class.
• Method (*)
• Class
• Signature
• Parameter
36. In Greenfoot, defined methods must be used immediately. True or false?
True False (*)
37. From your Greenfoot lessons, how do you call a defined method?
• Call the method from the act method. (*)
• Call the method from the defined method.
• Write the method in the World superclass.
• Write the method in the instance.
• Write the method in the source code.

38. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _____________.
• Class method
• Instance method
• Defined method (*)
• World method
• Code method

39. When a Greenfoot code segment is executed in an if-statement, each line of code is executed in sequential order. True or false? True (*) False
40. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances?
• Animal
• World (*)
• Actor
• Vector

41. From your Greenfoot lessons, when does an if-else statement execute it’s second code segment?
• When a random number is less than 10.
• When an instance is created.
• After the first code segment is executed.
• If a condition is false. (*)
• If a condition is true.

42. From your Greenfoot lessons, which symbol represents string concatenation?
• Symbol &
• Symbol

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

3. 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

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

4. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points

5. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points

[Correct] Correct
6. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

7. From your Greenfoot lessons, the isKeyDown method is located in which class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

8. Which method is used to play sound in your Greenfoot game? Mark for Review
(1) Points

9. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points

10. 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
(1) Points

[Correct] Correct
11. From your Greenfoot lessons, how do you call a defined method? Mark for Review
(1) Points

Write the method in the instance.

Write the method in the documentation.

Call the method from the act method. (*)

Write the method in the Actor class.

Write the method in the World superclass.

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

12. Which one of the following can be used to detect when 2 actors collide? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

13. Use your Greenfoot knowledge to answer the question: String concatenation is a way to avoid having to write additional characters in your source code. True or false? Mark for Review
(1) Points

14. In Greenfoot, arrays are a way to hold and access multiple variables, and assign different values to new instances each time the while loop executes and produces a new instance. True or false? Mark for Review
(1) Points

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
(1) Points

Kunci Jawaban All Quiz Oracle Academy Java Fundamental 2017 Part 6

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

2. Defined methods are methods that are only created by the Greenfoot development team? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

3. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points

The actor class

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

4. Use your Greenfoot knowledge: An array object holds a single variable. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

5. If an end to a while loop is not established, what happens? Mark for Review
(1) Points

The code stops after 10 executions.

The condition becomes false after one minute of executions.

The code stops after 20 executions.

The code executes and does not stop. (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
6. In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

7. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points

8. In Java what is casting? Mark for Review
(1) Points

Casting is not possible in Java.

When you reset an object instance.

When you remove an object instance.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

9. From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used? Mark for Review
(1) Points

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

Adding a property to an instance

Adding a property to a Class

Initialising a variable

10. In Greenfoot what command would you use to detect if a mouse has been clicked on an actor? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
11. In Greenfoot, which method checks if a key on the keyboard has been pressed? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

12. Greenfoot has tools to record sound. True or false? Mark for Review
(1) Points

13. Which class holds the method that ends a Greenfoot game? Mark for Review
(1) Points

14. What does the following programming statement mean?

image1 = new GreenfootImage(«duke12.png»); Mark for Review
(1) Points

The image file, duke12.png, is assigned to the variable image1. (*)

The variable, image1, cannot use the image file, duke12.png.

The image file, duke12.png, has just been drawn and imported into the scenario.

Image files from 1-119 are associated with image1.

15. We can use the Actor constructor to automatically create Actor instances when the Greenfoot world is initialized. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
1. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

2. In Greenfoot, which of the following are execution controls? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

3. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class’s act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points

4. 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

Creation of source code

Editing of source code

5. In Greenfoot, the move method expects what type of information in its parameters? Mark for Review
(1) Points

Degrees to turn

Integer of steps to move forward (*)

True or false response

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

6. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points

Import an image

Select an image from the Greenfoot library

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

7. A variable is also known as a ____________. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

8. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

9. From your Greenfoot lessons, Which of the following statements is most correct? Mark for Review
(1) Points

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

My program is complete when I add music to it.

My program is complete when I add images to it.

My program is complete when it compiles.

10. From your Greenfoot lessons, which of the following methods return the current rotation of the object? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
11. The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed? Mark for Review
(1) Points

Write and edit comments.

Write source code to tell the class how to act in the scenario.

Review the online Java Library documentation. (*)

Write and edit source code.

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

12. Which keyword indicates that Greenfoot needs to create a new object? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

13. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

14. Which of the following comparison symbols represents equals? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

15. In Greenfoot, you can use comparison operators to compare a variable to a random number. True or false? Mark for Review
(1) Points

[Correct] Correct
1. Which actor method is used to detect a simple collision? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

2. 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
(1) Points

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

4. Which Greenfoot control operator is used to test if two values are equal? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

5. Greenfoot Actor instances get their images from which of the following? Mark for Review
(1) Points

Their source code

Their image editor

6. In Greenfoot, we typically use the act method in the class to automatically create the Actor instances when the world is initialized. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

7. From your Greenfoot lessons, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

(Choose all correct answers)

8. Which of the following is not a component of a while loop? Mark for Review
(1) Points

9. In Greenfoot, when is a local variable most often used? Mark for Review
(1) Points

Within the world constructor

Within the act method

Within loop constructs (*)

Within the scenario

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

10. In Java what is casting? Mark for Review
(1) Points

When you reset an object instance.

Casting is not possible in Java.

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

When you remove an object instance.

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

11. From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

12. In Greenfoot, you can cast an Actor class to a World class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

13. In Greenfoot, you can only interact with the scenario using a keyboard. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

14. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

15. 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
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
1. In computing, a textual storyboard is called a source code: a list of actions to perform a task or solve a problem. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 1.

2. In Alice, which of the following programming statements moves the cat backward, half the distance to the bird? Mark for Review
(1) Points

Expressions with relational operators produce true and false values. True or false?

Mark for Review
(1) Points
True (*)
False

4. A typical application uses various values and these values continuously change while the program is running. True or false? Mark for Review
(1) Points

5. In Alice, which of the following are benefits of separating out motions into their own procedures? Mark for Review
(1) Points

(Choose all correct answers)

It makes the animation easier to run.

It makes the scene easier to view.

It simplifies code and makes it easier to read. (*)

It allows many objects of a class to use the same procedure. (*)

It can allow subclasses of a superclass to use a procedure. (*)

[Correct] Correct
Section 2

6. In Alice, procedural abstraction is the concept of making code easier to understand and reuse. True or false? Mark for Review
(1) Points

7. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit the procedure. True or false? Mark for Review
(1) Points

8. From your Alice lessons, variables are fixed and cannot be changed. True or false? Mark for Review
(1) Points

9. From your Alice lessons, what can be used as a guideline to ensure your animation fulfills animation principles? Mark for Review
(1) Points

None of the above

10. From your Alice lessons, number, boolean, String and object are all examples of variable types. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 8.

11. Which of the following is not an example of the logic of an IF control structure? Mark for Review
(1) Points

Play the video three times. (*)

If the play button is pressed, then play the video one time.

If the doorbell rings, then the door opens.

If the bird rings the bell, a treat is dispensed.

12. Main is an example of what in the following code?
public static void main (String[] args) <
System.out.println<"Hello World!");
> Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 10.

13. A complete Alice instruction includes which of the following components? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 2 Lesson 3.

14. In Alice, which of the following instructions roll the Blue Tang fish left 1 meter? Mark for Review
(1) Points

this.blueTang roll Left 1.0 (*)

this.blueTang Left 1.0

this.blueTang Left 1

this.blueTang roll Left 1

15. From your Alice lessons, random numbers are set in the distance and duration arguments in a procedure. True or false? Mark for Review
(1) Points

16. From your Alice lessons, what is a one-shot procedural method? Mark for Review
(1) Points

A procedure that is invoked when the Run button is clicked.

A procedure that is used to make a scene adjustment. (*)

A procedure that is dragged into the code editor.

A procedure that is used to launch the program.

17. From your Alice lessons, an instance’s properties cannot be modified. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 2.

18. From your Alice lessons, saving multiple versions of an Alice animation scene is unimportant, because it does not save time. It actually wastes time. True or false? Mark for Review
(1) Points

19. What Alice tool can be used to diagram the If conditional execution statement? Mark for Review
(1) Points

Cause and effect diagram

Process flow diagram (*)

Conditional flow diagram

[Incorrect] Incorrect. Refer to Section 2 Lesson 6.

20. From your Alice lessons, the If control structure can process one true and one false response. True or false? Mark for Review
(1) Points

21. The Alice If control structure requires the false statement to be populated. True or false? Mark for Review
(1) Points

22. In Alice, which of the following arguments are available to further refine an object’s movements? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 2 Lesson 5.

23. From your Alice lessons, where should comments be placed? Mark for Review
(1) Points

Above each set of programming statements. (*)

At the end of the program.

In the scene editor.

In their own procedure.

24. In Alice, once procedures are added to a control statement, they cannot be changed. True or false? Mark for Review
(1) Points

25. In Alice, functions are dragged into the control statement, not the procedure. True or false? Mark for Review
(1) Points

26. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points

A dog is a subclass of the cat superclass.

A rose is a subclass of the flower superclass. (*)

A computer is a subclass of a video game superclass.

A single person is a superclass of the human subclass.

27. In Greenfoot, which of the following are execution controls? Mark for Review
(1) Points

(Choose all correct answers)

28. In a Greenfoot if-else statement, if the condition is true, the if-statement is executed, and then the else-statement is executed. True or false? Mark for Review
(1) Points

29. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

30. 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
(1) Points

Test: Java Fundamentals Mid Term Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 3

31. From your Greenfoot lessons, how do you test that your code does not contain bugs? Mark for Review
(1) Points

Inspect the instances.

Review the documentation.

Compile the code. (*)

32. From your Greenfoot lessons, which line of code is missing something?

Mark for Review
(1) Points

33. In Greenfoot, you may perform the programming tasks of create and test many times. True or false? Mark for Review
(1) Points

34. Greenfoot does not have tools to record sound. True or false? Mark for Review
(1) Points

35. In Greenfoot, which method checks if a key on the keyboard has been pressed? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

36. In Greenfoot, actor constructors can be used to create images or values and assign them to the variables. True or false? Mark for Review
(1) Points

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

39. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

40. In Greenfoot, what is a common letter used for the loop variable? Mark for Review
(1) Points

41. In Greenfoot, which of the following statements could prevent an infinite loop from occurring? Mark for Review
(1) Points

42. Use your Greenfoot knowledge to answer the question. One reason to write a defined method in a class is to change the behavior of the class. True or false? Mark for Review
(1) Points

43. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points

The actor class

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

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

45. In the Greenfoot IDE, which of the following is not a property of an instance? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
Section 3

46. What does the following Greenfoot programming statement do?

turn(18); Mark for Review
(1) Points

Turn the object 36 degrees.

Turn the object 18 degrees. (*)

Turn the object 18 steps forward.

Move the object 18 steps forward.

47. What type of Greenfoot method would be used to turn an object? Mark for Review
(1) Points

48. From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

49. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points

50. In Greenfoot, what happens if the condition is false in an if-statement? Mark for Review
(1) Points

The programming statements are executed.

The if-statement is executed.

The act method is deleted.

The programming statements are not executed. (*)

[Correct] Correct
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
(1) Points
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
(1) Points
Creation of an instance
Creation of source code
Editing of source code
Compilation (*)

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

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

7. In Greenfoot, the move method expects what type of information in its parameters? Mark for Review
(1) Points
Degrees to turn
Integer of steps to move forward (*)
True or false response
String statement

8. A variable is also known as a ____________. Mark for Review
(1) Points
Instance
Syntax
Field (*)
Method
Class

9. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)

10. From your Greenfoot lessons, when does an if-else statement execute it’s second code segment? Mark for Review
(1) Points
If a condition is true.
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
(1) Points
Method-name.object-name(parameters);
Method-name.object-name;
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
(1) Points
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
(1) Points
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.
Correct Correct

14. From your Greenfoot lessons, where do you review a class’s inherited methods? Mark for Review
(1) Points
Inspector
Act method
If-statement
Documentation (*)

15. The list below displays components of the Greenfoot source code editor except one. Which one should be removed? Mark for Review
(1) Points
Class description
Comments
Instance creator (*)
Documentation
Method body

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

2. From your Greenfoot lessons, where do you review a class’s inherited methods? Mark for Review
(1) Points
Act method
Inspector
Documentation (*)
If-statement

3. In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review
(1) Points
Parameter void
True or false response
Integer of steps to move forward
Degrees to turn (*)
String statement

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
(1) Points
True (*)
False

5. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)

6. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)

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
(1) Points
True
False (*)

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
(1) Points
True
False (*)

9. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points
Has no return type.
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.

Kunci Jawaban All Quiz Oracle Academy Java Fundamental 2017 Part 11

In greenfoot which of the following methods return the world that the instance lives in. Смотреть фото In greenfoot which of the following methods return the world that the instance lives in. Смотреть картинку In greenfoot which of the following methods return the world that the instance lives in. Картинка про In greenfoot which of the following methods return the world that the instance lives in. Фото In greenfoot which of the following methods return the world that the instance lives in

1. The Alice If control structure requires the false statement to be populated. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 8.

2. A conditional loop is a loop that will continue forever. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 8.

3. Identify an example of an Alice expression. Mark for Review
(1) Points

None of the above

[Incorrect] Incorrect. Refer to Section 2 Lesson 9.

4. In Alice, which of the following programming statements moves the cat forward the distance to the bird? Mark for Review
(1) Points

this.Bird move forward

[Incorrect] Incorrect. Refer to Section 2 Lesson 9.

5. If a value has been assigned to (is stored in) a variable, that value will be overwritten when another value is assigned to the variable using the assignment «=» operator. True or false? Mark for Review
(1) Points

[Correct] Correct
6. What is the result of the following code?

Mark for Review
(1) Points

x > y : 0
x y : false
x y : x > y
x y : 1
x y : true
x

9. In Greenfoot, constructors can be used to create new instances of objects. True or false? Mark for Review
(1) Points

10. Writing more generic statements to handle the creation and positioning of many objects is one Abstraction technique? Mark for Review
(1) Points

11. In Java what is casting? Mark for Review
(1) Points

When you remove an object instance.

Casting is not possible in Java.

When you reset an object instance.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

12. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points

13. In Greenfoot, which of the following statements could prevent an infinite loop from occurring? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

14. Which of the following Greenfoot logic operators represents «not»? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

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

Only in while loops.

When the loop is executed.

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

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

1. Defining the scenario, and the Alice animation to represent the scenario, is the first step to programming your animation. True or false? Mark for Review
(1) Points

2. In Alice, if a procedure is declared for a clownFish class, which classes can use the procedure? Mark for Review
(1) Points

Any class with «Fish» in the class name

The clownFish class and Swimmer class

The pajamaFish class, clownFish class, and Swimmer class

[Incorrect] Incorrect. Refer to Section 2 Lesson 5.

3. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit the procedure. True or false? Mark for Review
(1) Points

4. In an Alice program, which code is executed when the Run button is clicked? Mark for Review
(1) Points

The one-shot procedures selected in the Scene editor.

The code entered in myFirstMethod in the Code editor. (*)

The code entered in myMethod in the Code editor.

The code entered in the class’s procedure in the procedures tab.

[Incorrect] Incorrect. Refer to Section 2 Lesson 3.

5. The say procedure in Alice plays an audio file. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 3.
6. The Alice move procedure contains which arguments? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 2 Lesson 3.

7. Which Alice control statement executes a set of procedures simultaneously? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 4.

8. Which of the following is an example of nesting in an Alice program? Mark for Review
(1) Points

Text is nested inside of a comments tile.

Five Do Together statements are nested inside of a Do In Order statement. (*)

A move procedure is nested inside of a turn procedure.

Distance, duration, and direction arguments are nested inside of a procedure.

[Incorrect] Incorrect. Refer to Section 2 Lesson 4.

9. Which handle style would be used to rotate an object’s sub-part about the x, y, and z axes? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 2.

10. Rings will appear around a sub-part indicating how you can reposition it. True or false? Mark for Review
(1) Points

[Correct] Correct
11. How do you view the results of procedures entered in the Alice code editor? Mark for Review
(1) Points

View the procedures in the gallery.

Select the Run button. (*)

Select the Play button.

[Incorrect] Incorrect. Refer to Section 2 Lesson 1.

12. In Alice, a walking motion for a bipedal object can be achieved without the Do Together control statement. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 2 Lesson 6.

13. In Alice, when two objects are synchronized and move together, this means that one object is: Mark for Review
(1) Points

A vehicle of another (*)

An instance of another

A class of another

An object of another

14. In Alice, when using the getDistanceTo function what menu option would you use to subtract a set value from the distance? Mark for Review
(1) Points

Whole to decimal number

[Incorrect] Incorrect. Refer to Section 2 Lesson 7.

15. From your Alice lessons, built-in functions provide precise property details for the following areas: Mark for Review
(1) Points

Proximity and size.

Proximity and point of view.

Proximity, size, spatial relation, and point of view. (*)

Distance to and nesting.

[Incorrect] Incorrect. Refer to Section 2 Lesson 7.

1. In the Greenfoot IDE, an instance’s position is on the x and y coordinates. True or false? Mark for Review
(1) Points

2. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

3. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

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
(1) Points

5. In Greenfoot, which of the following methods display an object’s orientation? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
6. From your Greenfoot lessons, where do you review a class’s inherited methods? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

7. From your Greenfoot lessons, which of the following is not a step to creating a new subclass? Mark for Review
(1) Points

Click New subclass.

Program the class to move forward. (*)

Right-click on a superclass.

Select an image for the class.

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

8. An object is an instance of a class. True or false? Mark for Review
(1) Points

9. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points

A dog is a subclass of the cat superclass.

A computer is a subclass of a video game superclass.

A rose is a subclass of the flower superclass. (*)

A single person is a superclass of the human subclass.

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

10. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
11. From your Greenfoot lessons, Which of the following statements is most correct? Mark for Review
(1) Points

My program is complete when I add images to it.

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 it compiles.

[Incorrect] Incorrect. Refer to Section 3 Lesson 4.

12. In Greenfoot, which keyword calls the World superclass? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

13. From your Greenfoot lessons, which axes define an object’s position in a world? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

14. Which keyword indicates that Greenfoot needs to create a new object? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

15. The Greenfoot method getRandomNumber is used to create predictable behaviour in your scenario Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
1. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _____________. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

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

4. In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

5. Which of the following is an example of string concatenation? Mark for Review
(1) Points

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.

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
6. 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) Points

7. In Greenfoot what command would you use to detect if a mouse has been clicked on an actor? Mark for Review
(1) Points

8. You cannot record unique sounds in Greenfoot. You can only use the sounds that are stored in the Greenfoot library. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

9. Greenfoot has tools to record sound. True or false? Mark for Review
(1) Points

10. In Greenfoot, actor constructors can be used to create images or values and assign them to the variables. True or false? Mark for Review
(1) Points

11. What does the following programming statement mean?

image1 = new GreenfootImage(«duke12.png»); Mark for Review
(1) Points

The variable, image1, cannot use the image file, duke12.png.

The image file, duke12.png, has just been drawn and imported into the scenario.

The image file, duke12.png, is assigned to the variable image1. (*)

Image files from 1-119 are associated with image1.

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

12. Using Greenfoot, how do we change the size and resolution of the World instance? Mark for Review
(1) Points

Edit the methods in the class.

Delete the instance.

Edit the values in the class’s act method.

Edit the values in the constructor. (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

14. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points

15. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
1. In Greenfoot, which of the following methods display an object’s orientation? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

3. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points

Has the same name as the name of the class.

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

Defines the instance’s size and resolution.

Has no return type.

Has a void return type. (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

4. From your Greenfoot lessons, which of the following comparison operators represents «greater than»? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

5. Which of the following comparison symbols represents equals? Mark for Review
(1) Points

6. In Greenfoot, you can use comparison operators to compare a variable to a random number. True or false? Mark for Review
(1) Points

7. In Greenfoot, the turn 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

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

8. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

9. 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

10. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points

Import an image

Select an image from the Greenfoot library

[Correct] Correct
11. When designing a game in Greenfoot, it helps to define the actions that will take place in a textual storyboard. True or false? Mark for Review
(1) Points

12. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

13. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

14. From your Greenfoot lessons, the reset button resets the scenario back to its initial position. True or false? Mark for Review
(1) Points

15. 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

Creation of source code

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
1. 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

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

Defines which class the variable is associated with.

Defines the instance that the variable is associated with.

Defines the access specifier used with the variable.

3. 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.

The image file, duke12.png, is assigned to the variable image1. (*)

The variable, image1, cannot use the image file, duke12.png.

Image files from 1-119 are associated with image1.

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

4. In Greenfoot, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

5. Which of the following is not a component of a while loop? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
6. From your Greenfoot lessons, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

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

Write the method in the instance.

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 Actor class.

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

8. Which one of the following can be used to detect when 2 actors collide? Mark for Review
(1) Points

9. 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
(1) Points

10. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points

name of the class (as String)

name of an integer (as int)

name of a keyboard key (as String)

name of a sound file (as String) (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
11. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points

12. In Greenfoot, which method would you use to obtain input from the user? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

13. 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
(1) Points

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

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

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

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

14. From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used? Mark for Review
(1) Points

Adding a property to a Class

Adding a property to an instance

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

Initialising a variable

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

15. In Greenfoot, you can cast an Actor class to a World class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
1. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points

2. Which of the following Java syntax is used to correctly create a Bee subclass? Mark for Review
(1) Points

private class extends Bee

public class Bee extends World

private class extends Actor

private Bee extends World

public class Bee extends Animal (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

3. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points

4. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points

A rose is a subclass of the flower superclass. (*)

A computer is a subclass of a video game superclass.

A dog is a subclass of the cat superclass.

A single person is a superclass of the human subclass.

5. From your Greenfoot lessons, what are the ways that you can view a class’s methods? Mark for Review
(1) Points

(Choose all correct answers)

In the Greenfoot gallery

In the scenario

By right-clicking on an instance (*)

In the class’s documentation (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
6. The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed? Mark for Review
(1) Points

Write and edit source code.

Review the online Java Library documentation. (*)

Write and edit comments.

Write source code to tell the class how to act in the scenario.

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

7. When a program is tested once and it works then testing is complete. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 4.

8. 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
(1) Points

9. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

10. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
11. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points

Import an image

Select an image from the Greenfoot library

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

12. Which of the following comparison operators represents «greater than or equal»? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

13. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points

Has no return type.

Has a void return type. (*)

Defines the instance’s size and resolution.

Has the same name as the name of the class.

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

14. In Greenfoot, a semicolon is not necessary at the end of a method that uses dot notation. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

15. From your Greenfoot lessons, which axes define an object’s position in a world? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
1. In Greenfoot, constructors can be used to create new instances of objects. True or false? Mark for Review
(1) Points

2. Which Greenfoot control operator is used to test if two values are equal? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

3. From your Greenfoot lessons, what is the parameter of the following constructor that creates a new image, and designates it to the Actor class?

setImage (new GreenfootImage(«Bee01.png»)); Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 8.

4. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points

5. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
6. Greenfoot has tools to record sound. True or false? Mark for Review
(1) Points

7. From your Greenfoot lessons, what types of values cannot be stored in a local variable? Mark for Review
(1) Points

(Choose all correct answers)

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

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

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 either one of the operands is 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.

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

9. Which of the following Greenfoot logic operators represents «not»? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.

10. From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
11. Writing more generic statements to handle the creation and positioning of many objects is one Abstraction technique? Mark for Review
(1) Points

12. In Java what is casting? Mark for Review
(1) Points

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

13. Defined methods are methods that are only created by the Greenfoot development team? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

14. In Greenfoot, which of the following statement is true about Defined Methods? Mark for Review
(1) Points

A defined method is automatically executed once created.

A defined method is only relevant to the Greenfoot Development team.

A defined method must be called by your source code, normally in the Act method. (*)

A defined method only relates to the World class.

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

15. 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
(1) Points

[Correct] Correct
1. From your Greenfoot lessons, a problem statement defines the purpose for your game. True or false? Mark for Review
(1) Points

2. From your Greenfoot lessons, what are the ways that you can view a class’s methods? Mark for Review
(1) Points

(Choose all correct answers)

In the Greenfoot gallery

In the scenario

In the class’s documentation (*)

By right-clicking on an instance (*)

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

3. From your Greenfoot lessons, where do you review a class’s inherited methods? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 3.

4. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

5. Which of the following comparison symbols represents equals? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

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

public static int getRandomNumber (int limit) Mark for Review
(1) Points

Returns a random number less than 10.

Returns a random coordinate position in the world.

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

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

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

7. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 5.

8. In Greenfoot, a subclass is created by right-clicking on a superclass. True or false? Mark for Review
(1) Points

9. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points

A computer is a subclass of a video game superclass.

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.

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.

10. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
11. An object is an instance of a class. True or false? Mark for Review
(1) Points

12. In Greenfoot, the move method expects what type of information in its parameters? Mark for Review
(1) Points

Integer of steps to move forward (*)

True or false response

Degrees to turn

13. In the Greenfoot IDE, an instance’s position is on the x and y coordinates. True or false? Mark for Review
(1) Points

14. A variable is also known as a ____________. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 2.

15. 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
(1) Points

[Correct] Correct
1. In Greenfoot, you can cast an Actor class to a World class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

2. From your Greenfoot lessons, abstraction techniques can only be used once in a class’s source code. True or false? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

3. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 9.

4. Which method is used to play sound in your Greenfoot game? Mark for Review
(1) Points

5. From your Greenfoot lessons, the isKeyDown method is located in which class? Mark for Review
(1) Points

[Correct] Correct
6. In Greenfoot, what type of parameter does the isKeyDown method expect? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 7.

7. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _____________. Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

8. 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
(1) Points

9. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points

The actor class

[Incorrect] Incorrect. Refer to Section 3 Lesson 6.

10. In the Greenfoot IDE, what symbols indicate that the variable is an array? Mark for Review
(1) Points

[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
11. Which of the following is not a component of a while loop? Mark for Review
(1) Points

12. In Greenfoot, what happens if the end to a while loop isn’t established? Mark for Review
(1) Points

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

The code will prompt you to enter a loop counter.

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

The code will not execute.

13. From your Greenfoot lessons, what is the parameter of the following constructor that creates a new image, and designates it to the Actor class?

setImage (new GreenfootImage(«Bee01.png»)); Mark for Review
(1) Points

14. Which operator is used to test if values are equal? Mark for Review
(1) Points

Источники информации:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *