Deck 23: Applets and Java Web Start

Full screen (f)
exit full mode
Question
Which of the following is a feature of Java Web Start?

A)Desktop integration.
B)Automatic updating.
C)Draggable applets.
D)All of the above.
Use Space or
up arrow
down arrow
to flip the card.
Question
When an applet container encounters an HTML file that specifies an applet to execute,the applet container automatically loads ________ of the applet from the same directory as that of the HTML file.

A)the .java file
B)the .class file
C)the main line
D)the .htm file
Question
When an applet container loads an applet,the container calls three of the applet's methods.In sequence,these three methods are:

A)start,init,stop.
B)start,init,paint.
C)init,start,stop.
D)init,start,paint.
Question
Which method is called by the applet container when the applet is being removed from memory.

A)stop
B)remove
C)destroy
D)end
Question
Which method is called once by the applet container when an applet is loaded for execution.

A)start
B)init
C)paint
D)load
Question
Which method should be used to draw a line of text on an applet?

A)Graphics method drawText.
B)Text method drawLine.
C)Graphics method drawLine.
D)Graphics method drawString.
Question
You can start an applet initially by using the appletviewer.The applet can be restarted by using which of the following Applet menu items?

A)save.
B)quit.
C)tag.
D)reload.
Question
________ describes the contents of a JAR file and specifies which class is the main-class of an applet for use with Java Web Start.

A)HTML document.
B)JNLP document.
C).java file.
D).class file.
Question
The Java platform uses the _________ to prevent code that is downloaded to your local computer from accessing local system resources,such as files.

A)blackbox security model.
B)sandbox security model.
C)whitebox security model.
D)download security model.
Question
The browser that executes an applet is generically known as the ________.

A)applet storage.
B)applet container.
C)applet viewer.
D)applet executer.
Question
Which of the following will not produce an error when trying to load and run a program with the appletviewer?

A)Placing additional characters,such as commas,between the components in the tag.
B)Omitting the ending
tag.
C)Creating an applet that is less than 640 pixels by 480 pixels.
D)Running the appletviewer with a file name that does not end with .html or .htm .
Question
To draw on an applet,the programmer must access the ________ object in the applet's paint method.

A)drawstring
B)drawLine
C)Graphics
D)Pixel
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/12
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 23: Applets and Java Web Start
1
Which of the following is a feature of Java Web Start?

A)Desktop integration.
B)Automatic updating.
C)Draggable applets.
D)All of the above.
D
2
When an applet container encounters an HTML file that specifies an applet to execute,the applet container automatically loads ________ of the applet from the same directory as that of the HTML file.

A)the .java file
B)the .class file
C)the main line
D)the .htm file
B
3
When an applet container loads an applet,the container calls three of the applet's methods.In sequence,these three methods are:

A)start,init,stop.
B)start,init,paint.
C)init,start,stop.
D)init,start,paint.
D
4
Which method is called by the applet container when the applet is being removed from memory.

A)stop
B)remove
C)destroy
D)end
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
5
Which method is called once by the applet container when an applet is loaded for execution.

A)start
B)init
C)paint
D)load
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
6
Which method should be used to draw a line of text on an applet?

A)Graphics method drawText.
B)Text method drawLine.
C)Graphics method drawLine.
D)Graphics method drawString.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
7
You can start an applet initially by using the appletviewer.The applet can be restarted by using which of the following Applet menu items?

A)save.
B)quit.
C)tag.
D)reload.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
8
________ describes the contents of a JAR file and specifies which class is the main-class of an applet for use with Java Web Start.

A)HTML document.
B)JNLP document.
C).java file.
D).class file.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
9
The Java platform uses the _________ to prevent code that is downloaded to your local computer from accessing local system resources,such as files.

A)blackbox security model.
B)sandbox security model.
C)whitebox security model.
D)download security model.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
10
The browser that executes an applet is generically known as the ________.

A)applet storage.
B)applet container.
C)applet viewer.
D)applet executer.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following will not produce an error when trying to load and run a program with the appletviewer?

A)Placing additional characters,such as commas,between the components in the tag.
B)Omitting the ending
tag.
C)Creating an applet that is less than 640 pixels by 480 pixels.
D)Running the appletviewer with a file name that does not end with .html or .htm .
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
12
To draw on an applet,the programmer must access the ________ object in the applet's paint method.

A)drawstring
B)drawLine
C)Graphics
D)Pixel
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 12 flashcards in this deck.