2.3/2.4/2.5 Flashcards

(15 cards)

1
Q

top down modular design

A

solving a larger problem by breaking it down into a top down modular design using stepwise refinement task is split into smaller subtasks
aim to end up with sub tasks that perform a single function or task

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

advantages of top down modular design

A

makes problem easier to solve as subtasks are smaller and simpler
may be reusable
breaking it down helps see what needs to be done
more than one person can work on a task at a time

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

passing parameters by value

A

value for subroutine is created as a copy for the original
once it’s passed in parameter is held in a seperate memory location and is only available to that subroutine
the copy is now a local variable of that subroutine

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

passing parameters by reference
a pointer that contains the memory address of the original variable is created this means that any changes to that value from within the called subroutine will not affect the value of the original variable

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

identifying sub procedures

A

sequence of steps grouped together and given its own name
order in which operations are to be performed is important
several can be executed simultaneously within a program
some require data from other subroutines

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

determining logical decision

A

should be clear what sort of approach is best for achieving your solution
evaluate conditions, convenience, responsibility, importance

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

parallelism

A

can support 2 or more actions executing at the same time

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

benefits of parallelism

A

performance increase for graphics processing

several tasks performed simultaneously

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

trade offs of parallelism

A

overhead associated with using more than one processor/core

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

concurrency

A

a program is running more than one process at the same time

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

benefits of concurrency

A

users can interact with applications with other tasks are running

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

availability of services

A

long running task won’t delay short running ones

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

controllability

A

task requiring preconditions to proceed can be suspended and resumed later

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

resource consumption

A

threads can consume resources in regard to scheduling, context, context switching and synchronisation

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

non determinism

A

mastering an exponential number of interleaving due to different schedules

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