Back to marketplace

10.2 Thinking Ahead

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

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

Card preview (10)

#1
Front (Question)

What is the ‘input’ in an abstract model?

Back (Answer)

The information relevant to the problem, which could for example be passed as parameters to a subroutine

#2
Front (Question)

What is the ‘output’ in an abstract model?

Back (Answer)

The solution to the problem, which could be passed back from a subroutine

#3
Front (Question)

Why is it important to think ahead?

Back (Answer)

Because the algorithm you are working on must be correct and it also must be efficient

#4
Front (Question)

Advantages of documenting the inputs and outputs?

Back (Answer)

There is no ambiguity in what must be supplied to the sub-procedure and what is returned

#5
Front (Question)

Advantages of specifying preconditions

Back (Answer)

• Makes program components reusable • Cutting out unnecessary checks • Makes programs easier to debug and maintain

#6
Front (Question)

What are some examples of reusable program concepts?

Back (Answer)

Libraries and components

#7
Front (Question)

List some typical standards for reusable modules

Back (Answer)

• Inputs, outputs and preconditions should be documented • Variable identifiers should conform to a standard convention

#8
Front (Question)

Cashing

Back (Answer)

Temporary storage of data and instructions

#9
Front (Question)

Advantages of caching

Back (Answer)

• Faster access to cached resources • Saving on costly use of bandwidth • Reduced load on web services in a client-server environment

#10
Front (Question)

Drawbacks of caching

Back (Answer)

• Slower performance if the resource isn’t found in the cache • Could be given a stale copy of a resource when an up-to-date copy is needed