Back to marketplace

2.1.2 Thinking ahead

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

Thinking ahead helps:

Back (Answer)

Maximise code efficiencies Minimise errors

#2
Front (Question)

How do we determine what inputs are needed for a system

Back (Answer)

Start with the output and from there find out what you need and the processes to get that output

#3
Front (Question)

If we want to find the volume of a fish tank, what will the inputs, process and outputs be

Back (Answer)

Inputs: length: real / float Width: real / float Height: real / float Process: Length x width x height Output: Volume: real/ float Process

#4
Front (Question)

What are preconditions

Back (Answer)

Conditions that already exist and could affect how you devise a solution to a problem

#5
Front (Question)

What can preconditions affect when attempting to solve a problem

Back (Answer)

Time Cost The overall quality of the solution

#6
Front (Question)

Advantages of caching

Back (Answer)

Quicker than retrieving items from secondary storage Improves efficiency Takes less time One live of code can be used multiple times Use of functions Use of classes Use of external libraries

#7
Front (Question)

Disadvantages of cache

Back (Answer)

Complicated to implement If the cache contains outdated or incorrect data, the wrong data is often retrieved and needs to be removed/ flushed Maintaining the correct sequencing of instructions or data items can be problematic

#8
Front (Question)

What is prefetching

Back (Answer)

Data being requested before it is actually needed

#9
Front (Question)

What is caching

Back (Answer)

The process of temporarily storing copies of frequently used data or instructions in small, fast memory This is quicker and more easily accessed than main memory This increases speed and efficiency of the system Eg. A CPU can store recently used instructions from RAM so the processor can use them faster net time

#10
Front (Question)

What are the benefits of reusing code made and tested by a previous developer

Back (Answer)

Shortens developing time Saves system resources Lowers development costs Reduces redundant code Pointless to write more- potentially flawed- code when perfectly good code already exists

#11
Front (Question)

What is an example of reusing code

Back (Answer)

Libraries Allow developers to use code that has been prewritten and tested code Methods/ subroutines In our code we use methods and subroutines — like functions and procedures — that we call instead of writing the same code multiple times.

#12
Front (Question)

What is external reuse?

Back (Answer)

Reselling components to a third party Eg. Facebook offers integration with other programs and software platforms May also use google, x, or facebook to log into other platforms

#13
Front (Question)

Benefits of external reuse

Back (Answer)

Developers can pull in contacts from friends lists The systems being linked also allows certain procedures and functions to be available to other developers via API