Thinking Procedurally Flashcards

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

What are the 5 main steps in the programming process?

A

1) Defining the problem
2) Planning the solution
3) Coding the program
4) Testing the program
5) Documenting the program

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

What is decomposition?

A

The breaking down of a problem into steps so that it is easier to solve

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

What are examples of planning using decomposition?

A

1) Modularisation: for program structure and organisation ie. breaking down the problem into subroutines
2) Structured code: for the individual modules ie. code which uses the basic constructs of sequence, selection, iteration

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

What is Top Down Design / Stepwise Refinement?

A

Hierarchy diagrams - each process is broken down into components until it cannot be broken down any further

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

Why is Top Down Design beneficial?

A

The structure of the program can be quickly explained and understood. Programmers can be allocated different modules.

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

What does it mean to think procedurally?

A

Thinking about the order in which certain tasks are completed.

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

What are 3 examples of decomposition?

A

Flowcharts, pseudocode, hierarchy charts

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

What are the steps needed for planning the method of solution?

A

Identify when decision making is required.
Identify the decisions required for the solution.
Identify the condition associated with a given decision.
Apply logical rules for real world situations.
Ensure steps are in the correct order.

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

Once you have divided a problem into sub problems, what would you look for and why?

A

Any pre-written steps (sub-programs)

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