The __________ method provides information about the system in use.

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

 

 

 

Custom Writings Help
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

})();