2.1/2.2 Flashcards

(13 cards)

1
Q

need for abstraction

A

hiding unnecessary detail and only showing detail that is relevant to the problem.
saves time, money, resources

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

procedural abstraction

A

when you write code sections that are generalised with variable parameters
say what you want the code to do and be explicit to do just that

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

functional abstraction

A

provides methods to do work while hiding details of how it’s done

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

inputs

A

include any data that is required to solve a problem

entered into the system by the user

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

outputs

A

results passed back once the inputs have been processed and the problem has been solved

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

data types

A

string
integer
floating point
boolean

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

data abstraction

A

providing any essential info to the outside world while hiding background details
emphasises clear separation between external interface of objects and internal data handling and manipulation

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

problem abstraction

A

ignoring characteristics of problems that are not needed in order to concentrate on those that are
instructs that we remove all specific data and patterns that will not help us solve the problem

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

reusable programming

A

makes it quicker
saves time and costs
can be reused for other programs
allows other programmer to use others expertise
may require fewer developers working on a project

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

determining preconditions

A

requirements which must be met before a program can be executed
if preconditions are not met the program will fail to execute or return an invalid answer
subroutines become more reusable

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

caching

A

data retrieved from secondary storage and placed into main memory often remain there until the program using them ends
faster retrieval times
improves speed and efficiency
decreases no of requests on web pages

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

prefetching

A

data being requested from main memory by the processor before it’s actually required

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

drawbacks

A

nature of predictive logic means caching algorithms are complicated to implement
wrong data is often fetched and cached
this must be removed or flushed

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