2.1.2 Thinking Ahead Flashcards

1
Q

What is caching?

A

The temporary storage of data by the system in cache or memory for the benefit of faster retrieval if its needed again in the future

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are inputs?

A

Any information relevant to the problem that is required by the system for processing according to an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are outputs?

A

The result returned by a system for a given input after running the entire process or part of a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are preconditions?

A

A prerequisite or state of a system and its surroundings required to run a use case return a valid solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are reusable program components?

A

Components that have already been written, debuggedtested that can be transplanted into new systems to save development time in project completion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are examples of input devices in a system?

A

Touch screen, magnetic stripe card reader, keypad

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are examples of output devices in a system?

A

Monitor, cash dispenser, printer, speakers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do preconditions allow for?

A

They define the valid input the subroutine expects and are usually included in documentation.
This allows the subroutine to safely assume inputs meet specific criteria, reducing the need for checks within the code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advamtages of chaching?

A

Stores frequently used data or instructions for faster access
Reduces loading times ( for web pages)
Frees up bandwidth by avoiding repeated downloads
Can improve performance significantly when combined with prefetching (predicting likely needed data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are disadvantges of caching?

A

Effectiveness depends on accuracy of caching/prefetching algorithms
Incorrect predictions waste memory and processing time
Larger caches take longer to search
Limited cache size restricts how much can be stored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the advantages of reusable components?

A

Already tested and debugged, so more reliable
Saves time, money, and development resources
Can be reused with different inputs for various outputs
Useful across multiple projects, reducing future development costs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the disadvantages of reusable components?

A

May face compatibility issues with existing software
Third-party components might need modification
Adapting them can be more costly and time-consuming than building from scratch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly