Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Given the declaration, Integer num; The statement num = 8; is known as autoboxing of int type.

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

True

When you click a JButton, an event, known as an action event, is created.

Free
(True/False)
4.8/5
(36)
Correct Answer:
Verified

True

The class Container is included in the package java.awt.

Free
(True/False)
4.8/5
(43)
Correct Answer:
Verified

True

Which of the following is NOT a required attribute of a window?

(Multiple Choice)
4.8/5
(32)

If lengthTF is a JTextField and pane is a container, then the statement pane.add(lengthTF); adds the text field to the content pane of a window.

(True/False)
4.9/5
(32)

Wrapper class objects are mutable.

(True/False)
4.8/5
(37)

What is the name for Java classes that are provided so that values of primitive data types can be treated as objects?

(Multiple Choice)
4.7/5
(33)

Which of the following statements is NOT true about GUI programs?

(Multiple Choice)
4.9/5
(33)

In Java, extends is a reserved word.

(True/False)
4.8/5
(42)

To determine whether two reference variables of the Integer type point to the same Integer object, we can use either the method equals of the class Integer or the operator ==.

(True/False)
4.9/5
(34)

An interface is a class that contains only the method headings and each method heading is terminated with a semicolon.

(True/False)
4.9/5
(48)

To compare the values of two Integer objects for equality, we can use the method equals of the class Integer.

(True/False)
5.0/5
(45)

Which package will you most likely have to import in order to write a GUI program?

(Multiple Choice)
4.7/5
(28)

In Java, there is one way to make an application program create a window.

(True/False)
4.9/5
(45)

To create a window, which of the following classes has to be extended?

(Multiple Choice)
4.7/5
(41)

Which method is used to register a listener object to a button object?

(Multiple Choice)
4.8/5
(34)

Which of the following methods is NOT part of the class JFrame?

(Multiple Choice)
4.9/5
(38)

Which of the following is not a method of the class JTextField?

(Multiple Choice)
4.8/5
(33)

Which modifier is used to build classes on top of classes that are interfaces?

(Multiple Choice)
4.9/5
(40)

The method addWindowListener is included in the class JFrame.

(True/False)
4.7/5
(30)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)