Unit 1 SAQs Flashcards

1
Q

SAQ 1
In Example 4, we suggested that two systems, for patient monitoring and managing medical records, might be combined into a single system.
Suggest an additional function that might be possible with the combined system that would not have been possible with either of the two original systems alone. What can you say about the boundary of the combined
system compared with the boundaries of the original separate systems?

A

Suppose the monitoring system detected that a patient taking a common drug had a heart problem. If the two systems were combined, it would be possible to automatically check whether the heart problem might be due to a known allergy recorded in the patient’s record.
The boundary of the combined system encompasses a wider scope than the combined boundaries of the separate systems because the combination of patient monitoring and medical records supports a wider range of verifications.

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

SAQ 2
For each of the three characteristics of software mentioned above, explain why errors might arise in a piece of developed software.

A

Malleability. As change is easy to make, often changes are introduced without thorough consideration of the full consequences of each new change introduced.
Complexity. The more complex a piece of software becomes, the more chances there are of a change affecting other parts of the software.
Size. The greater the number of lines of code in a piece of software, the greater the number of likely errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
SAQ 3
(a) What is the defining quality of a good software system, and what are its main characteristics?
A

A good software system is one that meets its users’ needs. We can characterise a good software system as useful, usable, reliable, flexible, available and affordable.

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

SAQ 3

(b) How might greater flexibility make a software system more affordable over its whole life?

A

Users’ needs will change over time. The time taken to implement the changes in requirements in a flexible system is less than for less flexible software. As labour costs are the most significant component of software costs, flexible software is more affordable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
SAQ 3
(c) Give two reasons why a delivered software system might not meet its users’ needs.
A

Software systems are usually out of date even as they are being developed because:

◦ some needs are often missed during requirements capture

◦ users’ needs change with time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
SAQ 4
(a) Suggest a means of measuring the maintainability of a software system.
A

We could measure the effort required by a developer to locate and implement a given change to a software system. That effort can be classified in two components – the effort needed to locate and fix errors (bugs), and the effort needed to adapt the software system to
meet its users’ needs.

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

SAQ 4

(b) What can we learn from legacy systems about developing a good software system?

A

A legacy system may have started out with all the characteristics of a good software system, yet those characteristics may have changed over time, resulting in a less flexible and maintainable product. As change is inevitable, the right processes should be in place to make change happen in a more controlled way. This requires the adoption of standards and documentation conventions that help decision making on changes and how to introduce them. Any changes need to be well documented so that software is still understandable and less dependent on the people initially involved with developing and maintaining the software.

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

SAQ 4

(c) Suggest a reason why legacy systems will always be a problem.

A

The inherent malleability of software makes it easy to change. You have already seen that a legacy system is lacking in flexibility as a result of the number of changes made to it during its operational lifetime. (The analogy with metalworking through malleability is useful. Once a blacksmith forms some component, usually in iron,
there is a limit to the number of times that it can be heated, formed and cooled before that component becomes brittle and hence liable to failure.) This explains why our ability to bolt features and fixes onto a legacy system means that it will eventually become too fragile, and it will become precarious to go any further.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
SAQ 5
(a) Why might you consider splitting up a large project into smaller chunks?
A

There is a limit to how much one person can understand at any one time. So there is a limit to the size of a software system that any one person can deal with. By splitting a large project into smaller chunks, it is possible to identify a number of more manageable tasks
for those involved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
SAQ 5
(b) How does the complexity of a software system affect the maintenance task?
A

It is essential to be able to make a change to a software system without having to know all about that system. Each change becomes difficult when the flow of control and dependencies within programs are complex. The greater the number and nature of the dependencies,
the harder it is to maintain a software system.

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

SAQ 5

(c) What is a module?

A

A module is any identifiable part of a software system that is considered separately. For example, modules may be subroutines (in a procedural language equivalent to methods), classes (in an object oriented language), library functions or other constructs that may be treated independently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
SAQ 5
(d) Why does it help to have low coupling in a software system?
A

With low coupling, there are few dependencies between modules. Therefore changes made to one part (one or more modules) of a software system are less likely to propagate throughout the whole system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
SAQ 5
(e) Give examples of the kinds of information that would be valuable when considering a change to a given module.
A

There are two kinds of information that contribute to the analysis of a proposed change:

◦ Which modules are clients of the module in question? This information indicates how far a change may propagate through the software system.

◦ What assumptions have been made in client modules of the module in question? An understanding of the expected services of a module will help assess the risks associated with a particular change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
SAQ 5
(f) What are the context dependencies of a module? How do they relate to a module’s interface?
A
The context dependencies for a module are the services of other modules that the module needs in order to work correctly. You can express the context dependencies for a module in terms of other interfaces. In effect, you can express the responsibilities of a module in terms of its interface and context dependencies. If the context
provides the services that the module needs and clients meet any conditions specified in the interface, the module can guarantee the provision of the services described in its interface.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
SAQ 5
(g) What are the benefits of using modules with defined interfaces?
A

The benefits are as follows:

◦ Developers will need to know only about the module’s
interface (its syntax and what it requires and achieves – its semantics), not how it provides those services. Consequently developers can be more productive.

◦ Developers can understand aspects of the software system more thoroughly, so fewer bugs will be introduced.

◦ It should be easier to find bugs, as irrelevant modules are avoided.

◦ The possibility of module reuse is increased once it is known what that module provides and requires.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
SAQ 5
(h) Why does it help to have high cohesion in the modules of a software system?
A

With high cohesion, a module carries out a sensible set of operations or activities. Ideally high cohesion implies just one major abstraction per module. The interface abstracts away from what a developer must know in order to use a module. This makes it easier for developers to understand the purpose of the module and how to use it. In addition high cohesion tends to make a module more reusable in other applications, because it provides a set of operations that sit naturally together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
SAQ 5
(i) What characteristics should a module display that will help to ensure that it is easy and cheap to develop and maintain, and that errors are kept to a minimum?
A

A module should have low coupling and high cohesion, represent a good abstraction, and have a well-defined interface that is an encapsulated abstraction of a well-understood concept.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
SAQ 5
(j) Why is it important to achieve a balance between coupling and cohesion?
A
In constructing a system, you may have a choice between a smaller set of loosely coupled, less cohesive modules, or a larger set of tightly coupled, more cohesive modules. In the former case each module may be difficult to understand, while in the latter case the relationships between them may be over-complex. You need to strike
an appropriate balance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

SAQ 6

Suggest some similarities and differences between software architecture and building architecture.

A

They are both abstractions of the structure of a system. They represent decisions that will affect concerns of different stakeholders. They are used as a communication vehicle with different stakeholders.
Changing a building once complete is expensive, whereas changing details or internal decoration is quite cheap but may incur costs in wastage in materials. Software has different properties from building components, in particular its malleability and complexity. Reworking the whole architecture of a software system is also expensive because of the complexity involved
– making internal changes does not incur costs in wastage of materials, as software is malleable, but it incurs other costs in terms of time and work invested.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
SAQ 7
(a) What are the characteristics of a component?
A
A component is a module that is considered to be a sufficiently good abstraction for the problem in hand. A component should be capable of being reused in future projects having the same software architecture, or being easily replaced at a later date within the existing software system. As with all modules, a good component
has a well-defined interface and is an encapsulated abstraction of a well-understood concept, with strong cohesion and low coupling.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
SAQ 7
(b) How does the concept of an architecture contribute to component reuse?
A

The architecture of a software system embodies high-level decisions about the overall structure of the system, and this architecture may apply to more than one system.

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

SAQ 7

(c) Which form of decomposition might be used in a software architecture?

A

The basic form of decomposition used in a software architecture is partitioning to meet a number of separate concerns, each concern being addressed by a subsystem. For example, you might want to
separate the user interface layer from the core business services layer, or you may decide to build or reuse components and/or services for some of the partitions.

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

SAQ 7

(d) What are the similarities and differences between components and services?

A

There are similarities between a service and a component. They both promote reuse and flexibility. They both use public interfaces to allow requesters to make use of their functionality without relying on
their implementation. There are differences too. A component is usually implemented in a specific object-oriented technology, therefore only clients compliant with that technology can easily communicate and integrate with it. In contrast, a service uses communication standards that allow the interoperation of diverse technologies.
Finally, components tend to be associated with business entities, while services tend to be associated to business processes – they may realise part or the whole of the functions within such a process and may involve several business entities. Be aware that although this is a widely accepted classification, not everyone follows it, and you may see components called services and vice versa.

24
Q

SAQ 8
Give the characteristics of an engineering approach that support the argument that software development is an engineering discipline.

A

Software development follows an engineering approach provided that the following conditions are met:

  • it is concerned with meeting a set of requirements that are defined as clearly as possible
  • it uses a defined process with clear activities, each of which has at least one identifiable end product
  • developers can apply their skills and experience to the tasks demanded of them
  • validation and verification are regarded to be as essential as building the software itself
  • it makes sensible use of tools and standards
  • it follows a code of practice.
25
Q

SAQ 9

(a) What is a development process?

A

A development process is a set of rules that defines how a software development project should be carried out. It incorporates a number of activities, and a process model (or life cycle) that indicates how these activities are ordered.

26
Q
SAQ 9
(b) What should the role of project management be with respect to the deliverables of a development project?
A

A good software system must be affordable and available within an appropriate timeframe. Each deliverable uses resources, such as developers’ time, that add to its cost. Project management involves the identification of the appropriate deliverables for a given set of requirements and controlling the cost of producing them. Project management also involves ensuring that deliverables are produced on time and taking steps to cope with any delays.

27
Q

SAQ 9

(c) What is the difference between a customer and a user?

A

A customer is the person who pays for a software system, whereas a user is someone who will use that system on a day-to-day basis. A customer will also be a user when the proposed software system is
intended to support their job.

28
Q
SAQ 9
(d) Suggest a reason why maintenance is a core activity in the development of a good software system.
A

Maintenance allows a software system to evolve over its operational lifetime so that it continues to be useful.

29
Q
SAQ 9
(e) What additional task is needed when the development of a software system is partitioned into a number of increments?
A

A task devoted to the integration of the increments to form the final software system will be needed.

30
Q
SAQ 9
(f) What are the assumptions on which the waterfall model is based?
A

There is an assumption that once a particular activity or phase is finished, it is not re-entered, and that the activities do not overlap but follow each other in a sequential life cycle. There is no need for reviewing or reworking. All this presupposes that an end point for
each activity can be identified.

31
Q

SAQ 10
(a) Why might a software development company specialise in a certain kind of customer, such as those in banking or health care?

A

Through specialisation, a software development company can foster experience in a given domain, whether it is banking, health care or any other field of interest. The developers in that company would
have (or would hope to gain) sufficient knowledge to understand the problems raised by the users and therefore be able to present solutions in a form that can be understood by those users. In addition, the company may develop and use a consistent development process that is appropriate to the set of customers in that domain.

32
Q
SAQ 10
(b) In which of the activities in Figure 5 would you expect to do your configuration management during a project?
A

Maintenance deals with change. Configuration management is the discipline of managing and controlling change, and so you would
expect maintenance to be where you would perform many of the configuration tasks. However there is a role for configuration management during the development process in, for example, ensuring the consistency of models. Quality management is the activity in which you would perform these tasks.

33
Q

SAQ 10

(c) Why are there additional risks when developing large projects?

A

The chances of failure increase as the size of a software project increases, as more errors are likely to be introduced. Effective communication between the members of a large team also becomes more difficult.

34
Q
SAQ 10
(d) What is added to a development process with the introduction of risk management?
A

The most important additional aspect is the use of the identification, evaluation and reviewing of risks that are carried out with each iteration of the development. These steps introduce feedback into the process to help ensure that the deliverables at each stage are leading
in a timely manner towards the correct product, and risks are controlled.

35
Q
SAQ 11
(a) Why is traceability important to the development of software?
A

Traceability is important for the reconstruction of significant events. In software development it should be possible to follow all the activities undertaken in response to a proposed change. In particular, you should be able to trace backwards from an implemented component or components, through their design, to a given requirement.

36
Q
SAQ 11
(b) How does documentation contribute to traceability within a development project?
A

Within a development project, documentation records the progress from requirements to implementation (and beyond). It is possible to identify each requirement and follow the actions taken to implement a solution to that requirement. You might, quite simply, be required
to show that you have implemented each requirement correctly.

37
Q
SAQ 11
(c) Which activity or activities in the development process (shown in Figure 5) are most affected by poor documentation?
A

All seven activities will be affected by poor documentation. The maintenance and quality management activities will be most affected
because they rely on the existence of traceability within the outputs of a development activity. (You saw this problem earlier when we looked at legacy systems.)

38
Q
SAQ 11
(d) For what kind of software system might you minimise or even avoid any documentation?
A

If a proposed software system is likely to have a short lifetime and will be discarded after use, it may be acceptable to minimise or avoid the task of documentation.

39
Q
SAQ 11
(e) How would you characterise agile documentation?
A

Agile documentation should be gathered with a purpose, should be easy to use and above all should justify the effort put into gathering it. There is no reason why this shouldn’t apply to any kind of documentation but often software development produces heavy documentation that is rarely used.

40
Q
SAQ 11
(f) Why is it important to review the contents of your project notebook?
A

The act of reviewing your notes helps you to identify what worked and what did not, as long as the notebook records accurately what you did and when. A review helps you to trace the events that led to the decisions you made since your previous review. Regularly
reviewing your notes also enables you to check that you have followed up on all the decisions that you made.

41
Q
SAQ 12
(a) What is a model?
A

A model, in terms of software development, is an abstract representation of a specification, a design or a system, from a particular point of view.

42
Q
SAQ 12
(b) What is a ‘good model’?
A

A ‘good model’ is an abstraction that allows those involved to concentrate on the essentials of a complex problem by excluding non-essential details while capturing those of interest.

43
Q
SAQ 12
(c) What are the two kinds of rule that govern the use of a modelling language?
A

Syntax and Semantics

A modelling language is normally diagrammatic, although it can be textual. In common with natural language, there are two distinct kinds of rule:
◦ those that determine whether or not a diagram is legal – the syntax of a diagram
◦ those that define what a legal diagram means – the semantics of a diagram.

44
Q
SAQ 12
(d) Does a modelling language need to be associated with a particular development process?
A

No, a modelling language does not dictate how it should be used and it is up to a development process to define which notations are appropriate and how they should be used.

45
Q
SAQ 12
(e) What are the required characteristics of a standard modelling language?
A
When choosing a modelling language, it should be:
◦ sufficiently expressive
◦ easy to learn and use
◦ unambiguous
◦ widely used
◦ supported by suitable tools.
46
Q
SAQ 12
(f) How does a standard modelling language contribute to software development?
A

A standard modelling language helps when new people join a project – a common modelling language reduces the time needed to enable them to become productive team members. Also, when a modelling language is widely used, it is likely that project components will
have been constructed using that language. This makes the software easier and cheaper to maintain.

47
Q
SAQ 13
(a) Should you try to capture everything about a design in a single model?
A

No, because you will be interested in different aspects of a design at different times, and different models of your design will be built to reflect your interpretations of users’ needs.

48
Q
SAQ 13
(b) What is the difference between a structural and a behaviour model?
A

A structural model describes the elements of the system and their relationships to other elements. A behaviour model describes the behaviour of a system over a period of time.

49
Q

SAQ 13

(c) Do the models used in a given development project need to be consistent?

A

Yes, the whole set of diagrams should contain the different aspects ofa single software system, so they should not contradict one another.
For example, there must be some consistency checking between the static and dynamic models. This can be automated by a suitable tool.

50
Q
SAQ 14
(a) What is the purpose of domain modelling?
A

Domain modelling is concerned with gaining an understanding of the environment in which any system that is designed must operate.

51
Q
SAQ 14
(b) What is the role of each of the artefacts produced during domain modelling?
A

During domain modelling, we produce the following artefacts:
◦ initial problem statement – a description of the problem
◦ behaviour model – a description of the business processes and behaviour of the domain
◦ business rules – constraints on the way the behaviour model operates
◦ glossary – definitions of relevant terms
◦ structural domain model – an initial structural model
representing the concepts relevant to the domain.

52
Q

SAQ 15

What is the purpose of the requirements phase?

A

The requirements phase is concerned with establishing and modelling what a software system must do.

53
Q

SAQ 16

(a) What is the purpose of analysis?

A

Analysis starts modelling the structure and behaviour of a software solution from a user’s perspective.

54
Q

SAQ 16

(b) What is the purpose of design?

A

Design is concerned with making decisions concerning how a system will meet its specification.

55
Q

SAQ 16

(c) What is the role of each of the artefacts produced during design?

A

During design you produce the following artefacts:
◦ structural model, an updated version of the one produced during analysis but with its operations specified
◦ behavioural models, showing how objects in the system will interact and behave internally, and also how functionality will be distributed across the system.