Professional Documents
Culture Documents
Correct
False
Correct
Section 1
(Answer all questions in this section)
1. From your Greenfoot lessons, which of the following are examples of actions that
can be achieved using the while loop? Mark for Review
(1) Points
Create 50 instances of the Duke class.
Correct
Control operator
Loop variable
if statement (*)
while keyword
Correct
False
Correct
6. 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 Mark for Review
a new instance. True or false? (1) Points
True (*)
False
Correct
&&
! (*)
8. 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 both of its operands are true. (*)
Compares two boolean values, and returns a boolean value which is true if
and only if one of its operands are true.
Compares two boolean values and returns a boolean value which is true if
either one of the operands is true.
Compares two boolean variables or expressions and returns a result that is
true if either of its operands are true.
Correct
False (*)
Objects
Integers
World name
Method (*)
False
Correct