12.08 - Stepwise refinement Flashcards

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

What is stepwise refinement?

A

Stepwise refienement is the method of breaking down the steps of an outline solution into smaller steps until it is detailed enough.

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

What is the use of stepwise refinement?

A

It is used to solve bigger problems by breaking them down into smalled steps using stepwise refinement.

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

How to make the solution programmable?

Stepwise refinement

A

the steps need to be broken down into basic constructs such as sequences, assignment, selection, repetition, input and output

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

What are modules?

A

They are another method of developing a solution by decomposing the problem into sub tasks. Each sub task can be considered a module that is refined seperately.They are procedured and functions that group together a number of steps and give them an identifier

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

What are procedures?

A

Procedures group together a number of steps and give them a name that can be used to refer the group of steps.

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

What are functions?

A

Functions group together a number of steps and give them a name that produces and returns a value that is used in an expression

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

How should modules be designed?

A

They should be designed to be self-contained and not rely on external variables

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

How should all variables required by a module be passed to it?

A

Using parameters

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

What are local variables?

A

Variables used only within a module

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

What are global variables?

A

All variables

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