Vous êtes sur la page 1sur 19

1.

In Alice,
Mark for Review
where
(1) Points
does an
instance's
axes
intersect?

At the world's center point.

At the instance's head.

At the instance's center point. (*)

At the instance's feet.

Correct

2. What tool can be used to diagram an IF conditional execution


Mark for Review
statement?
(1) Points

Process flow diagram (*)

Cause and effect diagram

Conditional flow diagram

Correct

3. In Alice, how would you get the length of a fish object?


Mark for Review
(1) Points

getWidth

getLength

getHeight

getDepth (*)
Correct

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

Correct

5. In Alice, a computer program requires functions to tell it how to


Mark for Review
perform the procedure. True or false?
(1) Points

True

False (*)

Correct

6. In Alice,
Mark for Review
which of
(1) Points
the
following is
not a
control
statement?

Count

Do In Order

Move (*)
While

Correct

7. If you want one message to display if a user is below the age of


Mark for Review
18 and a different message to display if the user is 18 or older,
(1) Points
what type of construct would you use?

do loop

for all loop

while loop

if (*)

Correct

8. If you need to repeat a group of Java statements many times,


Mark for Review
which Java construct should you use?
(1) Points

(Choose all correct answers)

if

repeat...until

while loop (*)

do while loop (*)

Correct

9. In Alice, what tab would you choose to start a new animation


Mark for Review
with a pre-populated world?
(1) Points
My Projects

Blank Slate

Starters (*)

Recent

Correct

10. With keyboard controls, you can create Alice animations where
Mark for Review
the user controls an object that interacts with other objects.
(1) Points
True or false?

True (*)

False

Correct

11. How do you


Mark for Review
view the
(1) Points
results of
procedures
entered in
the Alice
code
editor?

Select the Play button.

View the procedures in the gallery.

Select the Run button. (*)

Save the scene.

Incorrect. Refer to Section 2 Lesson


1.
12. To access the Alice Code editor from the Scene editor, which
Mark for Review
button do you click?
(1) Points

Edit Code (*)

Code Editor

Access Code Editor

Code

Incorrect. Refer to Section 2 Lesson


3.

13. In Alice, you could identify when new procedures need to be


Mark for Review
declared by reviewing the textual storyboard for the
(1) Points
animation. True or false?

True (*)

False

Correct

14. Breaking down a problem or process into smaller parts makes


Mark for Review
it easier to manage. True or false?
(1) Points

True (*)

False

Incorrect. Refer to Section 2 Lesson


5.
15. In Alice, which of the following situations could benefit from
Mark for Review
declaring a new procedure?
(1) Points

(Choose all correct answers)

A single motion, such as walking, takes up a lot of room in


myFirstMethod. (*)

An object needs to say three statements.

An object does not have a default procedure for a motion,


such as swimming. (*)

An object needs to move forward, then move up 10


meters.

Multiple objects need to use a motion, such as bunnies


hopping. (*)

Incorrect. Refer to Section 2 Lesson


5.

16. In Alice, which


Mark for Review
of the
(1) Points
following
programming
statements
moves the
alien
backward the
distance to
the asteroid,
minus 2
meters?

this.Alien move backward {this.Alien getDistanceTo


this.Asteroid -2} (*)

this.Asteroid move backward {this.Alien getDistanceTo


this.Asteorid / 2}

this.Alien move forward {this.Asteroid getDistanceTo


this.Alien / 2}
this.Alien move backward {this.Alien getDistanceTo
this.Asteroid * 2}

Correct

17. In Alice, which of the following programming statements


Mark for Review
moves the cat forward the distance to the bird?
(1) Points

this.Cat move {this.Bird getDistanceTo this.Cat / 2}

this.Cat move forward {this.Cat getDistanceTo this.Bird}


(*)

this.Cat move forward {this.Bird getDistanceTo this.Cat /


2}

this.Bird move forward {this.Bird getDistanceTo this.Cat}

Correct

18. When viewing the Java Code on the side in Alice, you can
Mark for Review
change the Java code directly instead of the Alice code. True
(1) Points
or false?

True

False (*)

Correct

19. In Java code the { } brackets are used to represent what


Mark for Review
statements?
(1) Points

(Choose all correct answers)


begin (*)

end (*)

while

for

Correct

20. From your Alice lessons, random numbers are numbers


Mark for Review
generated by the user with a pattern in their sequence. True
(1) Points
or false?

True

False (*)

Incorrect. Refer to Section 2


Lesson 4.

21. The list


Mark for Review
below
(1) Points
displays
valid
primitive
types in
Java,
except
which
one?

String (*)

boolean

long

int

double
Correct

22. Expressions with relational operators produce true and false


Mark for Review
values. True or false?
(1) Points

True (*)

False

Correct

23. The animation checklist helps you confirm that all elements of the
Mark for Review
Alice animation are operating as expected. True or false?
(1) Points

True (*)

False

Correct

24. From your Alice lessons, if you examined a science process that
Mark for Review
had many steps, which of the following is a way that you could
(1) Points
apply functional decomposition to this process?

1. Present the problem as an animation.


2. Further refine and define the tasks needed for each high
level step.
3. Identify the high level steps for the science concept.

1. Identify the high level steps for the science concept.


2. Further refine and define the tasks needed for each high
level step.
3. Present the problem as an animation. (*)

Present the problem as an animation.

1. Identify the detailed steps for the science concept.


2. Present the problem as an animation.
Correct

Section 3

(Answer all questions in this section)

25. In a Greenfoot if-else statement, if the condition is true, the if-


Mark for Review
statement is executed, and then the else-statement is executed.
(1) Points
True or false?

True

False (*)

Incorrect. Refer to Section 3 Lesson 5.

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

True

False (*)

Incorrect. Refer to Section 3


Lesson 5.

27. Which of the following Greenfoot methods returns a


Mark for Review
random number between 0, up to and including
(1) Points
10,000?
Greenfoot.getRandomNumber(10,001) (*)

Greenfoot.getRandomNumber(9,999)

Greenfoot.getRandomNumber(0-10,000)

Greenfoot.getRandomNumber(10,000)

Incorrect. Refer to Section 3


Lesson 5.

28. Which of the following comparison symbols represents


Mark for Review
equals?
(1) Points

= = (*)

<

>

!=

Correct

29. Which keyword is used to add an actor to a Greenfoot


Mark for Review
world?
(1) Points

new

add

super

addObject (*)

Correct
30. Where can we review the available classes and
Mark for Review
methods in Greenfoot, including the stop method?
(1) Points

Class Application Programmers' Interface (API)

Object menu

Class menu

Greenfoot Application Programmers' Interface


(API) (*)

Correct

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

True

False (*)

Incorrect. Refer to Section 3 Lesson


8.

32. In Greenfoot, the instance has a source code editor. True or


Mark for Review
false?
(1) Points

True
False (*)

Correct

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

True

False (*)

Correct

34. In Greenfoot, the body of the method is located in between


Mark for Review
which of the following characters?
(1) Points

Parnetheses ( )

Curly brackets { } (*)

Square brackets [ ]

Asterisks **

Correct

35. In the Greenfoot IDE, an instance's position is on the x and y


Mark for Review
coordinates. True or false?
(1) Points

True (*)

False

Correct
36.In
Mark for Review
Greenfoot,
(1) Points
you will
not receive
an error
message if
your code
is
incorrect.
It will
simply not
work, and
you will
have to
determine
why the
code
doesn't
work. True
or false?

True

False (*)

Correct

37. In object oriented programming, programmers analyze a


Mark for Review
problem and create objects to solve the problem. True or false?
(1) Points

True (*)

False

Correct

38. In Greenfoot, which of the following statement is true about


Mark for Review
Defined Methods?
(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. Refer to Section 3 Lesson 6.

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

World method

Code method

Instance method

Class method

Defined method (*)

Incorrect. Refer to Section 3 Lesson 6.

40. In Greenfoot to get the users name you could use:


Mark for Review
(1) Points

Greenfoot.prompt("Input Name: ");

Greenfoot.getUserName();

Actor.prompt("Input Name: ");

Greenfoot.ask("Input Name: "); (*)

Incorrect. Refer to Section 3 Lesson 7.


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

Actor

World

Greenfoot (*)

GreenfootImage

Correct

42. In Greenfoot, after a subclass is created, what has to occur


Mark for Review
before instances can be added to the scenario?
(1) Points

Editing of source code

Creation of an instance

Creation of source code

Compilation (*)

Incorrect. Refer to Section 3 Lesson 1.

43. In Greenfoot, the class holds the general attributes of an


Mark for Review
instance, such as the methods it inherits. True or false?
(1) Points

True (*)
False

Incorrect. Refer to Section 3 Lesson 1.

44. Which of the following Greenfoot logic operators represents


Mark for Review
"not"?
(1) Points

&&

! (*)

&

Incorrect. Refer to Section 3 Lesson 10.

45. From your Greenfoot lessons, what types of values cannot be


Mark for Review
stored in a local variable?
(1) Points

(Choose all correct answers)

World name

Integers

Class name

Objects

method (*)

Incorrect. Refer to Section 3 Lesson 10.

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

The code executes and does not stop. (*)

The code stops after 20 executions.

The condition becomes false after one minute of


executions.

The code stops after 10 executions.

Incorrect. Refer to Section 3 Lesson


10.

47. In Greenfoot, string concatenation reduces the number of


Mark for Review
redundant characters or phrases you need to type into each
(1) Points
array. True or false?

True (*)

False

Correct

48. In Java what is casting?


Mark for Review
(1) Points

Casting is when we reset the state of an instance.

Casting is when we remove an object from the world

Casting is when we change the coordinates of an actor

Casting is when we want to tell the java compiler that a


class we are accessing is really another type of class (*)

Incorrect. Refer to Section 3 Lesson 9.


49. An if-statement requires which type of information returned
Mark for Review
from the condition?
(1) Points

Action

Method

True or false (*)

Integer

Incorrect. Refer to Section 3 Lesson 3.

50. In Greenfoot, which of the following methods display an


Mark for Review
object's orientation?
(1) Points

(Choose all correct answers)

int getX() (*)

void turn()

int getRotation() (*)

void move()

Correct

Vous aimerez peut-être aussi