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 will be the coordinates of the center of the oval?
A) (100, 100)
B) (50, 50)
C) (100, 50)
D) (125, 125)
Correct Answer:
Verified
Q33: If an applet attempts to violate one
Q34: Given the following code, how many times
Q35: Which of the following sound file formats
Q36: One way of viewing the results of
Q37: In the following code that uses a
Q39: The _ object is responsible for drawing
Q40: Hypertext can contain:
A) a Java application program
B)
Q41: For all Swing components EXCEPT JApplet and
Q42: Whenever you need a component of any
Q43: Some browsers do not directly support the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents