Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which method determines if a JCheckBox is selected? Select one: isSelected getSe

ID: 3829533 • Letter: W

Question

Which method determines if a JCheckBox is selected?

Select one:

isSelected

getSelected

selected

None of the above

Question 13

The logical relationship between radio buttons is maintained by objects of what class?

Select one:

ButtonGroup

Group

MutualExclusionGroup

RadioButtonGroup

Question 14

Method _____ indicates that a Component should be refreshed on screen as soon as possible with a call to that control’s paintComponent method.

Select one:

redraw

repaintComponent

refresh

repaint

Question 15

In the Java coordinate system, the point (0, 0) is ________.

Select one:

The upper-right corner of the screen.

The upper-left corner of the screen.

The lower-right corner of the screen.

The lower-left corner of the screen.

Question 16

Which of the following statements about the Graphics object is true? Select all that apply.

Select one or more:

The Graphics object manages a graphics context.

The Graphics object is the argument to a lightweight GUI component's paintComponent method.

The Graphics class is abstract.

The Graphics object is an argument to class Component’s repaint method.

The Graphics object is instantiated by the user.

Question 17

The Java statement:

g.fillOval(290, 100, 90, 55);

Select one:

Draws a filled oval with its center at coordinates x=290, y=100, with width=90 and height=55.

Draws a filled oval bounded by a rectangle with its center at coordinates x=290, y=100, with height=90 and width=55.

Draws a filled oval with its leftmost point at coordinates x=290, y=100, with width=90 and height=55.

Draws a filled oval bounded by a rectangle with its upper-left corner at coordinates x=290, y=100, with width=90 and height=55.

Explanation / Answer

Answer:

12)Which method determines if a JCheckBox is selected?

Ans-. isSelected

13)

Ans-. ButtonGroup.

14)

Ans-. repaint.

15)

Ans-. The upper-left corner of the screen.

16)

Ans-. The Graphics object is the argument to a lightweight GUI component's paintComponent method.

The Graphics class is abstract.

The Graphics object manages a graphics context

17)

Ans-. Draws a filled oval bounded by a rectangle with its upper left corner at coordinates x=290, y=100, with height 55 and width 90.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote