1. Which
of the two diagrams below illustrate the general form of a Java program?
Example A
Example B (*)
2.
When importing another package
into a class you must import the entire package as well as the package classes
that will be called. True or False?
True
False (*)
3. Which
of the following defines a driver class?
Contains a main method and other static methods. (*)
Contains classes that define objects.
Contains a main method, a package, static methods, and
classes that define objects.
None of the above.
4. Which
of the following defines an object class?
Contains a main method and other static methods.
Contains classes that define objects. (*)
Contains a main method, a package, static methods, and
classes that define objects.
None of the above.
5. The
following defines a package keyword:
Defines where this class lives relative to other classes,
and provides a level of access control. (*)
Provides the compiler information that identifies outside
classes used within the current class.
Precedes the name of the class.
6. The
following defines an import keyword:
Defines where this class lives relative to other classes,
and provides a level of access control.
Provides the compiler information that identifies outside
classes used within the current class. (*)
Precedes the name of the class.
7. The
following defines a class keyword:
Defines where this class lives relative to other classes,
and provides a level of access control.
Provides the compiler information that identifies outside
classes used within the current class.
Precedes the name of the class. (*)
No comments:
Post a Comment