1. Which of these functions is called to display the output of an applet?
a) display()
b) print()
c) displayApplet()
d) PrintApplet()
2. Which of these methods can be used to output a sting in an applet?
a) display()
b) print()
c) drawString()
d) transient()
3. What does AWT stands for?
a) All Window Tools
b) All Writing Tools
c) Abstract Window Toolkit
d) Abstract Writing Toolkit
4. Which of these methods is a part of Abstract Window Toolkit (AWT) ?
a) display()
b) print()
c) drawString()
d) transient()
5. Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
a) transient
b) volatile
c) global
d) No modifier is needed
6. Which of these operators can be used to get run time information about an object?
a) getInfo
b) Info
c) instanceof
d) getinfoof
7. What is the Message is displayed in the applet made by this program?
a) A Simple Applet
b) A Simple Applet 20 20
c) Compilation Error
d) Runtime Error
8. What is the length of the application box made by this program?
a) 20
b) 50
c) 100
d) System dependent
9. What is the length of the application box made by this program?
a) 20
b) Default value
c) Compilation Error
d) Runtime Error
a) display()
b) print()
c) displayApplet()
d) PrintApplet()
2. Which of these methods can be used to output a sting in an applet?
a) display()
b) print()
c) drawString()
d) transient()
3. What does AWT stands for?
a) All Window Tools
b) All Writing Tools
c) Abstract Window Toolkit
d) Abstract Writing Toolkit
4. Which of these methods is a part of Abstract Window Toolkit (AWT) ?
a) display()
b) print()
c) drawString()
d) transient()
5. Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
a) transient
b) volatile
c) global
d) No modifier is needed
6. Which of these operators can be used to get run time information about an object?
a) getInfo
b) Info
c) instanceof
d) getinfoof
7. What is the Message is displayed in the applet made by this program?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
public void paint(Graphics g) {
g.drawString("A Simple Applet", 20, 20);
}
}
b) A Simple Applet 20 20
c) Compilation Error
d) Runtime Error
8. What is the length of the application box made by this program?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
public void paint(Graphics g) {
g.drawString("A Simple Applet", 20, 20);
}
}
b) 50
c) 100
d) System dependent
9. What is the length of the application box made by this program?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
Graphic g;
g.drawString("A Simple Applet", 20, 20);
}
b) Default value
c) Compilation Error
d) Runtime Error