1) Which is a special type of program that is embedded in the webpage to generate the dynamic content?
A) Package
B) Applet
C) Browser
D) None of the above
2) Applet runs inside the browser and works at client side?
A) True
B) False
3) In the following statements which is a drawback for Applet?
A) It works at client side so less response time
B) Secured
C) It can be executed by browsers running under many platforms, including Linux, Windows, and Mac Os etc.
D) Plugin is required at client browser to execute applet
4) The java.applet.Applet class 4 life cycle methods and java.awt.Component class provides how many life cycle methods for an applet?
A) 2
B) 3
C) 1
D) 4
5) Which life cycle method of an applet java.awt.Component class provides?
A) public void paint(Graphics g)
B) public void destroy()
C) public void stop()
D) public void init()
6) Which is invoked after the init() method or browser is maximized?
A) public void start()
B) public void paint(Graphics g)
C) Public void stop()
D) Public void init()
7) Which is the correct order for lifecycle of an applet?
A) Applet is intialized,started,painted,destroyed,stopped
B) Applet is painted,started,stopped,initilaized,destroyed
C) Applet is initialized,started,painted,stopped,destroyed
D) None of the above
8) To run an Applet which of these used?
A) By html file
B) By AppletViewer tool(for testing purpose)
C) Both A & B
D) None of the above
9) Java Plug-in software is not responsible to manage the lifecycle of an Applet?
A) True
B) False
10) java.applet defines how many interfaces?
A) 2
B) 3
C) 4
D) 5
11) Which Called when an applet begins execution, It is the first method called for any applet?
A) void init()
B) void destroy()
C) boolean isActive()
D) None of the above
12) When an applet begins, the AWT calls the following methods, in this sequence?
A) init(),paint(),start()
B) Start(),paint(),init()
C) intit(),start(),paint()
D) paint(),start(),init()
A) Package
B) Applet
C) Browser
D) None of the above
2) Applet runs inside the browser and works at client side?
A) True
B) False
3) In the following statements which is a drawback for Applet?
A) It works at client side so less response time
B) Secured
C) It can be executed by browsers running under many platforms, including Linux, Windows, and Mac Os etc.
D) Plugin is required at client browser to execute applet
4) The java.applet.Applet class 4 life cycle methods and java.awt.Component class provides how many life cycle methods for an applet?
A) 2
B) 3
C) 1
D) 4
5) Which life cycle method of an applet java.awt.Component class provides?
A) public void paint(Graphics g)
B) public void destroy()
C) public void stop()
D) public void init()
6) Which is invoked after the init() method or browser is maximized?
A) public void start()
B) public void paint(Graphics g)
C) Public void stop()
D) Public void init()
7) Which is the correct order for lifecycle of an applet?
A) Applet is intialized,started,painted,destroyed,stopped
B) Applet is painted,started,stopped,initilaized,destroyed
C) Applet is initialized,started,painted,stopped,destroyed
D) None of the above
8) To run an Applet which of these used?
A) By html file
B) By AppletViewer tool(for testing purpose)
C) Both A & B
D) None of the above
9) Java Plug-in software is not responsible to manage the lifecycle of an Applet?
A) True
B) False
10) java.applet defines how many interfaces?
A) 2
B) 3
C) 4
D) 5
11) Which Called when an applet begins execution, It is the first method called for any applet?
A) void init()
B) void destroy()
C) boolean isActive()
D) None of the above
12) When an applet begins, the AWT calls the following methods, in this sequence?
A) init(),paint(),start()
B) Start(),paint(),init()
C) intit(),start(),paint()
D) paint(),start(),init()