Kunci Java
Kunci Java
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 2
(Answer all questions in this section)
True
False (*)
Incorrect. Refer to Section 2 Lesson 4.
2. In Alice, the procedures' arguments allow the programmer to adjust the obje
True (*)
False
Correct
3. In Alice, Do In Order and Do Together:
True
False (*)
Correct
5. Which of the following statements about methods is false?
while loop
if (*)
array
boolean
Correct
True
False (*)
Correct
True
False (*)
Code
Project
Class (*)
Program
Correct
Page 2 of 10
Section 2
(Answer all questions in this section)
True (*)
False
Correct
12. An Alice event is considered what?
13. In Alice, functions are dragged into the control statement, not the
True
False (*)
Correct
14. Which of the following is not a relational operator?
<
// (*)
>
=
Correct
+
/
*
%
None of the above (*)
Correct
Page 3 of 10
16. In Alice, each class has a set of pre-defined procedures and functi
True (*)
False
True (*)
False
Correct
18. From your Alice lessons, what is a one-shot procedural method?
True (*)
False
Correct
22. From your Alice lessons, variables are fixed and cannot be chang
True
False (*)
Correct
Section 3
(Answer all questions in this section)
24. Use your Greenfoot knowledge to answer the question: String con
True (*)
False
Correct
25. From your Greenfoot lessons, which symbol represents string con
Symbol &
Symbol <
Symbol =
Symbol + (*)
Correct
Page 5 of 10
26. From your Greenfoot lessons, which of the following logic opera
&
&& (*)
=
!
Correct
27. From your Greenfoot lessons, what types of values cannot be stor
28. From your Greenfoot lessons, which of the following is not a step
Right-click on a superclass.
Click New subclass...
Name the class.
Select an image for the class.
29. In Greenfoot, you must first create an instance before you create a
True
False (*)
30. From your Greenfoot lessons, how do you test that your code doe
True (*)
False
Correct
32. From your Greenfoot lessons, what can methods belong to?
34. From your Greenfoot lessons, dot notation allows you to use a me
True (*)
False
Correct
35. Use you Greenfoot knowledge: What range of numbers does the f
Greenfoot.getRandomNumber(30)
36. From your Greenfoot lessons, which of the following are exampl
Methods
Classes
Integers (*)
Scenarios
Correct
38. From your Greenfoot lessons, which of the following are properti
Size
Color
Image file
Methods
All of the above (*)
Correct
Position
Inherited methods
Scenario name (*)
Defined methods
Correct
Section 3
(Answer all questions in this section)
True (*)
False
Correct
World getClass()
World getWorld()
int getRotation() (*)
getXY()
Correct
43. From your Greenfoot lessons, how do you call a defined method?
44. From your Greenfoot lessons, to save space in the act method, yo
Class method
Instance method
Defined method (*)
World method
Code method
Correct
True
False (*)
addClass
addWorld
addObject (*)
addInstance
Incorrect. Refer to Section 3 Lesson 8.
47. Greenfoot Actor instances get their images from which of the following?
Method
Conditional (*)
Variable Assignment
Class
Correct
49. In Greenfoot, dot notation is used to call a _____________ from another class
Method (*)
Class
Signature
Parameter
Correct
50. Use your Greenfoot skills to answer the question. What is incorrect in this cod
Spacing missing
Curly brace missing
Parenthesis missing (*)
Comma missing
Correct
Page 10 of 10