2.1.2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the purpose of thinking ahead?

A

To make programs easy and intuitive for users to use

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

What things do programmers need to consider when thinking ahead?

A
  • Method of input/output
  • Data structures used
  • Data types used
  • Order of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are preconditions?

A

Requirements which must be met before a program can be executed

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

Define caching

A

The process of storing instructions or values in cache memory after they have been used, as they may be used again

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

How is caching used in storing web pages?

A

Web pages that a user frequently accesses are cached so the next time one of these pages is accessed, content can be loaded without delay

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

What are the advantages of caching web pages

A
  • Content can be loaded without delay
  • Images and text do not have to be downloaded again multiple times
  • Frees bandwidth for other tasks
  • Less time spent waiting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An algorithm predicts which instructions are likely to be used soon

A

Prefetching

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

Limitations of caching

A
  • Accuracy of the algorithms used
  • Effectiveness of the algorithm in managing the cache
  • Size of the cache
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Advantages of using reusable program components

A
  • More reliable than new components as they have already been tested
  • As developing from scratch isn’t necessary it saves time, money and resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Examples of reusable program components

A
  • Abstract data structures (queues and stacks)
  • Classes
  • Subroutines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly