Loading
notes intro/old submit AP Problems the dump links
 

Quiz 4 - Objects

 

id:

1. What would the following display - exactly:

    • System.out.print("The ");
    • System.out.print("Good ");
    • System.out.println("Dog ");
    • System.out.println(" Died");

The Good Dog Died

The
Good
Dog
Died                 

The Good Dog
Died                

The Good
Dog 
Died                 

2. Creating classes from other classes is called:

inheritance

subclasses

abstraction

polymorphism

 

3. True or false: Abstraction is the process of hiding the workings from the user. true false

4. True or false: println is method of the System.out object (or class) true false

5. Blueprint is the real world example of a

Class

Object

Abstraction

Instance

 

6. Which of the following is a real world example of abstraction

To use a car you need to know how to change the tires

To use a car you need to put fuel in.

To use a car you dont need to know how an engine works, all you need is to know how to drive.

To use a car you need a license.

 

7. Of the following statements, which are true about object oriented programming?

I. It allows for easier software re-use

II. It allows for breaking up large projects into manageable parts.

III. It is unique to Java

I

II

I,II

I,II,III