Font size
WorksheetsNP Lab exam (12/11/20)
Total questions: 10
Worksheet time: 8mins
Which java package is used to create GUI application programs?
java.lang
java.awt
java.io
Which event is generated when clicking a Button?
ActionEvent
ClickEvent
WindowEvent
Which tool is used to display the output of an applet?
java interpreter
java compiler
appletviewer
Which command is used to compile a Java program?
java
javab
javac
javad
Which one of the following command is used to run "Student.java" program.
java Student.java
java Student
javac Student
Applet programs does not contain main( ) method.
True
False
Which one of the following is syntactically correct to set the background colour to green?
Setbackground.green
SetBackground(green)
setBackground(Color.green)
setBackgroundColor(green)
Which one of the following is not a swing GUI component?
JFrame
JLabel
Button
JTextField
Which of one of the following package does not contain GUI components?
java.applet
java.awt
javax.swing
java.io
In applet, GUI designs are done inside ....... method.
init( )
start( )
stop( )
paint( )
