Senin, 20 November 2017

Java Fundamental Section 3 L6-L10

1.  In Greenfoot you can interact with the scenario using a mouse.
True (*)
2.  In Greenfoot, which method checks if a key on the keyboard has been pressed?
isKeyDown method (*)
3.  Greenfoot has tools to record sound. True or false?
True (*)
4.  A collision in Greenfoot is when two actors make contact?
True (*)
5.  From your Greenfoot lessons, how do you call a defined method?
Call the method from the act method. (*)
6.  In Greenfoot, defined methods must be used immediately. True or false?
False (*)
7.  Which of the following is an example of string concatenation?
Instead of entering ".png" after each image file name, add + ".png" after the imageName value in the programming statement. (*)
8.  In Greenfoot, what type of symbol is used to connect boolean expressions?
Logic operators (*)
9.  Which of the following is not a component of a while loop?

if statement (*)
10.  Which of the following answers have the correct syntax for declaring a class variable in Greenfoot?
(Choose all correct answers)
public variable-type variable-name; (*)
private variable-type variable-name; (*)
11.  Where can we review the available classes and methods in Greenfoot, including the stop method?
Greenfoot Application Programmers' Interface (API) (*)
12.  From your Greenfoot lessons, what is the parameter of the following constructor that creates a new image, and designates it to the Actor class?

setImage (new GreenfootImage("Bee01.png"));
Bee01.png (*)
13.  Abstraction occurs in many different ways in programming. True or false?
True (*)
14.  From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used?
Passing a paramater in a constructor to set an initial speed. (*)
15.  In Greenfoot, you can cast an Actor class to a World class?
False (*)

Tidak ada komentar:

Posting Komentar