Part 1: 4-Software Design and... Flashcards

(10 cards)

1
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. 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

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