Developing Software Flashcards
Name the three main constructs of programming
Sequence, selection and iteration
Describe the ‘sequence’ construct of programming
Sequence is the process of a program running instructions one after the other, from the top of the program to the bottom
What is a syntax error caused by
A syntax error is caused by the failure of the programmer to use the correct grammatical rules of the language
What is a run-time error caused by
A run-time error occurs when the user directs the computer to perform an illegal operation, e.g. Dividing a number by zero, assinging a variable to the wrong type of variable, using a variable in a program before assigning a value to it, etc.
What makes logic errors the hardest errors to detect in a program
They are the hardest to detect as they do not halt the program
Describe black box testing
Black box testing treats the system as one that cannot be seen in detail. The structure of the program is not taken into account. The tests are based on what the program does.
This approach should generally be performed as so:
Code and unit test a component
Add the component to the existing combination
Test and debug the new combination
Describe white box testing
White box testing treats the system as one in which the workings can be seen. The structure of the program is taken into account when tests are designed for the program. It should do the following:
Guarantee all statements in the program have been tested at least once
Test all decision statements on their true and false side and check to see which paths have not been tested in the black box approach
Test all loops at their boundaries and their operational limits
Exercise internal data structures to check their validity
Create new test data for paths not already tested
Name the three main categories test data can be divided into
Normal, extreme and exceptional
Describe normal test data
Data input that is likely that the program will process during a typical run
Describe extreme test data
Data input that is not typical and may occur at the boundaries of the programs processing
Describe exceptional test data
Data input that is incorrect and will need to be validated by the program to prevent the program giving incorrect results or crashing
State the five parts a technical guide is composed of
Project brief Specification document Design document Program code listing Test documentation
Describe a project brief
A project brief sets out the general requirements of a client from a system. It is written in non-technical terms and acts as a reference for the programming team. Used as the basis for the creation of the software requirements specification
Describe what a software requirements specification includes and why it is used
The project brief is normally not detailed enough for implementation. The software requirements specification is a complete statement of the functional and informational requirements of the proposed system.
Its structure will be similar to this:
Introduction
Information description
Functional description
Describe a design document
The design document shows the architectural design of the system. Architectural design is concerned with the overall organisation of a software system. The main idea is to use functional decomposition.