Filters
Question type

Study Flashcards

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


A) software requirements
B) software design
C) software implementation
D) software testing
E) none of the above, all four levels would require equal creativity

F) B) and D)
G) C) and D)

Correct Answer

verifed

verified

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


A) importing classes
B) implementing interfaces
C) overriding parent class methods
D) creating aliases
E) using public rather than protected or private modifiers

F) A) and D)
G) B) and E)

Correct Answer

verifed

verified

Inheritance through an extended (derived) class supports which of the following concepts?


A) interfaces
B) modulary
C) information hiding
D) code reuse
E) correctness

F) A) and E)
G) A) and B)

Correct Answer

verifed

verified

Which of the following GUI classes requires that it have a LayoutManager before any GUI components are added to it?


A) JButton
B) JSlider
C) JPanel
D) JFrame
E) both C and D but not A or B

F) B) and C)
G) C) and E)

Correct Answer

verifed

verified

In order to display three components vertically in a container, you could use all but which of the following layout managers?


A) FlowLayout
B) BoxLayout
C) GridLayout
D) BorderLayout
E) you could use any of the above

F) C) and D)
G) B) and D)

Correct Answer

verifed

verified

In which phase of program development would you expect the programmer(s) to determine the classes and objects needed?


A) software requirements
B) software design
C) software implementation
D) software testing
E) could occur in any of the above

F) A) and D)
G) B) and D)

Correct Answer

verifed

verified

The JFrame below has a JBorder created using which of the following BorderFactory formats? The JFrame below has a JBorder created using which of the following BorderFactory formats?   A)  TitledBorder B)  MatteBorder C)  EtchedBorder D)  RaisedBevelBorder E)  LoweredBevelBorder


A) TitledBorder
B) MatteBorder
C) EtchedBorder
D) RaisedBevelBorder
E) LoweredBevelBorder

F) All of the above
G) B) and D)

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

JFrame jf = new JFrame( );
JPanel jp1 = ...

View Answer

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


A) including TabbedPanes
B) including JButtons that have no names and thus will appear invisible
C) adding invisible components
D) inserting IconImages of blank images
E) any of the above

F) None of the above
G) A) and E)

Correct Answer

verifed

verified

The term "test case" is used to express a set of inputs (or user actions) and the expected outputs to be used in testing out software.

A) True
B) False

Correct Answer

verifed

verified

Which of the following is considered a top-level container?


A) Panel
B) Frame
C) Box
D) Layout Manager
E) A, B, and C

F) A) and E)
G) None of the above

Correct Answer

verifed

verified

Abstract methods are used when defining


A) interface classes
B) derived classes
C) classes that have no constructor
D) arrays
E) classes that have no methods

F) A) and B)
G) C) and D)

Correct Answer

verifed

verified

If a GUI container is resized by the user, all components of the GUI are automatically increased or decreased by the same fraction to fit in the newly sized container.

A) True
B) False

Correct Answer

verifed

verified

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?


A) FlowLayout
B) BorderLayout
C) BoxLayout
D) GridLayout
E) TabbedPane

F) A) and B)
G) B) and E)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Black-box testing is superior because th...

View Answer

Why was the Y2K problem a problem of software maintenance and not a problem of software testing?

Correct Answer

verifed

verified

The Y2K problem was caused by older soft...

View Answer

The goal of testing is to


A) ensure that the software has no errors
B) find syntax errors
C) find logical and run-time errors
D) evaluate how well the software meets the original requirements
E) give out-of-work programmers something to do

F) A) and B)
G) A) and E)

Correct Answer

verifed

verified

A JPanel can itself contain JPanels.

A) True
B) False

Correct Answer

verifed

verified

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


A) FlowLayout
B) BorderLayout
C) BoxLayout
D) GridLayout
E) TabbedPane

F) B) and E)
G) C) and D)

Correct Answer

verifed

verified

All objects implement Comparable.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 60 of 76

Related Exams

Show Answer