Java: Swing - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Questions based on the Java Swing.

Sample Question from this online test:

Question: Which of the following methods are invoked by the AWT to support paint and repaint operations?

Option A: paint( )

Option B: repaint( )

Option C: draw( )

Option D: redraw( )

To answer, click the "Start This Test" button below.

Start this Test






Comments

animesh palit on 2011-04-25 13:03:22 wrote,

Question 8 :
How would you set the color of a graphics context called g to cyan?

Option A: g.setColor("Color.cyan");

Option B: g.setColor(Color.cyan);

Option C: g.setCurrentColor(cyan);

Option D: g.setColor("cyan�);

Your Answer: B

Correct Answer: A

The correct answer is B, as Color.cyan in defined color.
arg0.setColor(Color.cyan); // run without any error.

ganesh puli on 2011-05-14 03:25:05 wrote,

i am in doubt with 8 th question
thank u very much

ganesh puli on 2011-05-14 03:25:11 wrote,

i am in doubt with 8 th question
thank u very much