MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Software Design knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WHICH_OF_THE_FOLLOWING_ARE_POST_CONDITION_HEURISTICS??$ |
| A. | Specify restrictions on parameters |
| B. | Specify conditions that must have been established |
| C. | Specify empty preconditions as true or none |
| D. | None of the mentioned |
| Answer» E. | |
| 2. |
Which_of_the_following_are_class_invariant_heuristics?$ |
| A. | Specify restrictions on attributes |
| B. | Specify restrictions on parameters |
| C. | Specify relationships between the parameters and the results |
| D. | All of the mentioned |
| Answer» B. Specify restrictions on parameters | |
| 3. |
What is Class Invariant? |
| A. | A class invariant is an assertion that must be true of any class instance between calls of its exported operations |
| B. | Class invariants must be established by class constructors |
| C. | Class invariants must be preserved by every exported operation in the class |
| D. | All of the mentioned |
| Answer» E. | |
| 4. |
What is precondition? |
| A. | It is an assertion that must be true at the initiation of an operation |
| B. | It is an assertion that must be true upon completion of an operation |
| C. | It is a statement that must be true at a designated point in a program |
| D. | None of the mentioned |
| Answer» B. It is an assertion that must be true upon completion of an operation | |
| 5. |
What is true with respect to operation contract? |
| A. | It is a binding agreement between two or more parties |
| B. | They usually state each party’s rights and obligations |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 6. |
Declarative specifications are preferable for which of the following reasons? |
| A. | Declarative specifications are more abstract because they ignore implementation details, and consequently they are more concise than procedural specifications |
| B. | Declarative specifications focus on an operation’s interface, making it clearer how an operation interacts with its callers |
| C. | Procedural specifications may bias programmers toward the implementation used in the specification |
| D. | All of the mentioned |
| Answer» E. | |
| 7. |
What is procedural specification? |
| A. | A behavior description that does not use an algorithm |
| B. | An algorithmic behavior description |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» C. All of the mentioned | |
| 8. |
What is Signature? |
| A. | The operation’s class (in object-oriented designs) or module (in non-object-oriented designs) |
| B. | The operation name, the names and types of its parameters,and its return type |
| C. | A sentence or two informally stating the operation’s responsibilities |
| D. | A detailed description of the algorithm and data structures used to implement this operation |
| Answer» C. A sentence or two informally stating the operation‚Äö√Ñ√∂‚àö√ë‚àö¬•s responsibilities | |
| 9. |
What is operation specification and what does it include? |
| A. | Specification of an operation’s responsibilities and interface can be collected in one place, in structured |
| B. | It includes Class or Module, Signatures, Descriptions |
| C. | It includes Behavior, Implementation |
| D. | All of the mentioned |
| Answer» E. | |