Part 1: 4-Software Design and... Flashcards
(10 cards)
1
Q
- Which of the following are objectoriented concepts?
(a) Modules and interfaces
(b) Modules and information hiding
(c) Classes, information hiding, and
inheritance
(d) Concurrency and information hiding
A
C
2
Q
- Which of the following is a characteristic of an object?
(a) A function or subroutine
(b) A module
(c) Groups data and procedures that
operate on the data
A
C
3
Q
- What is a class?
(a) An object instance
(b) The implementation of the object
(c) A collection of objects with the
same characteristics
(d) A collection of objects with different characteristics
A
C
4
Q
- What is an operation (also known as
method) of a class?
(a) Specification and the implementation of a function performed by a
class
(b) Specification and the implementation of a subroutine provided by a
class
(c) Specification and the implementation of a function or procedure provided by a class
(d) Specification and the implementation of an interface provided by a
class
A
C
5
Q
- What is the signature of an operation?
(a) The operation’s name
(b) The operation’s function or subroutine
(c) The operation’s name, parameters,
and return value
(d) The object’s interface
A
C
6
Q
- What is the interface of a class?
(a) The signature of a class
(b) The specification of operations provided by the class
(c) The internals of the class
(d) The implementation of the class
A
B
7
Q
- What is an attribute?
(a) A description of a class
(b) An internal property of a class
(c) A data item held by a class
(d) A parameter of a class
A
C
8
Q
- What is information hiding in software
design?
(a) Hiding information so that it cannot be found
(b) Hiding a design decision that is considered likely to change
(c) Hiding information to make it
secure
(d) Encapsulating data in a class
A
B
9
Q
- What is data abstraction?
(a) Another name for information hiding
(b) Encapsulating data so that its structure is hidden
(c) Storing data in a database
(d) Storing data in a data structure
A
B
10
Q
- What is inheritance?
(a) A mechanism for inheriting characteristics from a parent
(b) A mechanism for sharing and reusing code between classes
(c) A mechanism for sharing data between classes
(d) A mechanism for hiding information between classes
A
B