Java Applets in Java MCQs

@T-Bone

This question paper focuses on the "Java Applets" of the Java programming. These Multiple Choice Questions (mcq) should be practiced to improve the Java programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Java Applets" of the Java programming. These Multiple Choice Questions (mcq) should be practiced to improve the Java programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. An applet is a Java class that extends the?

Mark the correct option

2. Applets are designed to be embedded within an __________.

Mark the correct option

3. Which of the following is required to view an applet?

Mark the correct option

4. Which method is automatically called after the browser calls the init method?

Mark the correct option

5. Which method is only called when the browser shuts down normally?

Mark the correct option

6. Which of these operators can be used to get run time information about an object?

Mark the correct option

7. Which method causes the audio clip to replay continually?

Mark the correct option

8. paint() is an abstract method defined in AWT.

Mark the correct option

9. ___________ method is defined in Graphics class, it is used to output a string in an applet.

Mark the correct option

10. What will be output for the following code? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString(""A Simple Applet"", 20, 20); } }

Mark the correct option

Index of Questions