Make your own free website on Tripod.com

Java Reviewer=

 

1)&n= bsp;     ._________ is a collection of data of the same type= .

2)&n= bsp;     Java is _________ so if you capitalized any letter = of a keyword, it becomes an identifier.

3)&n= bsp;     ________ is an object oriented programming language developed by Sun Microsystem

4)&n= bsp;     Java are directories or folders where related classes are placed.

5)&n= bsp;     .________ programming was conceived to model real world objects.

6)&n= bsp;     To compile all classes in a specific package, just click on button _________.

7)&n= bsp;     The class name should be the same as filename if the class is declared as

8)&n= bsp;     A dialog box appear aski= ng for the parameter values of the main method.

9)&n= bsp;     _______.__________ methods require that you create a new object and the dialog box will asked for the parameter values of the main method.

10)&= nbsp; Errors encountered when you compile your application are called _________.

11)&= nbsp; A window that will show the output of your program

12)&= nbsp; Is a collection of method signatures and variable declarat= ions.

13)&= nbsp; .__________ error encountered during program execution.

14)&= nbsp; A process by which a class is able to inherit state and behavior from another class.

15)&= nbsp; Function of a class or object.

16)&= nbsp; In object oriented programming, it is the process of combining data and functi= on to form a class or object.

17)&= nbsp; A means of interacting or communicating with objects.

18)&= nbsp; __________ indicates that a method does not return any data.

19)&= nbsp; A modifier that tells the compiler that should stay in the memory until the entire program terminates

20)&= nbsp; A ________ defines the common variables (attributes) and method (functions) o= f a set of objects.

 

C - correct. I - incorrect statements.

 

1.&n= bsp;     package <top_package= >[.<subpackage_name>]

2.&n= bsp;     public void printWelcome() { }

3.&n= bsp;     public class Welcome

4.&n= bsp;     System.out= .println(“Welcome!!!”);

5.&n= bsp;     public static void main (String[] args);

6.&n= bsp;     System.out.print(string= );

7.&n= bsp;     Greet.printWelcome

8.&n= bsp;     public static void main(String);

9.&n= bsp;     package Group.student;<= /p>

10.&= nbsp; int x =3D ‘char’

 

Program Making

 

1.  Write= a program that computes and display a Grade and Average of s student in 6 sub= ject if a given grades are.    &n= bsp;        English =3D 80     Scien= ce =3D 90    Math =3D 93        (10 points)

   &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;      Filipino =3D 83     Socia= l =3D 80       PE = =3D 88

 

2.&n= bsp;     A taxi charges P50.00 for the first 300 meters and P5.00 for every 100 meters thereafter. Any distance traveled up to the 100 meter zone is still charged P5.00. Write a program that will accept the distance and output the fare amount. (20 points).