Topic 17a: Design, Testing and Documenting Solutions Flashcards
There are 3 forms of design methodology and they are
structure diagrams, flow charts and Pseudocode
A text editor is an
area within programming language where program code is entered, deleted or amended.
Some special features of text editor to make it easier are
auto-complete commands, colour coding, highlighting of error and pop-up help windows
Structure diagrams and flow charts are known as
graphical design methods
Structure diagrams and flow charts are useful for illustrating when
certain sections of code are selected, i.e. statements
Certain sections of code are being repeated i.e. loops
Pseudocode is known as a
text based design method
Pseudocode takes less time to
turn into the final program code because it very closely resembles the final code. Each line matches a corresponding line in the final code
There are 3 types of test data and they are;
normal, extreme and exceptional
Normal test data, is data
within the set range.
Extreme test data is
data on the boundaries of the range. So a range of 1 to 100 would have extreme test data of 1 or 100
Exceptional test data
is data completely without the set range. So a range of 1 to 100 would have exceptional test data of 5000 or cat
The code within a program can be made more readable by using
internal commentary, indentation and meaningful variable names.
Internal commentary is a
short description placed at the beginning of each section of code. It describes what that section of code does.
Meaningful variable names are when
variables are created and care is taken to give the variable a name which relates to the data it contains
Indentation is useful in
making the structure of a section of code more obvious