1) What symbol marks the end of a statement in Java? a) . b) : c) ; d) , 2) The top-left corner of the Greenfoot screen has coordinates: a) (0,0) b) (0,10) c) (10,0) d) (100,100) 3) A block of code in Java is enclosed in: a) ( ) b) { } c) < > d) [ ] 4) The command Greenfoot.isKeyDown("left") returns: a) A number b) Text c) A boolean d) An integer 5) Which data type stores decimal numbers? a) int b) boolean c) double d) char 6) What does the method turn(90) do? a) Moves the actor up b) Rotates the actor 90° clockwise c) Turns the actor left d) Changes the actor’s speed 7) Which keyword is used to create an object? a) object b) class c) make d) new 8) What is the purpose of a constructor? a) To destroy objects b) To build and initialize an object c) To print output d) To store variable data 9) What does getRandomNumber(10) return? a) 0-9 b) 1-10 c) 10-20 d) 0-10 10) The method move(5) belongs to: a) The Greenfoot class b) The Object class c) The Actor class d) The System class

Coding revision part 1

Leaderboard

Visual style

Options

Switch template

Continue editing: ?