Classes
Methods
Misc
Order of Operations
Evaluate and other stuff
100

The state of an object is hidden.

What is abstraction?

100

The accessor method that has no return.

What is mutator ?

100

Create new puppy (object) called woof in the Dog class with a blue coat and six toes.

What is Dog woof = 

           new Dog(String colorCoat, int numToes);  ?

100

The result of     1  +  2  X  3  +  7  X  2  %  5   .

What is  11 ?

100

The  value of c following this code statement.

What is  16  ?

200

Private information is kept hidden.

What is encapsulation?

200

The signature of the "Mod" method that returns the modulus of 2 integers.

What is   public int mod (int a, int b){    ?

200

Create a pumkin in the Gourd class with a diameter of 10 inches and a color of gold.

What is    Gourd pumkin = new Gourd (double 10, String gold){   ?

200

The result  813  %  100  /  3  +  2.4

What is  6.4

200

The value of second at the end of the following code.

 

What is  8  ?

300

This access specifier restricts other classes from looking at the variables.

What is private?

300

The declaration of the method squirrelPlay rthat eturns false if the variable isRaining is true.

What is  public boolean squirrelPlay (boolean isRaining){

300

The global variables at the beginning of a class.

What are  instance variables  ?

300

The result  177  %  100  %  10  /  2

What  is  3  ?

300

The value of k after this code is run.  

What is  1  ?


400

The signature (declaration) of a class called Siamese.

What is public class Siamese?

400

The declaration of the adder method that adds two integers and returns the sum.

What is   public int adder(int a, int b){  ?

400

Retrieve the digit in the 10's place of the variable num.

What is  num / 10 % 10

400

The result  9  /  4  *  2.0  -  5  /  4

What is  3.0  ?

400

An object is a kind of class that does not contain any behavior (methods).  

True or False

What is  False  ?

500

The signature of a class called gizmo.

What is   public class Gizmo  ?

500

The signature of the method inRange which returns true if an integer "num" is between 6 and 10.

What is  public boolean inRange (int num){  ?

500

Retrieve the digit in the 100's place of the variable num.

What is  num / 100 % 10  ?

500

The result    "(2 + 2 )" + (3 + 4)

What is  " ( 2 + 2) 7"

500

A(n) __________ provides the client access to data in the object, while             a(n) ___________ lets the client change the object's state.

What is  accessor  and mutator  ?