Review Sheet for Test 2

 

 

Know the following terms:

 

 

            Argument                    object              classes                         formal parameter

            instance variable          method            final                             dummy

            public                          new                 actual parameter          logical operators

            System.in                    package           for                               do while                     

            while                           literals              static                            relational operators

            conditional                  reference         primitive                      scope

            mod                

 

Know how to do formatted output in Java. 

Know all the primitive Java Data types.

Know the difference between primitive data types and reference data types.

Know how to use the various java Math class functions that we studied in class including

Math.sqrt   Math.pow   Math.floor  Math.PI  Math.random  (how to simulate integer random numbers from 1 to some number  Example:  the roll of a dice)

 

Know all the Java loops and how they work

 

Know how to use the various String functions we studied in class.

str.charAt(i)  str.equals(str2)  str.equalsIgnoreCase(str2)   str.length()  str.lastIndexOf(‘c’)

 

Know how to program in Java using multiple methods. 

Know void and non-void functions and the use of parameters (actual and formal) in Java.

 

Know integer division and how it works  mod %  and /

 

Know the Switch statement and how it applies (example:  converting a letter grade to a numeric value)

 

You will be required to write some complete Java programs.  Make sure you know the standard instructions that you will need.

Such as

public static void main(String[] args)

import java.util.Scanner;

Scanner keyboard=new Scanner(System.in);