Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

SAINT COM209/ SAINT COM209 MODULE 8 QUIZ 4 (NEW VERSION 2016)

Question

Question 1. Question :

The __________ method provides information about the system in use.

getSystemInfo()

getDefaultToolkit()

getDefaultControlPanel()

getToolkit()

Question 2. Question :

The Swing classes are part of a more general set of UI programming capabilities that are collectively called the __________.

JavaX Classes

Java Foundation Classes

UI packages

Java Extension Libraries

Question 3. Question :

If the beginning and ending points used with the fillPolygon() method are __________, the two endpoints are connected by a straight line before the polygon is filled with color.

connected

coordinate pairs

identical

not identical

Question 4. Question :

__________ contains many commands that allow you to format text on a web page, import graphic images, and link your page to other web pages.

JApplet

HTML

Swing

Applet

Question 5. Question :

If a window is 200 pixels wide by 100 pixels tall, you can place a Button named pressMe in the approximate center of the window with which of the following statements?

pressMe.setLocation(100,50);

pressMe.setPosition(100,50);

pressMe.setLocation(200,100);

pressMe.setPosition(200,100);

Question 6. Question :

You can instantiate an empty Polygon object using which of the following statements?

Polygon someFutureShape = new Polygon(0,0,0,0);

Polygon someFutureShape = new Polygon();

Polygon someFutureShape = new Polygon(0);

Polygon someFutureShape = new Polygon(xPoints, yPoints, xPoints.length);

Question 7. Question :

Use the __________ applet method to perform initialization tasks, such as setting variables to initial values or placing applet components on the screen.

initialize()

begin()

init()

start()

Question 8. Question :

The __________ method requires four arguments and draws the outline of a rectangle using the current drawing color.

clearRect()

drawRect()

fillRect()

paintRect()

Question 9. Question :

If the JApplet class was not already written, you would have to write more than __________ methods to give your JApplet all the capabilities of the built-in JApplet class.

20

50

200

300

Question 10. Question :

Which of the following is NOT a method of the KeyListener interface?

keyTyped()

keyPressed()

keyClicked()

keyReleased()

Question 11. Question :

The __________ method of JCheckBox sets the state of the JCheckBox to true for selected or false for unselected.

void setSelected(boolean)

boolean isSelected()

void setText(String)

String getText()

Question 12. Question :

The __________ method allows you to draw a String in a JFrame window.

drawString()

setFont()

drawLine()

setString()

Question 13. Question :

You specify 2D colors by using the __________ method.

paint()

setPaint()

color()

setColor()

Question 14. Question :

The repaint() method calls another method named __________, which calls the paint() method.

destroy()

actionPerformed()

update()

super()

Question 15. Question :

Which of the following statements will correctly set a JFrame named myFrame to be visible?

myFrame.Visible = True

myFrame.setVisible(true)

myFrame.Visibility.True

myFrame.true = Visible

Question 16. Question :

Applet code runs in a constrained area called a(n) __________.

sandbox

toolbox

appletview

XHTML

Question 17. Question :

The JButton, JCheckBox, JComboBox, and JRadioButton components are associated with the __________ method.

addAdjustmentListener()

addChangeListener()

addWindowListener()

addItemListener()

Question 18. Question :

Which of the following lines of code are used when creating a JApplet using only the init() method?

public add.init()

public void init()

public void start()

public new init()

Question 19. Question :

Which of the following statements will correctly add a JMenuBar named myBar to a JFrame?

myBar = setJMenuBar

setJMenuBar(myBar)

JMenuBar.setJMenuBar(myBar)

JMenuBar = new JMenuBar(myBar)

Question 20. Question :

The Color class contains __________ constants.

3

9

13

16

Show more
  • @
  • 170 orders completed
ANSWER

Tutor has posted answer for $16.00. See answer's preview

$16.00

*********

********

1 Question ** ***

**********

****** ******** information ***** the ****** ** **** **************** ********************

getDefaultControlPanel()

getToolkit()

********

2

Question

:

***

*****

*******

*** part of *

more

******* *** ** UI *********** capabilities that *** ************ ****** *** __________ ***** Classes Java Foundation Classes ** packages ****

*********

********** ********

*

******** ** **

***

beginning ***

******

****** **** ****

***

************* ****** *** **********

the

two ********* *** connected ** * ******** **** before *** ******* is ****** with ****** ********** coordinate pairs ********** not identical ******** * ******** : ********** ******** many commands

****

*****

***

to format

****

**

*

*** page

******

******* ****** *** link

your

**** ** ***** *** pages ******** HTML Swing ******* ******** * Question ** ** * ****** ** *** pixels **** by *** pixels **** ***

***

*****

*

Button

named

pressMe

**

***

***********

center ** *** window

with

***** of *** following ************ pressMesetLocation(10050); *************************** **************************** **************************** ******** * Question : *** can instantiate ** ***** Polygon ****** ***** ***** ** *** ********* statements? ******* someFutureShape * *** ***************

*******

***************

*

new

***********

*******

***************

*

***

************ ******* *************** *

new

Polygon(xPoints ******* **************** ******** 7 ******** ** *** *** ********** ****** ****** **

perform

************** ***** such ** setting

*********

** ******* ****** ** *******

******

components ** the screen *************

********

init() start() ******** 8 Question ** ***

**********

method ******** **** *********

***

***** the ******* ** a ********* ***** the current ******* color ************ *********** *********** paintRect() ******** * Question ** ** *** JApplet *****

was

***

*******

*******

***

*****

have

**

*****

**** **** ********** *******

to

**** **** ******* all *** ************ ** *** ******** ******* ****** *** *** **** **** ******** ** ********

**

*****

of

the

*********

**

NOT

*

method

** the KeyListener interface?

keyTyped()

************* ************* ************** Question 11 ******** ** *** ********** method ** ********* **** the ***** of the JCheckBox ** **** for selected ** ***** for *********** **** setSelected(boolean) *******

*************

void

****************

******

**********

********

12

********

**

*** ********** ****** ******

***

** **** * ****** in * ****** ******* ************* ********** *********** setString()

Question

**

********

**

***

*******

**

colors

**

using *** ********** *******

********

*********** ******** *********** ******** ** ******** : *** repaint() ****** ***** ******* method ***** ********** ***** ***** *** *******

*******

destroy() ******************

*********

******** ********

**

******** **

*****

** ***

following

statements **** ********* ***

*

****** named ******* to be visible? myFrameVisible * ***** ************************ myFrameVisibilityTrue myFrametrue *

********

Question

**

********

**

******

****

****

**

* *********** **** ******

****

*********** ******** ******** appletview XHTML Question ** ******** **

The

*******

JCheckBox

*********

***

************

**********

***

**********

**** the ********** method

************************

******************** addWindowListener() ****************** ******** 18 ******** : ***** of *** ********* lines **

code

***

****

when

********

*

JApplet

*****

****

the init() method? ******

**********

public void init() ****** **** ******** ****** *** ******* Question ** Question ** ***** **

the

following ********** ****

*********

***

*

********

*****

***** ** a

********

myBar * ************ setJMenuBar(myBar)

JMenuBarsetJMenuBar(myBar)

******** = *** JMenuBar(myBar) Question ** ******** ** *** *****

class

********

**********

**********

**

9

13

**

Click here to download attached files: Saint COM209 Module 8 Quiz 4 latest 2016 august.docx
or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question