Back to marketplace

2.1.2 Thinking Ahead

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

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

Card preview (12)

#1
Front (Question)

What are preconditions?

Back (Answer)

Requirements which must be met before a program can be executed

#2
Front (Question)

What are inputs?

Back (Answer)

Data required to solve a problem Entered by user

#3
Front (Question)

What are outputs?

Back (Answer)

Results that are passed back Produced after inputs have been processed

#4
Front (Question)

What are reusable program components?

Back (Answer)

Commonly used functions can be packaged into libraries for reuse

#5
Front (Question)

State the three types of reusable components.

Back (Answer)

Abstract data structures Classes Subroutines

#6
Front (Question)

State 2 advantages of using reusable program components.

Back (Answer)

More reliable as already tested Save time, money & resources

#7
Front (Question)

What disadvantage do reusable program components have?

Back (Answer)

May need to be modified to be compatible with existing software Can be more costly and time-consuming than developing from scratch

#8
Front (Question)

What is caching?

Back (Answer)

Storing instructions or values in cache memory after use for possible future use

#9
Front (Question)

Give 2 advantages of caching.

Back (Answer)

Save time retrieving instructions from secondary storage Frees up bandwidth for other tasks on network

#10
Front (Question)

What is prefetching?

Back (Answer)

Algorithms predict which instructions are likely to soon be fetched Instructions loaded & stored in cache

#11
Front (Question)

What is the advantage of using prefetching?

Back (Answer)

Less time waiting for instructions to be fetched

#12
Front (Question)

Give 2 disadvantages of prefetching.

Back (Answer)

Difficult to implement well Effectiveness depends on caching algorithm’s ability to manage cache