1.  An applet can play an audio file represented by the AudioClip interface in the java,applet package Causes the audio clip to replay continually in which method ?


public void play()
public void loop()
public void stop()
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  An applet can play an audio file represented by the AudioClip interface in the java.applet package. The AudioClip interface has how many methods?


2
3
1
4


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  In Applet which are common security restrictions ?


Applets can't load libraries or define native methods
An applet can't read every system property
Applets can play sounds
Both A & B


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  The constructor for Font class is _____________


Font(String name)
Font(string name, int style, int size)
Font(String name, int size)
Font(String name, int style)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  The following example shows the creation of a
import java.applet.*;
import java.awt.*;
public class Main extends Applet{
public void paint(Graphics g){
g.drawString(‘’Welcome in Java Applet.’’,40,20);
}
}


Banner using Applet
Basic Applet
Display clock
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report