Deck 20: Applets

Full screen (f)
exit full mode
Question
The HTML tag used to insert a horizontal line on a page is:
(a)< h1 >
(b)< href >
(c)< hr >
(d)< br >
Use Space or
up arrow
down arrow
to flip the card.
Question
Images can be embedded within HTML pages.
Question
HTML is part of the Java language.
Question
The terms HTML document and HTML page mean the same thing.
Question
The class ___________ converts a digital picture to an icon for us in an applet.
(a)ImageIcon
(b)JAppletIcon
(c)IconImage
(d)IconJApplet
Question
An applet class is normally defined as a derived class of the class JApplet.
Question
Applets do not normally have constructors.The ___________ method performs the initialization of instance variables.
(a)setJMenuBar()
(b)init()
(c)paint()
(d)close()
Question
HTML stands for:
(a)Hyperlink Making Language
(b)Hyper Markup Language
(c)Hypertext Markup Language
(d)Homepage Markup Language
Question
Applets normally do not contain a main method.
Question
To use the JApplet class,you must import the ______________ package.
(a)java.awt
(b)java.lang
(c)java.util
(d)javax.swing
Question
An HTML comment is delimited by:
(a)< // / >
(b)< !-- -- >
(c)< ?-- -- >
(d)< !- - >
Question
HTML is a high-level language.
Question
URL stands for:
(a)Unified Resource Locator
(b)Uniform Reader Locator
(c)Uniform Resource Locator
(d)Uniform Resource Language
Question
An applet is embedded within an HTML document by adding a reference to a valid class file within the tag.
Question
When you place an applet in an HTML document,you give the name of the _____________ file for the applet.
(a))java
(b))class
(c)both A & B
(d)none of the above
Question
The HTML tag that allows you to display text in the browser's title bar is:
(a)< title >
(b)< center >
(c)< hr >
(d)< br >
Question
Applets do not support JMenus.
Question
Java _____________ were intended to be run over the Internet.
(a)applications
(b)applets
(c)both A and B
(d)none of the above
Question
The purpose of the address tag is to contain the e-mail address for contacting the document's maintainer as well as the date that the document was last modified.
Question
HTML is case sensitive.
Question
Write an HTML comment containing the phrase "This is a comment."
Question
Create an HTML page for the applet created in number 4 above (the class file is named myApplet.class).
Question
Write a complete Java applet that displays the phrase "Welcome to my world!" in the center of the applet.
Question
Write an HTML statement to create a hyperlink to HYPERLINK "http://www.java.sun.com" www.java.sun.com.The link should read "Java Doc".
Question
Create an HTML block that will display "Absolute Java" in the largest standard heading.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 20: Applets
1
The HTML tag used to insert a horizontal line on a page is:
(a)< h1 >
(b)< href >
(c)< hr >
(d)< br >
C
2
Images can be embedded within HTML pages.
True
3
HTML is part of the Java language.
False
4
The terms HTML document and HTML page mean the same thing.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The class ___________ converts a digital picture to an icon for us in an applet.
(a)ImageIcon
(b)JAppletIcon
(c)IconImage
(d)IconJApplet
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
An applet class is normally defined as a derived class of the class JApplet.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Applets do not normally have constructors.The ___________ method performs the initialization of instance variables.
(a)setJMenuBar()
(b)init()
(c)paint()
(d)close()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
HTML stands for:
(a)Hyperlink Making Language
(b)Hyper Markup Language
(c)Hypertext Markup Language
(d)Homepage Markup Language
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Applets normally do not contain a main method.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
To use the JApplet class,you must import the ______________ package.
(a)java.awt
(b)java.lang
(c)java.util
(d)javax.swing
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
An HTML comment is delimited by:
(a)< // / >
(b)< !-- -- >
(c)< ?-- -- >
(d)< !- - >
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
HTML is a high-level language.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
URL stands for:
(a)Unified Resource Locator
(b)Uniform Reader Locator
(c)Uniform Resource Locator
(d)Uniform Resource Language
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
An applet is embedded within an HTML document by adding a reference to a valid class file within the tag.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
When you place an applet in an HTML document,you give the name of the _____________ file for the applet.
(a))java
(b))class
(c)both A & B
(d)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The HTML tag that allows you to display text in the browser's title bar is:
(a)< title >
(b)< center >
(c)< hr >
(d)< br >
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Applets do not support JMenus.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Java _____________ were intended to be run over the Internet.
(a)applications
(b)applets
(c)both A and B
(d)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The purpose of the address tag is to contain the e-mail address for contacting the document's maintainer as well as the date that the document was last modified.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
HTML is case sensitive.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Write an HTML comment containing the phrase "This is a comment."
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Create an HTML page for the applet created in number 4 above (the class file is named myApplet.class).
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Write a complete Java applet that displays the phrase "Welcome to my world!" in the center of the applet.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Write an HTML statement to create a hyperlink to HYPERLINK "http://www.java.sun.com" www.java.sun.com.The link should read "Java Doc".
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Create an HTML block that will display "Absolute Java" in the largest standard heading.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.