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

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

4 advantages of top down design

A
  1. allows several programmers to work at the same time on the software
  2. development time is faster
  3. can test each subsystem independently
  4. easier to debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

Library routine

A

block of pre-written code
given a name
carries out common task
can be called from other programs

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

Advantages of library routine

A
  1. makes writing programs easier and faster because code is already written
  2. make program testing easier as code has already been tested and debugged
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Subroutine

A

A self-contained block of code which is given a name

2 types: function or procedure

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

Procedure

A

may or may not return a value

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

Function

A

always returns a value

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

Advantages of subroutine

A
  1. less program codes as subroutine can be written and reused in same program
  2. less memory space used
  3. can be used in other programs
  4. parameter passing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly