Unformatted text preview:

COP 3540Spring 2007Quiz 1 – Chapter 1Name: ________________________1…… In object-oriented programming, an object a. is a class b. may contain data and methodsc. is a program d. may contain classes e. I have no clue2….. A class a. is a blueprint for many objectsb. represents a specific real-world objectc. will hold specific values in its fieldsd. specifies the type of a method3….. In Java, a class specificationa. creates objectsb. requires the keyword newc. creates referencesd. none of the above4…… In Java, boolean and byte are _______________data types.5…… Variables (attributes, properties) that are defined within a method are likely:a. instance variables b. local variables c. static variables6….. If I pass the value of an attribute, say, the value of int age = 52 to a method and that called method alters the value of age within its executable code but I want my original value in the calling method shielded from that change, my best choice of parameter passing would be:a. Call by Contentb. Call by Referencec. Call by Valued. Call by Name7….. The public interface of an object generally refers to: a. all of the methods included in the objectb. all of the methods and any public attributesc. only methods marked publicd. all static (class) methods, such as static int count = 0;8…..(True, False), when we write code such as ba1.display() or ba2.insert(45.6), we are really:a. sending a message to a specific method in the named objectb. invoking the ba2 routine with an argument 45.6 valuec. invoking the insert routine within the object I am currently ‘in’d. requesting service from an unnamed object9….. The notion of including attributes and methods into a single structure is referred to as:a. encapsulationb. information hidingc. polymorphismd. inheritance10…. (True, False), In Java, code in one object, if carefully done, can accessprivate data in another object if the object is of the same class, such specific students from a class Student. 11…..In Java, the creation of all objects requires the operator new except______________ objects.12….. Please answer the following question (just input to me)I took Intro to OOP here at UNF and my instructor was ______________I took Intro to OOP at FCCJ (or other institution). Please name school: _________________I took Intro to OOP (semester, year) _________________I honestly feel that I am well equipped from the prerequisite:a. excellent b. good c. fair d.


View Full Document

UNF COP 3540 - Study Notes

Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?