Quiz 6 Flashcards

(10 cards)

1
Q

T/F
If a module performs multiple, completely unrelated actions, the module should be broken into separate modules, each performing one task.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

T/F
The object-oriented paradigm gives overall equal attention to data and operations.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two modules are __________________ coupled if a data structure is passed as a parameter, but the called module operates on some but not all of the individual components of the data structure.

Stamp
Control
Common
Content

A

Stamp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Among the following coupling types, which of them should be preferred (promotes reuse)?

Content Coupling
Control Coupling
Common Coupling
Data Coupling

A

Data Coupling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_______________ refers to the ability of a function to be applied to different argument types, or an object to refer to instances of various classes at run-time.

Polymorphism
Data Encapsulation
Cohesion
Information hiding

A

Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

T/F
Inheritance is not supported by Java and C++.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

T/F
An instance of a superclass inherits all attributes of its subclass.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

T/F
Polymorphism and dynamic binding can have a negative impact on maintenance.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Two modules are ________________ coupled if they have write access to global data.

Stamp
Common
Content
Control

A

Common

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Among the following cohesion types, which of them should be preferred (promotes reuse)?

Coincidental Cohesion
Informational Cohesion
Temporal Cohesion
Logical Cohesion

A

Informational Cohesion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly