Search Header Logo

Greenfoot Quiz

Authored by Bill Butterfield

Computers

9th - 12th Grade

Used 43+ times

Greenfoot Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In the Crab game scenario, the Lobster class contained all of the code that describes how all _____'s behave.

Lobster

Crab

Worm

Actor

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

In the Crab scenario, how were these two images used?

The Crab class switched between these two images to animate the legs of the crab.

The Crab class displayed crab when the game starts and crab2 when the game ends.

The Crab class displayed crab when a worm was eaten and crab2 when a Crab eats a Lobster.

The Crab class displayed crab when a worm was eaten and crab2 when a Lobster eats a Crab.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following accurately describes the code shown here.

line 15 stores the file "crab.png"

line 16 stores the file "crab2.png"

line 17 stores a whole number

lines 15 and 16 store Java primitives

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following best describes what the keyword "void" means?

it denotes that the method will only execute any commands that it contains

it creates a variable using the name that follows it

it creates an array of values from the code that it executes

it denotes that the method will return a value once it completes executing any commands it contains

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following accurately describes the code shown here?

The turnAtEdge() method will cause an object to turn 17 times every time it executes.

The turnAtEdge method will cause an object to turn 17 degrees when isAtEdge() is true

The turnAtEdge method will cause an object to turn 17 degrees when isAtEdge() is false

The turnAtEdge() method will cause an object to turn 17 degrees every time it executes.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following is an accurate statement about the code shown here.

if an object created from the Lobster class is touching an object of the Crab class the program will stop.

if an object created from the Crab class is touching an object of the Worm class the program will stop.

if an object created from the Lobster class is touching an object of the Worm class the program will stop.

if an object created from the Lobster class is touching another object of the Lobster class the program will stop.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which term below is illustrated in the two lines of code shown here.

variable declaration

class declaration

object instantiation

dot notation

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?