hts.StevenWood.com

[ Last Page ]

Exam Sample

 
  First attempt (some of) these questions WITHOUT a computer. Write your answer out on paper.

Then take your answer and put it into the computer to see if it works.

A Suggested Solution
1. Available
2. Available
3.

Create a method that will calculate and display the percentage values in the table. Round to two decimals places.

Available
4. Available
5. Available
6. Available
7. Available
8. Available
9. Available
10. Available
11. Available
12. Available
13. Available
14. Available
15. Available
16.

#1-#4
Available

 

#5-#8
Available

17. Create a java application that will ask you a math addition question. Use an int method called sum to calculate and return the answer. When you correctly enter the answer on the keyboard, your program tell you "You are correct!" or "You are wrong."
 
18. Create an int array using an initializer list, display the elements in the array, display the number of elements in the array (using the java way), and the total of the elements.  
19. Create a java class for a fish. Add 3 attributes (including the types). Use comments to describe the purpose of and suitable values for the attributes. Give the prototypes (the header, not the body) for a constructor method, a "set" method, a "get" method, and a method that will make the fish do an action. Use comments to describe the purpose of each method and any parameter listed.  
20.

Create a String array with 3 elements. Create a loop to enter in the the values for the array using keyboard entry. Display all of the items entered using another loop. This loop should print the Strings in ALL CAPITAL LETTERS. e.g.
Item      Value
0             DOG
1             CAT
2             BIRD

 

 

 

 

[Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+