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

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

  -Which of the following from the window above is a JButton? -Which of the following from the window above is a JButton?

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

C

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

Free
(Multiple Choice)
4.8/5
(27)
Correct Answer:
Verified

B

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.

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

True

Which words from the problem statement above could we use to determine the operations for this program?

(Multiple Choice)
4.7/5
(46)

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

(True/False)
4.9/5
(39)

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

(Multiple Choice)
4.8/5
(42)

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

(True/False)
4.9/5
(42)

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

(True/False)
5.0/5
(35)

Which method contains the code that the program executes when a specific event is generated?

(Multiple Choice)
4.9/5
(37)

Which of the following sets the window width to 100 pixels and the height to 200 pixels?

(Multiple Choice)
4.9/5
(40)

The class JFrame contains the method setSize.

(True/False)
4.9/5
(34)

GUI components are placed in a window called JFrame.

(True/False)
4.7/5
(43)

The method getContentPane of the class JFrame is used to access the content pane of the window.

(True/False)
4.7/5
(41)

The class ActionListener contains only one method, actionEvent.

(True/False)
4.8/5
(39)

In object-oriented design, the nouns found in the problem specification can be used to select the operations in the program.

(True/False)
4.9/5
(40)

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

(Multiple Choice)
4.7/5
(34)

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.9/5
(36)

Every window has a title, width, and height.

(True/False)
4.8/5
(40)

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
(35)

Based on the problem statement above, which of the following would be a data member?

(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 50
close modal

Filters

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