Section 1
(Answer all questions in this section)
1. If a class is in a package, the
system's CLASSPATH must be altered to access the class.
True or false?
True
False
(*)
2. How would you make an instance of Car
in a class that did import the vehicle package below?
Car c =
new Car(); (*)
vehicle.Car
c=new Car();
vehicle.Car
c=new vehicle.Car();
vehicle.Car
c=new vehicle();
None of
the above
3. Which of the following are files that
must be uploaded to a web server to deploy a java application/applet? Mark for Review
(Choose
all correct answers)
jar
files (*)
JNLP
files (*)
html
files (*)
.java
files
None of
the above
4. Java Web Start is used to deploy java
applications.
True or false? Mark
for Review
True
(*)
False
5. Which of the following is an attribute
of a two tier architecture application?
Mark for Review
An
application of that has a client and server only. (*)
A
complex application that includes a client, a server and database.
An
application of that runs on a single computer.
None of
the above.
6. The method for connecting a Java
application to a database is by using:
Mark for Review
(1) Points
jar
files
JNLP
JDBC
(*)
Java
Web Start
None of
the above
Komentar
Posting Komentar