Deck 23: Applets and Java Web Start
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/12
العب
ملء الشاشة (f)
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.
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
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.
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
A)stop
B)remove
C)destroy
D)end
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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
A)start
B)init
C)paint
D)load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
A)Graphics method drawText.
B)Text method drawLine.
C)Graphics method drawLine.
D)Graphics method drawString.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
A)save.
B)quit.
C)tag.
D)reload.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
A)HTML document.
B)JNLP document.
C).java file.
D).class file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
A)blackbox security model.
B)sandbox security model.
C)whitebox security model.
D)download security model.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
A)applet storage.
B)applet container.
C)applet viewer.
D)applet executer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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.
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 .
A)Placing additional characters,such as commas,between the components in the 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 .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
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
A)drawstring
B)drawLine
C)Graphics
D)Pixel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 12 في هذه المجموعة.
فتح الحزمة
k this deck