Q.1:
The APPLET tag is used to start an applet from both an HTML document and from an applet viewer?_
A.True
B.
False
C.
No Option
D.
No Option
Q.2:
Java Plug-in software is not responsible to manage the lifecycle of an Applet?N
A.
True
B.False
C.
No Option
D.
No Option
Q.3:
Applet works at client side so less response time?2
A.True
B.
False
C.
No Option
D.
No Option
Q.4:
Which one of the following is a valid declaration of an applet??
A.
Public class MyApplet extends applet implements Runnable {:
B.
Public Applet MyApplet {
C.Public class MyApplet extends java.applet.Applet {2
D.
None
Q.5:
Which layout is used as their default layout by Window, Frame and Dialog classes?Q
A.
GridLayout
B.
FlowLayout
C.BorderLayout
D.
CardLayout
Q.6:
Which of the following methods set the frame surface color to pink?C
A.
None
B.
SetColor(PINK);
C.SetBackground(Color.pink);
D.
Background(pink);
Q.7:
What is the color of the line, which is drawn by the following code snippet?grph.setColor(Color.red.green.yellow.red.cyan);grph.drawLine(0, 0, 100,100);
A.
Red
B.Cyan
C.
Blue
D.
Green
Q.8:
Which Called when an applet begins execution, It is the first method called for any applet?[
A.Void init()
B.
None
C.
Void destroy()
D.
Boolean isActive()
Q.9:
Which Component method is used to access a component's immediate Container?K
A.
GetImmediate()
B.GetParent()
C.
GetVisible()
D.
GetContainer()
Q.10:
What tags are mandatory when creating HTML to display an applet?@