Kamis, 16 November 2017

Java Fundamental Section 3 L1-L5

1.  From your Greenfoot lessons, the reset button resets the scenario back to its initial position. True or false?
True (*)
2.  What does an instance of the World class do?
Provide the background scenery for the scenario. (*)
3.  In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario?
Compilation (*)
4.  Which of the following Java syntax is used to correctly create a Bee subclass?
public class Bee extends Animal (*)
5.  From your Greenfoot lessons, what can methods belong to?
(Choose all correct answers)
Classes (*)
Objects (*)
6.  Which keyword indicates that Greenfoot needs to create a new object?
new (*)
7.  The first step to executing an if-else statement is to:____________.
Evaluate the condition (*)
8.  In Greenfoot you can use comparison operators to compare a variable to a random number. True or false?
True (*)
9.  In the Greenfoot IDE, an instance's position is on the x and y coordinates. True or false?
True (*)
10.  In Greenfoot, the body of the method is located in between which of the following characters?
Curly brackets { } (*)
11.  An instance variable can be saved and accessed later, even if the instance no longer exists. True or false?
False (*)
12.  In Greenfoot, the instance has a source code editor. True or false?
False (*)
13.  When designing a game in Greenfoot, it helps to define the actions that will take place in a textual storyboard. True or false?
True (*)
14.  The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed?
Review the online Java Library documentation. (*)
15.  In a Greenfoot if-statement, the programming statements that the if-statement executes are written in curly brackets. True or false?
True (*)

Tidak ada komentar:

Posting Komentar