Back to marketplace

2.1.2 Thinking Ahead

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

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

Card preview (18)

#1
Front (Question)

What is the purpose of thinking ahead?

Back (Answer)

• Allows developers to consider problems/difficulties that may arise when software is used • Makes programs easy and intuitive to use

#2
Front (Question)

What are inputs?

Back (Answer)

• Any data that is required to solve a problem, often entered into a system by a user • What the system needs to process

#3
Front (Question)

What are outputs?

Back (Answer)

• The results that are passed back once the inputs have been processed and the problem solved • What the system should produce

#4
Front (Question)

Give examples of inputs

Back (Answer)

• Keyboard • Mouse • Microphone

#5
Front (Question)

Give examples of outputs

Back (Answer)

• Speaker • Printer • Monitor

#6
Front (Question)

What considerations do programmers need to make about inputs and outputs when thinking ahead?

Back (Answer)

• Data structure used • Data types used • Order of data

#7
Front (Question)

What are pre-conditions?

Back (Answer)

• Conditions that already exist which may affect how you devise a solution to a problem • Requirements which must be met before a program can be executed

#8
Front (Question)

Where can preconditions be defined?

Back (Answer)

• Within the code or within documentation

#9
Front (Question)

State three advantages of including preconditions within the documentation accompanying a sub-routine

Back (Answer)

• Reduces the length and complexity of the program • Saves time to debug and maintain a longer program • Makes subroutines more reusable

#10
Front (Question)

What is caching?

Back (Answer)

• The process of storing instructions or values into cache memory after they have been used as they may need to be used again • Instructions/programs retrieved from secondary storage and placed into RAM remain there in case they are needed again before the program using them ends

#11
Front (Question)

How is caching used in storing web pages?

Back (Answer)

• The web pages a user frequently accesses will be cached so the next time it is accessed, content can be loaded without delay • Reduces the requests from the client to the web server and vice versa

#12
Front (Question)

What are the advantages of caching web pages?

Back (Answer)

• Content can be loaded without delay • Images and texts do not have be downloaded multiple times • Frees bandwidth for other tasks on a network • Less time is spent waiting

#13
Front (Question)

What is prefetching?

Back (Answer)

• Involves data being requested from RAM by the processor before it is actually required

#14
Front (Question)

Give limitations of caching

Back (Answer)

• Accuracy of algorithms used in prefetching/wrong data is often fetched and cached which then has to be removed • Maintaining correct sequence of data is problematic • Predictive logic - caching algorithms are complicated to implement

#15
Front (Question)

State some advantages of using reusable program components

Back (Answer)

• Shortens development time • Saves systems resources • Lowers development costs • Reduces redundant code

#16
Front (Question)

State disadvantages of using reusable program components

Back (Answer)

• May be compatibility issues with the rest of the software • Components may need to be modified, sometime more costly and time-consuming than developing in house

#17
Front (Question)

What is an advantage of caching?

Back (Answer)

• Faster retrieval times as fetched data from secondary storage is much slower than fetching from RAM

#18
Front (Question)

What are the advantages of pre-written routines

Back (Answer)

• Compiled, tested and error free • Use of libraries saves development time • May have been written indifferent source language • Programmers can take advantage of other programmers’ expertise