2.1.2 Thinking ahead Flashcards
2.1.2 A)
What’s does Identifying the inputs and outputs for a given situation do ?
Allows developers to consider problems that may arise taking these account early on
2.1.2 A)
Identifying the inputs and outputs for a given situation
What is the goal ? (output)
back track to find inputs
input > process > outpit
order / method data is imputed in should be taken into account (suitable data type)
2.1.2 B)
Determine the preconditions for devising a solution
to a problem
precondition - requirement that must be met be execute programs allow for safety of data meeting criteria
reduces complexity and length of program
2.1.2 C)
What is caching
and whats the advantages
storing instructions or values in cache
saves time , loads without delay
2.1.2 C)
What is prefetching
predicts what likely to be fetched again less time waiting
2.1.2 C)
What is prefetching limited by
by accuracy of algorithm used, difficult to implicate
2.1.2 D)
What is the need for reusable program
Shortens development time / cost
saves systems rescores
reduces redundant code
2.1.2 D)
How to make a program more reusable
creating subroutines / functions
software libraries