Professional Documents
Culture Documents
SE Duc ML
SE Duc ML
SE Duc ML
Select one:
a. False
b. True
Questions 6 - 15 concern the following scenario. Given the UML class diagram of a class
named Employee
Employee
- fullName: String
A
B
C
D
E
6. Write the design specification for the attribute Employee.fullName. Your specification must
include the essential constraints which are determined based on your practical understanding of
a person’s date of birth.
@DomainConstraint(type = “String”, mutable = true, optional = false, length = 100)
/**
* @effects <pre>
* if fullName is valid
* initialize this as Employee:<fullName>
* else
* print error message
* </pre>
*/
/**
* @effects <pre>
* if fullName is valid
* set this.fullName = fullName
* return true
* else
* return false</pre>
*/
@DOpt(type=OptType.Mutator)
@AttrRef("fullName")
public boolean setName (String n) {
if (validateName(n)) {
this.name = n;
return true;
}
else {
return false;
}
}
11. Operation C is a helper operation that validates input value for attribute Employee.fullName.
Write the design specification for this operation.
/**
* @effects <pre>
* if name is valid
* return true
* else
* return false</pre>
*/
Select one:
Flag question
Select one:
a. development cycle
b. spine
c. waterfall
d. step-wise
e. decomposition by abstraction
Select one:
b. organise the phases in two pairs: two upper and two lower phases
Question 19
Select one:
Select one:
Question 21
Select one:
Select one:
Question 23
Which of the followings best describes a statement about the input data of a software?
a. all popular science-fiction books are entered into the system by data entry staff
b. user requirements
c. software requirements
d. requirement analysis
e. requirement engineering
Question 25
Select one:
a. performance, reusability
b. modifier, performance
c. accuracy, modifier
d. reusability, accuracy
28 Which of the following lists the basic modeling constructs of an UML class diagram?
a. class, association
b. relationship, entity
c. class, relationship
d. entity, association
e. class, entity
29 What is the primary purpose of a use case diagram?
a. to describe the details of all the use cases of the software
b. to show how the software operates in different situations
c. to show the user interactions in different scenarios
d. to show a diagram of how to use the system
30 the requirement specification language
a. is a programming language that the developer uses
b. is a mathematical language that makes precise the requirements
c. i adapted from the design specification language
d. is a natural language that the end user communicates
31 Which of the following best describes the output of object oriented software design?
a. detailed requirement specification and diagrams
b. design specification and diagrams
c. design models and diagrams
d. functional design specification and diagrams
e. data design specification and diagrams
32 What are the first two design iterations called?
a. important and key abstractions
b. beginning and preparation
c. preparation and starting
d. initial and top-level abstractions
33 Which of the following best describes the object-oriented design technique named
“decomposition by abstraction”?
a. decompose a system into functions and to create/use procedures to perform them
b. decompose each a system into classes and to create/use methods of these classes
c. decompose each software function and create/use abstractions as required to perform to
functions
d. iteratively decompose a system into smaller systems
34 Which of the following is the goal of software design?
a. to write a software specification for the users to understand
b. to construct a detailed drawing of the software
c. to construct the precise specification for how the software wil perform
d. to write a software specification for the designer to understand
35 design refinement means
a. incrementally product a more refined product
b. iteratively make the design size smaller
c. iteratively cut the design into smaller elements
d. incrementally add detail and precision to the design