Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Quiz 14: Applets and More
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Applet restrictions are:
Question 2
Multiple Choice
________ is the language that Web pages are written in.
Question 3
Multiple Choice
In the link produced by the following HTML, what word would you click to go to the linked location? Click here to learn more about <a href="http://www.applications.com">applications.</a>
Question 4
Multiple Choice
When the applet viewer opens an HTML document with more than one applet tag:
Question 5
Multiple Choice
Look at the following applet code: 1 import javax.swing.*; 2 import java.awt.*; 3 public class GraphicsTest extends JApplet 4 { 5 public void init() 6 { 7 getContentPane() .setBackground(Color.WHITE) ; 8 } 9 public void paint(Graphics g) 10 { 11 int[] xCoords = {20, 20, 60, 100, 140, 140, 100, 60}; 12 int[] ycoords = {20, 100, 140, 140, 100, 60, 20, 20}; 13 super.paint(g) ; 14 g.setColor(Color.YELLOW) ; 15 g.fillPolygon(xCoords, yCoords, 8) ; 16 g.setColor(color.BLACK) ; 17 g.setFont(new Font("SansSerif", Font.BOLD, 35) ) ; 18 g.drawString("SLOW", 35, 95) ; 19 } 20 } What is the color of the polygon?
Question 6
Multiple Choice
Which of the following will load the applet, TestApplet?
Question 7
Multiple Choice
Which of the following is NOT a valid AWT class?
Question 8
Multiple Choice
Which tag will produce largest text?
Question 9
Multiple Choice
What does the tag <p /> cause to happen?
Question 10
Multiple Choice
When someone visits a Web page containing a Java applet:
Question 11
Multiple Choice
An HTML document is usually saved with what file name extension?
Question 12
Multiple Choice
Look at the following applet code: 1 import javax.swing.*; 2 import java.awt.*; 3 public class GraphicsTest extends JApplet 4 { 5 public void init() 6 { 7 getContentPane() .setBackground(Color.WHITE) ; 8 } 9 public void paint(Graphics g) 10 { 11 int[] xCoords = {20, 20, 60, 100, 140, 140, 100, 60}; 12 int[] ycoords = {20, 100, 140, 140, 100, 60, 20, 20}; 13 super.paint(g) ; 14 g.setColor(Color.YELLOW) ; 15 g.fillPolygon(xCoords, yCoords, 8) ; 16 g.setColor(color.BLACK) ; 17 g.setFont(new Font("SansSerif", Font.BOLD, 35) ) ; 18 g.drawString("SLOW", 35, 95) ; 19 } 20 } How many vertices does the polygon have?
Question 13
Multiple Choice
In the following code, which line has an error? 1 public class TestApplet extends JApplet 2 { 3 public void init() 4 { 5 super.JApplet() ; 6 JLabel label = new JLabel("Test label") ; 7 setLayout(new FlowLayout() ) ; 8 add(label) ; 9 } 10 }