Structured Approach Advantages (AQA GCSE Computer Science): Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
What is the structured approach?
What is the structured approach?
Breaking large programs into smaller, manageable subroutines that handle specific tasks
What are subroutines?
What are subroutines?
Separate modules that handle specific tasks within a program
What are local variables?
What are local variables?
Variables created inside a subroutine with local scope (only exist within that subroutine)
What is local scope?
What is local scope?
When variables only exist within their specific subroutine and cannot be accessed from outside
Advantage: Reduces repetition
Advantage: Reduces repetition
Write code once as a subroutine, then call it whenever needed
Advantage: Maintainability
Advantage: Maintainability
Each subroutine has clear purpose, making code easier to read, understand, and fix
Advantage: Development speed
Advantage: Development speed
Test subroutines individually; debugging easier as problems are isolated
Advantage: Code reuse
Advantage: Code reuse
Same subroutine can be used in multiple different programs
What is a function?
What is a function?
A subroutine that performs a task and returns a value
What is a procedure?
What is a procedure?
A subroutine that performs an action but doesn't return a value
Function vs procedure: key difference?
Function vs procedure: key difference?
Functions return values; procedures don't return anything
Team collaboration benefit
Team collaboration benefit
Different programmers can work on different subroutines simultaneously
Testing benefit of structured programming
Testing benefit of structured programming
Problems are isolated to specific subroutines, making debugging easier
