Exam 7: Object-Oriented Design

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

An example of an aggregation relationship is

(Multiple Choice)
4.8/5
(37)

The idea of having programmers and developers meet in order to critique a software design or implementation is known as

(Multiple Choice)
4.9/5
(39)

If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if C1 c = new C1( ); is performed at one point of the program, then a later instruction c.whichIsIt( ); will invoke the whichIsIt method defined in C1.

(True/False)
4.7/5
(39)

Java does not support multiple inheritance, but some of the abilities of multiple inheritance are available by

(Multiple Choice)
5.0/5
(37)

Arranging components in a GUI container is accomplished by using which of the following?

(Multiple Choice)
4.8/5
(31)

In what way is black-box testing better than glass-box testing? In what way is glass-box testing better than black-box testing?

(Essay)
4.9/5
(44)

Which of the following interfaces would be used to implement a class that represents a group (or collection) of objects?

(Multiple Choice)
4.8/5
(35)

All parts of a container in BorderLayout must be used.

(True/False)
4.9/5
(40)

In using the BoxLayout, adding space between components in a container can be accomplished by

(Multiple Choice)
4.7/5
(35)

What is wrong with the following message to create a BoxLayout for the JPanel jp? Jp)setLayout(new BoxLayout(BoxLayout.X_AXIS));

(Multiple Choice)
4.7/5
(32)

Provide code to generate the following JFrame. Each lettered item is a JButton. Hint: Create several JPanels, each one having two or more JButtons and taken up a portion of the JFrame. Provide code to generate the following JFrame. Each lettered item is a JButton. Hint: Create several JPanels, each one having two or more JButtons and taken up a portion of the JFrame.

(Essay)
4.8/5
(40)

Which Layout Manager is used by default if you do not specify a Layout Manager for your GUI container?

(Multiple Choice)
4.8/5
(42)

Provide a reason why a method would be declared static.

(Essay)
4.9/5
(35)

Write code to create a JPanel with 4 JCheckBox GUI components and two JLabels for output, one that says "Current cost is" and the other that outputs the computed cost based on which of the food items has been selected.

(Essay)
4.8/5
(31)

In black-box testing, the tester should already know something about how the program is implemented so that he/she can more carefully identify what portion(s) of the software are leading to errors.

(True/False)
4.7/5
(37)

Provide a reason why an instance data would be declared static.

(Essay)
4.9/5
(45)

All objects implement Comparable.

(True/False)
4.9/5
(41)

In order to create a constant, you would use which of the following Java reserved words?

(Multiple Choice)
4.9/5
(31)

If a programmer follows the four phases of program development as intended, which of the four phases should require the least amount of creativity?

(Multiple Choice)
4.7/5
(35)

Which Layout Manager type would you use if you want GUI components to be placed at the North, South, East, West and Center of the container?

(Multiple Choice)
4.8/5
(31)
Showing 41 - 60 of 76
close modal

Filters

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