Block 1 Unit 1 Flashcards

1
Q

For each of the three characteristics of software malleability, complexity and size, 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
2
Q

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
3
Q

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
4
Q

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
5
Q

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
6
Q

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

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. The staff issues mentioned in (b) compound these problems.

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

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
9
Q

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
10
Q

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
11
Q

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. (A clear record of the dependencies between modules helps you to predict the impact of a proposed change to a software
system.)

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

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
13
Q

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
14
Q

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
15
Q

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
16
Q

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
17
Q

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
18
Q

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
19
Q

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
20
Q

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
21
Q

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
22
Q

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.

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

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

A

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

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

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

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

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.

26
Q

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.

27
Q

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.

28
Q

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.

29
Q

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.

30
Q

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.

31
Q

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.

32
Q

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.

33
Q

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.

34
Q

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.

35
Q

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.

36
Q

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.)

37
Q

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.

38
Q

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.

39
Q

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.

40
Q

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. In general, it is a simplification of reality, created in order to understand an aspect or viewpoint of the system in question.

41
Q

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.

42
Q

What are the two kinds of rule that govern the use of a modelling language?

A

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.

43
Q

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. With experience practitioners tend to pick and mix from different modelling languages and use the notations that are most appropriate to the task – most modelling languages do not provide notations for all types of tasks.

44
Q

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

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.

46
Q

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.

47
Q

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.

48
Q

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 of
a 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.

49
Q

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.

50
Q

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.

51
Q

What is the purpose of the requirements phase?

A

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

52
Q

What is the purpose of analysis?

A

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

53
Q

What is the purpose of design?

A

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

54
Q

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.

55
Q

Software may deteriorate over time because…

A

a. errors are introduced when the software is changed

b. errors are caused by the environment in which the software operates

56
Q

Decomposition helps people

A

to cope with complexity.

57
Q

give 2 points regarding Abstraction

A

allows you to hide detail and focus on specific aspects.

is a good basis for modelling.

58
Q

The waterfall model of software development is

A

a reasonable approach when the requirements are well understood and defined

59
Q

Agile software development:

A

does not require heavy documentation

60
Q

Traceability:

A

allows you to control the effect of changes to requirements

61
Q

Modelling:

A

can help communication among team members