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 super.paint(g) ;
12 g.setColor(Color.YELLOW) ;
13 g.fillOval(100, 100, 50, 50) ;
14 g.setColor(Color.BLACK) ;
15 g.setFont(new Font("SansSerif", Font.BOLD, 35) ) ;
16 g.drawString("SLOW", 110, 110) ;
17 }
18 }
What shape will the oval have?
A) Oblong, width greater than height
B) Oblong, width less than height
C) Circle
D) Cannot tell
Correct Answer:

Verified
Correct Answer:
Verified
Q36: When you extend an interface, you must
Q37: To support the Swing classes in applets,
Q38: Which of the following is NOT a
Q39: In an HTML document, the tags:<br>A) instruct
Q40: The Applet class requires that you write
Q42: Given the following code, how many times
Q43: Look at the following applet code:<br>1 import
Q44: In the link produced by the following
Q45: Due to security restrictions, applets cannot:<br>A) Delete
Q46: If a frame component is 200 pixels