CS4A Java Study Guide - Saddleback College



CS4A Test 1 Study Guide:

Test will cover chapters 1..10 inclusive (for both 9th and 10th edition)

Test will cover Java basics, Some Strings (chapter 4 10th; Chapter 9 in 9th ) and some OOP/Objects .

1. What are the Java Primitive Types and sizes?

2. What are the three flow control looping structures in Java?

3. What are three ways to define (declare & set size) for an integer array?

4. What is a 2D array?

5. How do you initialize a 3D array, both declare and set contents?

6. What is the first and last element of an array?

7. What array property holds the number of elements in an array?

8. Is a String a primitive type of class, and why?

9. List 5 String methods (include indexOf, charAt, length, substring) ?

10. What are four features of Java Object Oriented Programming.

11. Write a method, that when passed an array, will return a new array with all values doubled.

12. Given a class called House, each House has x number of doors and y number of windows. Write a class describing house; How many instance variables does it have? How many accessors does it have? How many mutators does it have? Assume it has two constructors; one is the no arg, and the other sets all instance variables. Write the class, its instance variables, constructors, accessors and mutators.

13. Write a for loop that prints out the number 1..10, squares and square roots.

14. What is method overloading, and overriding?

15. What is the difference between continue and break?

16. What is the eve class of all Java Classes.

17. Is quick sort the quickest possible sort and Why?

18. Where are the quick sort and binary search located inside of the Java API.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download