7.     The normalize() method removes redundant name elements from a qualified path.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section 3 Lesson 4.

     When do you use try-catch statements?     Mark for Review
(1) Points
                   
           
    When you want to handle an exception. (*)
   
           
    Every time you would like to assign a new value to a variable that is being asserted.
   
           
    If you want to switch different values for a certain variable.
   
           
    When you want to exit your code before an exception is caught.
   
                   
               
[Incorrect]         Incorrect. Refer to Section 3 Lesson 6.
   
1.     To deploy java applications you may use Java Web Start.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Correct]         Correct
   
                   
        2.     A jar file is built on the ZIP file format and is used to deploy java applets.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section4 Lesson 1.
   
                   
        3.     What option do you choose from the File menu in Eclipse to start the process of creating a runnable JAR file?     Mark for Review
(1) Points
                   
           
    Export (*)
   
           
    Import
   
           
    Switch Workspace
   
           
    Properties
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        4.     When you import a package, subpackages will not be imported.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        5.     How would you make an instance of Car in a class that didn't import the vehicle package below?

package vehicle;
public class Car{
 public Car(){}
}     Mark for Review
(1) Points
                   
           
    Car c = new Car();
   
           
    vehicle.Car c=new Car();
   
           
    vehicle.Car c=new vehicle.Car(); (*)
   
           
    vehicle.Car c=new vehicle();
   
           
    None of the above
   
                   
               
[Incorrect]         Incorrect. Refer to Section4 Lesson 1.
   
6.     The import keyword allows you to access classes of the package without package Fully Qualified Name.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        7.     The method for connecting a java application to a database is JNLP.
True or false?     Mark for Review
(1) Points
                   
           
    True
   
           
    False (*)
   
                   
               
[Incorrect]         Incorrect. Refer to Section4 Lesson 1.
   
                   
        8.     Which of the following is an attribute of a three tier architecture application?     Mark for Review
(1) Points
                   
           
    an application of that type has a client and server only
   
           
    a complex application that includes a client, a server and database (*)
   
           
    an application of that type runs on a single computer
   
           
    None of the above
   
           
    All of the above
   
                   
               
[Incorrect]         Incorrect. Refer to Section4 Lesson 1.
   
                   
        9.     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
   
                   
               
[Correct]         Correct
   
                   
        10.     An example of two tier architecture would be a client application working with a server application.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section4 Lesson 1.

Section 4 Quiz
    (Answer all questions in this section)
                   
        11.     If a class is in a package, the system's CLASSPATH must be altered to access the class.
True or false?     Mark for Review
(1) Points
                   
           
    True
   
           
    False (*)
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        12.     Java Web Start is used to deploy Java applications.
True or false?     Mark for Review
(1) Points
                   
           
    True (*)
   
           
    False
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        13.     Which of the following files are not required to be uploaded to a web server to deploy a JWS java application/applet?     Mark for Review
(1) Points
                   
           
    jar files
   
           
    JNLP files
   
           
    html files
   
           
    .java files (*)
   
           
    None of the above
   
                   
               
[Correct]         Correct
   
                   
        14.     Which of the following is an attribute of a two tier architecture application?     Mark for Review
(1) Points
                   
           
    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.
   
                   
               
[Incorrect]         Incorrect. Refer to Section 4 Lesson 1.
   
                   
        15.     If a programmer uses the line
import com.test.*,
there is no need to use
import com.test.code.*
True or false?     Mark for Review
(1) Points
                   
           
    True
   
           
    False (*)
   
                   
               
[Correct]         Correct

Komentar

Postingan populer dari blog ini