Quizzz
Quizzz
Quizzz
Mark
for Review
Together
Do together (*)
Do in order
While
2. Which Alice execution task corresponds with the following storyboard statemen
t?
Cat rolls to the left.
Mark for Review
roll Left 1
this.Cat roll Left 1.0 (*)
Cat roll Left 1
Cat roll Right 1
Correct
3. In Alice, control statements are dragged into the Code editor. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
4. In Alice, the while control statement executes a set of procedures a specific
number of times.
True or false?
Mark for Review
(1) Points
True
False (*)
Correct
5. In Alice, the computer specifies the low and high range values for the range
of numbers from
which to pull a randomized number. True or false?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 4.
6. In Alice, which of the following arguments could be replaced with a random nu
mber? Mark for Review
(1) Points
(Choose all correct answers)
Distance (*)
Object name
Duration (*)
Direction
Procedure name
1. In Alice, which of the following is not a control statement? Mark for Review
(1) Points
Do In Order
While
Count
Move (*)
Incorrect. Refer to Section 2 Lesson 6.
2. In Alice, which control statement is used to invoke simultaneous movement? Ma
rk for Review
(1) Points
Do Together (*)
Do In Order
While
Count
Variable
Incorrect. Refer to Section 2 Lesson 6.
3. In Alice, a walking motion for a bipedal object
o Together control
statement. True or false?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 6.
4. In Alice, different programming is not required
e all objects move
the same way. True or false?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 6.
5. In Alice, when two objects are synchronized and
t one object is: Mark for Review
(1) Points
A vehicle of another (*)
A class of another
An object of another
An instance of another
Incorrect. Refer to Section 2 Lesson 6.
6. In Alice, which procedure is used to assign one
her? Mark for Review
(1) Points
setClassVehicle
setObjectVehicle
setVehicle (*)
Vehicle
Correc
1. In Alice, where can you view the list of functions available for an object? M
ark for Review
(1) Points
Class description in the Scene editor.
Functions tab in the methods panel. (*)
Instance pull-down menu.
Properties tab in the methods panel.
Correct
2. In Alice, functions ask questions about an object. True or false? Mark for Re
view
(1) Points
True
False (*)
Correct
In Alice, the If control structure can process one true and one false response.
True or false? Mark for Review
(1) Points
True (*)
False
Correct
Correct
2. The initializer of a variable with a TextString value type could be (select a
ll that apply): Mark for Review
(1) Points
(Choose all correct answers)
"Greetings" (*)
"Howdy" (*)
"4" (*)
None of the above.
With keyboard controls, you can create Alice animations where the user controls
an object that
interacts with other objects. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
2. Event listeners look for and resopnd to the interactivity of the computer. Tr
ue or false? Mark for Review
(1) Points
True
False (*)
As the Alice programmer, you render the animation on your own. True or false? Ma
rk for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 12.
2. In Alice, what are the forms of a scenario? Mark for Review
(1) Points
(Choose all correct answers)
A section of code to write.
A problem to solve. (*)
A task to perform. (*)
A person to help.
A system to start.
Incorrect. Refer to Section 2 Lesson 12.
3. What can be used as a guideline to ensure your Alice animation fulfills anima
tion principles? Mark for Review
(1) Points
The Internet
An animation checklist (*)
A close friend
Other programmers
Correct
4. The animation checklist helps you confirm that all elements of the Alice anim
ation are operating
as expected. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
5. Which of the following elements of the Alice animation should be tested befor
e the animation is
considered complete?
Mark for Review
(1) Points
Quadruped class
Incorrect. Refer to Section 2 Lesson 12.
9. When presenting your Alice animation, ensure that your presentation is thorou
ghly tested and
complete. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
10. When presenting your Alice animation, it is not important to give the audien
ce a reason to listen
to the presentation. True or false?
Mark for Review
(1) Points
True
False (*)
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 met
hod once.
(*)
The instance executes all of the programming statements in their class's act met
hod
repeatedly until the scenario is stopped.
The instance executes all of the programming statements in their class's act met
hod two
times until the scenario is stopped.
The class executes all of the programming statements in their instance's act met
hod two
times until the scenario is stopped.
Incorrect. Refer to Section 3 Lesson 1.
2. In Greenfoot, the Run button repeatedly executes all of the programming state
ments inthe
class's act method in sequential order until the pause button is clicked. True o
r false?
Mark for Review
(1) Points
True (*)
False
Correct
3. An object is an instance of a class. True or false? Mark for Review
(1) Points
True (*)
False
Correct
4. 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
Correct
5. A subclass has what kind of relationship to a superclass? Mark for Review
(1) Points
"for-what"
"a-is"
"is-a" (*)
"is-by"
Incorrect. Refer to Section 3 Lesson 1.
6. What does an instance of the World class do? Mark for Review
(1) Points
Provide the acting objects for the scenario.
Provide the background scenery for the scenario. (*)
Provide the superclass for acting objects.
Provide the source code for instances.
Correct
7. 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
Compilation (*)
Creation of source code
Editing of source code
http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.jsp?Init=Y
1 of 2 3/27/2015 5:51 AM
Correct
8. In Greenfoot, after a subclass is created and compiled, you cannot edit the s
ubclass's source
code. True or false?
Mark for Review
(1) Points
True
False (*)
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
String statement
Integer of steps to move forward (*)
Incorrect. Refer to Section 3 Lesson 2.
2. In Greenfoot, the turn method expects what type of information in its paramet
ers? Mark for Review
(1) Points
Degrees to turn (*)
True or false response
String statement
Integer of steps to move forward
Parameter void
Incorrect. Refer to Section 3 Lesson 2.
3. Using the Greenfoot IDE, only five instances can be added to a scenario. True
or false? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 3 Lesson 2.
4. In Greenfoot, the instance has a source code editor. True or false? Mark for
Review
(1) Points
True
False (*)
False
Correct
5. An if-else statement executes its first code block if a condition is true, an
d its second code block
if a condition is false, but not both. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
6. The first step to executing an if-else statement is to:____________. Mark for
Review
(1) Points
Execute the if statement
Execute the else statement
Evaluate the class
Evaluate the condition (*)
Incorrect. Refer to Section 3 Lesson 5.
7. The list below displays characteristics of a Greenfoot world constructor, exc
ept for one. Which
one should be removed?
Mark for Review
(1) Points
Defines the instance's size and resolution.
Has a void return type. (*)
Has no return type.
Has the same name as the name of the class.
Executed automatically when a new instance of the class is created.
Incorrect. Refer to Section 3 Lesson 5.
http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.jsp?Init=Y
1 of 2 3/27/2015 5:59 AM
8. In Greenfoot, which keyword calls the World superclass? Mark for Review
(1) Points
world
constructor
super (*)
addObject
new
Correct
9. In Greenfoot, which of the following is the correct notation for calling a me
thod foran instance
of a class?
Mark for Review
(1) Points
object-name.method-name(parameters); (*)
class-name.method-name(parameters);
Method-name.object-name(parameters);
Method-name.object-name;
Correct
10. 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
True
False (*)
Incorrect. Refer to Section 3 Lesson 5.
11. In Greenfoot, the origin of the world coordinate system (0,0) starts in the
center ofthe world.
True or false?
(1) Points
world(300, 300, 2);
Super(300,300,2);
super(2,300,300);
super(300,300,2); (*)
Incorrect. Refer to Section 3 Lesson 8.
2. A constructor is executed once in the course of a Greenfoot scenario. True or
false? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 3 Lesson 8.
3. Which of the following Greenfoot programming statements creates a new instanc
e of Duke, and
places him at x = 140, y = 130 in the world?
Mark for Review
(1) Points
addObject(new( ), 140, 130);
addObject(new Duke( ), 140, 130); (*)
new(addObject(Duke ), 140, 130);
new(Duke( ) 140, 130);
Correct
4. Which keyword is used to add an actor to a Greenfoot world? Mark for Review
(1) Points
addObject
add
new (*)
super
Incorrect. Refer to Section 3 Lesson 8.
5. Which of the following is the correct syntax for declaring a variable in Gree
nfoot? Mark for Review
(1) Points
(Choose all correct answers)
public variable-type variable-name; (*)
private variable-name, variable-type;
public variable-name variable type;
private variable-type variable-name; (*)
Incorrect. Refer to Section 3 Lesson 8.
6. In Greenfoot, what is the purpose of the variable type? Mark for Review
(1) Points
Defines the access specifier used with the variable.
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.
Correct
7. Which operator is used to test if values are equal? Mark for Review
(1) Points
<
== (*)
>
http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.jsp?Init=Y
1 of 2 3/27/2015 6:04 AM
!>
Incorrect. Refer to Section 3 Lesson 8.
8. In Greenfoot, the == operator is used to test if two values are equal. True o
r false? Mark for Review
(1) Points
True (*)
False
Correct
Compares two boolean variables or expressions and returns a result that is true
if either of
its operands are true.
Correct
9. In Greenfoot, a local variable is declared at the beginning of a class. True
or false? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 3 Lesson 10.
10. In Greenfoot, what types of values cannot be stored in a local variable? Mar
k for Review
(1) Points
Class name
Objects
Integers
World name
Method (*)
Incorrect. Refer to Section 3 Lesson 10.
11. In Greenfoot, string concatenation reduces the number of redundant character
s or phrases you
need to type into each array. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
12. Which of the following is an example of string concatenation? Mark for Revi
ew
(1) Points
Instead of entering ".png" after each image file name, add && ".png" after the i
mageName
value in the programming statement.
Instead of entering ".png" after each image file name, add = ".png" after the im
ageName
value in the programming statement.
Instead of entering ".png" after each image file name, add + ".png" after the im
ageName
value in the programming statement. (*)
Instead of entering ".png" after each image file name, add ".png" after the imag
eName
value in the programming statement.
From your Greenfoot lessons, the __________ control structure is used to compare
and make a decision. Mark for Review
(1) Points
Conditional (*)
Repetition
Obsolete
Rewind
Incorrect. Refer to Section 3 Lesson 12.
2. From your Greenfoot lessons, the __________ control structure is often referr
ed to asloops. Mark for Review
(1) Points
Conditional
Repetition (*)
Obsolete
Rewind
Incorrect. Refer to Section 3 Lesson 12.
Define the value of the variable LapCount based on the following math calculatio
n: LapCount + 10
= 15
Mark for Review
(1) Points
2
4
5 (*)
15
10
Correct
7. The Alice IF control structure requires the false statement to be populated.
True or false? Mark for Review
(1) Points
True
False (*)
Correct
8. The say procedure in Alice plays an audio file. True or false? Mark for Revie
w
(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 3.
9. What do lines 7, 10 and 13 do in the following code? Mark for Review
(1) Points
Export files called A, B, and num3.
Create a single file containing A, B, and the value of num3.
Print "A", "B" and the value of num3 on the screen. (*)
None of the above.
Incorrect. Refer to Section 2 Lesson 14.
10.Which of the following are examples of elements you would test in your Alice
animation? Mark for Review
(1) Points
(Choose all correct answers)
All of the procedures display in alphabetical order in the Procedures tab.
Math expressions calculate as expected. (*)
Objects move with smooth timing. (*)
Use your Greenfoot knowldege: Abstraction occurs in many different ways in progr
amming. True or false? Mark for Review
(1) Points
True (*)
False
Correct
27.From your Greenfoot lessons, where do you review a class's inherited methods?
Mark for Review
(1) Points
Act method
Documentation (*)
Inspector
If-statement
Incorrect. Refer to Section 3 Lesson 3.
Section 4
(Answer all questions in this section)
28.Which of the following defines a driver class? Mark for Review
(1) Points
Contains a main method and other static methods. (*)
Contains classes that define objects.
Contains a main method, a package, static methods, and classes that define objec
ts.
None of the above.
Incorrect. Refer to Section 4 Lesson 2.
29.Examine the following code:
What is the value of variable x?
Mark for Review
(1) Points
2 (*)
2.5
6
14
Correct
30.When converting gallons to liters its best to put the calculation result into
a variable with a _______________
data type.
Mark for Review
(1) Points
int
double (*)
boolean
None of the above
Incorrect. Refer to Section 4 Lesson 1
Four variables are required to support a conversion of one unit of measure to an
other unit of
measure. True or False?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 4 Lesson 1.
32. Given the code
String s1 = "abcdef";
String s2 = "abcdef";
String s3 = new String(s1);
Which of the following would equate to false?
Mark for Review
(1) Points
s1 == s2
s1 = s2
s3 == s1 (*)
s1.equals(s2)
s3.equals(s1)
Incorrect. Refer to Section 4 Lesson 4.
33. The following code is an example of creating a String reference:
String s;
True or false?
Mark for Review
(1) Points
True (*)
False
Incorrect. Refer to Section 4 Lesson 4.
Section 5
(Answer all questions in this section)
34. Which of the following correctly matches the switch statement keyword to its
function? Mark for Review
(1) Points
(Choose all correct answers)
switch: tells the compiler the value to compare the input against
default: signals what code to execute if the input does not match any of the cas
es (*)
case: signals what code is executed if the user input matches the specified elem
ent (*)
if: records the user's input and sends it to the case statements to find a possi
ble match
switch: identifies what element will be compared to the element of the case stat
ements to
find a possible match (*)
Incorrect. Refer to Section 5 Lesson 1.
35. Why are loops useful? Mark for Review
(1) Points
They save programmers from having to rewrite code.
They allow for repeating code a variable number of times.
They allow for repeating code until a certain argument is met.
All of the above. (*)
What is the output of the following segment of code?
int array[][] = {{1,2,3},{3,2,1}};
for(int i=0;i<2;i++)
for(int j=0;j<3;j++)
System.out.print(2*array[1][1]);
Mark for Review
(1) Points
444444 (*)
123321
246642
222222
This code doesn't compile.
Incorrect. Refer to Section 6 Lesson 1.
37. Which of the following declares and initializes a one dimensional array that
can hold 5 Object
reference types?
Mark for Review
(1) Points
String[] array=new String[5];
Object array=new Object[5]; (*)
Object[] array=new Object[4];
String[] array=String[4];
Incorrect. Refer to Section 6 Lesson 1.
38. Selection sort is a sorting algorithm that involves finding the minimum valu
e in the list,
swapping it with the value in the first position, and repeating these steps for
the remainder of
the list. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
39. Bubble Sort is a sorting algorithm that involves swapping the smallest value
into the first index,
finding the next smallest value and swapping it into the next index and so on un
til the array is
sorted. True or false?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 6 Lesson 2.
40. What are exceptions used for in Java? Mark for Review
(1) Points
Correcting mistakes made in your code and handling extraordinary cases. (*)
Exceptions have no use, they are just a part of the Java language.
Helping the interpreter compile code quicker and handle user interfaces.
Making the program easier to use for the user and reducing the possibilities of
errors
occuring
What operator do you use to call an object's constructor method and create a new
object? Mark for Review
(1) Points
+
new (*)
instanceOf
Correct
42. Which of the following creates a class named Student with one constructor, a
nd 2 instance
variables, name and gpa?
Mark for Review
(1) Points
public class Student { private String name; private float gpa; }
public class Student private String name; private float gpa; Student();
public class Student { private String name; private float gpa; Student(){ name="
Jane Doe";
gpa=3.0;} } (*)
public class Student { private String name; Student{ name="Jane Doe"; float gpa=
3.0; }
Incorrect. Refer to Section 7 Lesson 1.
43. What is the output of the following code segment:
int n = 13;
System.out.print(doNothing(n));
System.out.print(" ", n);
where the code from the method doNothing is:
public double doNothing(int n)
{
n = n + 8;
return (double) 12/n;
}
Mark for Review
(1) Points
1.75, 13
0.571, 21
1.75, 21
0.571, 13 (*)
Incorrect. Refer to Section 7 Lesson 1.
44. Static classes are designed as thread safe class instances. True or false? M
ark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 7 Lesson 3.
45. Where should the constructor for a superclass be called? Mark for Review
(1) Points
Anywhere inside the subclass.
Inside the main method of the subclass.
The last line in the constructor of the subclass.
The first line of the constructor in the subclass. (*)
The super constructor does not need to be called inside the subclass.
[Correct]
Correct
47.
The following code is a good example of using the this r
eference. True or false?
Mark for Review
(1) Points
True
False (*)
[Correct]
Correct
48.
The basic unit of encapsulation in Java is the primitive
data type. True or false?
Mark for Review
(1) Points
True
False (*)
[Incorrect]
49.
[Correct]
Correct
50.
Static methods can return any object type. True or false
?
Mark for Review
(1) Points
True (*)
False
If an abstract class does not have implemented constructors or methods,
it should be implemented as an interface instead. True or false?
Mark for
Review
(1) Points
True (*)
False
[Incorrect]
What is Polymorphism?
(1) Points
A way of redefining methods with the same return type and parameters.
A way to create multiple methods with the same name but different parame
ters.
A class that cannot be initiated.
The concept that a variable or reference can hold multiple types of obje
cts. (*)
[Incorrect]
43.
Which of the following is the correct way to call an ove
rriden method needOil() of a super class Robot in a subclass SqueakyRobot?
Mark for Review
(1) Points
Robot.needOil(SqueakyRobot);
SqueakyRobot.needOil();
super.needOil(); (*)
needOil(Robot);
[Correct]
Correct
44.
According to the following class declaration, runSpeed c
an be modified in class Cat. True or false?
public class Tiger extends Cat{
public int runSpeed;
}
Mark for Review
(1) Points
True
False (*)
[Incorrect]
45.
uctor. True or False?
(1) Points
True (*)
False
Which of the following statements add all of the elements of the one dimensional
array prices, and then prints the sum to the screen? Mark for Review
(1) Points
int total = 0;
for(int i = 0; i total+=prices[i];
int total = 0;
for(int i = 0; i total+=prices[i];
System.out.println(total); (*)
int total = 0;
for(int i = 1; i total = total+prices[i];
System.out.println(prices);
int total = 0;
for(int i = 0; i total+=prices[i];
System.out.println(prices);
[Incorrect]
37.
What will be the content of the array variable table aft
er executing the following code?
Mark for Review
(1) Points
1 1 1
0 1 1
0 0 1
1 0 0
0 1 0
0 0 1
1 0 0
1 1 0
1 1 1 (*)
0 0 1
0 1 0
1 0 0
[Incorrect]
n^2
lg(n) (*)
n*lg(n)
[Correct]
Correct
39.
Mark for
Review
(1) Points
It utilizes the "divide and conquer" method, which makes the algorithm m
ore error prone.
It requires incrementing through the entire array in the worst case, whi
ch is inefficient on large data sets. (*)
It involves looping through the array multiple times before finding the
value, which is inefficient on large data sets.
It is never inefficient.
[Incorrect]
eption?
(1) Points
[Correct]
Correct
Which of the following defines an object class?
(1) Points
[Incorrect]
32.
When converting gallons to liters its best to put the ca
lculation result into a variable with a _______________ data type.
Mark for
Review
(1) Points
int
double (*)
boolean
None of the above
[Correct]
Correct
33.
A _______________ is used to organize Java related files
.
Mark for Review
(1) Points
Project
Workspace
Package (*)
Collection
[Correct]
Correct
Section 5
(Answer all questions in this section)
34.
In an if-else construct the condition to be evaluated mu
st end with a semi-colon. True or false?
Mark for Review
(1) Points
True
False (*)
[Incorrect]
int num = 7;
while(num >= 0)
{
num -= 3;
}
System.out.println(num);
(1) Points
-2 (*)
1
0
2
In Greenfoot, the image below is an example of what construct?
Mark for Review
(1) Points
Method
Conditional (*)
Variable Assignment
Class
[Correct]
Correct
27.
Use your Greenfoot knowledge to answer the question: Whe
re 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. (*)
[Correct]
Correct
Section 4
(Answer all questions in this section)
28.
What will the following code segment output? String s="\
\\\\\\\"; System.out.println(s);
Mark for Review
(1) Points
"\\\\\"
\\\\\\\\
\\
\\\\ (*)
[Correct]
Correct
29.
False (*)
[Incorrect]
[Correct]
Correct
22.
emory. True or false?
(1) Points
True
False (*)
[Correct]
Correct
23.
From your Greenfoot lessons, when a method needs additio
nal data to perform a task, this data comes from parameters. True or false?
Mark for Review
(1) Points
True (*)
False
[Correct]
called from?
(1) Points
Correct
24.
To execute a method in your Greenfoot game, where is it
Mark for Review
The world
The act method (*)
The actor class
The gallery
[Correct]
Correct
25.
rd has been pressed?
(1) Points
keyPress method
keyUp method
keyDown method (*)
keyClick method
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 (*)
[Correct]
Correct
17.
Which of the following type of audience should you ask t
o play your Greenfoot game during the testing phase?
Mark for Review
(1) Points
Testing
Target (*)
Primary
Programmer
[Incorrect]
18.
Use you Greenfoot knowledge: What range of numbers does
the following method return?
Greenfoot.getRandomNumber(30)
(1) Points
[Correct]
Correct
19.
From your Greenfoot lessons, which of the following is n
ot a characteristic of a static method?
Mark for Review
(1) Points
[Incorrect]
20.
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
True
False (*)
11.
A conditional loop is a loop that will continue forever. True or false?
Mark for Review
(1) Points
True
False (*)
[Correct]
Correct
12.
In Alice, the setVehicle procedure will associate one ob
ject to another. True or false?
Mark for Review
(1) Points
True (*)
False
[Incorrect]
the fish to continuously move forward a random speed between 0.5 and 1.0 meters
, minus 0.25 meters, until it collides with the shark?
A(*)
From your Greenfoot lessons, which of the following logic operators repr
esents "and"? Mark for Review
(1) Points
&
&& (*)
=
!
[Correct]
variable?
(1) Points
Correct
15.
In Greenfoot, what is a common letter used for the loop
Mark for Review
A
I (*)
X
Y
[Correct]
Correct
[Incorrect]
7.
In Alice, which of the following programming statements
moves the cat backward, half the distance to the bird? Mark for Review
(1) Points
this.Cat move backward {this.Bird getDistanceTo this.Cat / 2}
this.Cat move forward {this.Bird getDistanceTo this.Cat / 2}
this.Bird move forward {this.Bird getDistanceTo this.Cat / 2}
this.Cat move backward {this.Cat getDistanceTo this.Bird / 2} (*)
[Correct]
Correct
8.
If you want one message to display if a user is below th
e age of 18 and a different message to display if the user is 18 or older, what
type of construct would you use?
Mark for Review
(1) Points
for all loop
do loop
while loop
if (*)
[Correct]
Correct
9.
In Alice, when a new procedure is declared, all subclass
es of the superclass will inherit the procedure. True or false?
Mark for
Review
(1) Points
True (*)
False
[Correct]
Correct
10.
The comments you enter in Alice should describe the sequ
ence of actions that take place in the code segment. True or false?
Mark for
Review
(1) Points
True (*)
False
Examine the following code. What are the variables?
args
n (*)
i (*)
t
In Alice, functions are dragged into the control statement, not the proc
edure. True or false? Mark for Review
(1) Points
True
False (*)
[Correct]
Correct
3.
Which of the following are examples of elements you woul
d test in your Alice animation?
Mark for Review
(1) Points
(Choose all correct answers)
All of the procedures display in alphabetical order in the Procedures ta
b.
Math expressions calculate as expected. (*)
Objects move with smooth timing. (*)
Event listeners trigger the correct responses. (*)
[Incorrect]
4.
From your Alice lessons, what is a one-shot procedural m
ethod? 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.
[Correct]
Correct
5.
From your Alice lessons, what is the purpose of nesting?
Mark for Review
(1) Points
To add more procedures to your program.
To add visual structure to your program. (*)
To add text to your program that tells the viewer what the code does.
To add random movements to your program.