Designs, Systems and Routines Flashcards
1
Q
Top down design
A
Breaks down computer system/program into a set of subsystems
each subsystem just performs a single action
2
Q
4 advantages of top down design
A
- allows several programmers to work at the same time on the software
- development time is faster
- can test each subsystem independently
- easier to debug
3
Q
Structure chart
A
modelling tool used to show hierarchy of a system/program
graphical representation to show how a system is broken into subsystems
4
Q
Library routine
A
block of pre-written code
given a name
carries out common task
can be called from other programs
5
Q
Advantages of library routine
A
- makes writing programs easier and faster because code is already written
- make program testing easier as code has already been tested and debugged
6
Q
Subroutine
A
A self-contained block of code which is given a name
2 types: function or procedure
7
Q
Procedure
A
may or may not return a value
8
Q
Function
A
always returns a value
9
Q
Advantages of subroutine
A
- less program codes as subroutine can be written and reused in same program
- less memory space used
- can be used in other programs
- parameter passing