1) when an applet is terminated the following sequence of methods calls takes place?
A) stop(),paint(),destroy()
B) destroy(),stop(),paint()
C) destroy(),stop()
D) stop(),destroy()
2) This method is used to suspend threads that don’t need to run when the applet is not visible?
A) destroy()
B) paint()
C) stop()
D) start()
3) Which method is called only once during the run time of your applet?
A) stop()
B) paint()
C) init()
D) destroy()
4) The APPLET tag is used to start an applet from both an HTML document and from an applet viewer?
A) True
B) False
5) Which is a required attribute that gives the name of the file containing your applet’s compiled .class file?
A) CODE
B) CODEBASE
C) ALT
D) NAME
6) Applet works at client side so less response time?
A) True
B) False
7) Applet runs inside the browser and does not works at client side?
A) True
B) False
8) In Applet which are common security restrictions?
A) Applets can't load libraries or define native methods
B) An applet can't read every system property
C) Applets can play sounds
D) Both A & B
9) Which Invoked immediately after the start() method, and also any time the applet needs to repaint itself in the browser?
A) stop()
B) init()
C) paint()
D) destroy()
10) An applet can play an audio file represented by the AudioClip interface in the java.applet package. The AudioClip interface has how many methods?
A) 2
B) 3
C) 1
D) 4
11) 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?
A) public void play()
B) public void loop()
C) public void stop()
D) None of the above
12) 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);
}
}
A) Banner using Applet
B) Basic Applet
C) Display clock
D) None of the above
13) Applets cannot make network connection exception to the server host from which it originated?
A) True
B) False
A) stop(),paint(),destroy()
B) destroy(),stop(),paint()
C) destroy(),stop()
D) stop(),destroy()
2) This method is used to suspend threads that don’t need to run when the applet is not visible?
A) destroy()
B) paint()
C) stop()
D) start()
3) Which method is called only once during the run time of your applet?
A) stop()
B) paint()
C) init()
D) destroy()
4) The APPLET tag is used to start an applet from both an HTML document and from an applet viewer?
A) True
B) False
5) Which is a required attribute that gives the name of the file containing your applet’s compiled .class file?
A) CODE
B) CODEBASE
C) ALT
D) NAME
6) Applet works at client side so less response time?
A) True
B) False
7) Applet runs inside the browser and does not works at client side?
A) True
B) False
8) In Applet which are common security restrictions?
A) Applets can't load libraries or define native methods
B) An applet can't read every system property
C) Applets can play sounds
D) Both A & B
9) Which Invoked immediately after the start() method, and also any time the applet needs to repaint itself in the browser?
A) stop()
B) init()
C) paint()
D) destroy()
10) An applet can play an audio file represented by the AudioClip interface in the java.applet package. The AudioClip interface has how many methods?
A) 2
B) 3
C) 1
D) 4
11) 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?
A) public void play()
B) public void loop()
C) public void stop()
D) None of the above
12) 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);
}
}
A) Banner using Applet
B) Basic Applet
C) Display clock
D) None of the above
13) Applets cannot make network connection exception to the server host from which it originated?
A) True
B) False