Java: Graphics & Fonts - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Computer Programming: Questions based on graphics and font classes in AWT.

Sample Question from this online test:

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

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

Option B: g.setCurrentColor(cyan);

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

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

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

Start this Test






Comments

No comment yet. Be the first to post a comment.