B) Standard Methods and Techniques Used to Develop Algorithms Flashcards

1
Q

What is pseudocode?

A

A form of structured English used to describe an algorithm that can be interpreted into any coding language.

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

What are the advantages of pseudocode?

A
  • can be converted into any language
  • fairly easy to understand
  • can be quicker to develop than code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a dry run?

A

The process of manually running through pseudocode to ensure there are no logic errors.

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

What is a trace table?

A

A trace table tracks the values of all variables and how they change. They are useful to ensure that an algorithm is giving the expected outputs.

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

What shape is the start/stop box in flowcharts?

A

A rounded rectangle.

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

What shape is the process box in flowcharts and what can it include?

A

A rectangle. Contains a brief description of the process being carried out, such as a calculation.

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

What shape is the decision box in flowcharts and what can it include?

A

A diamond. Should contain a question that can only be answered with yes or no.

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

What shape is the input/output box in flowcharts and what can it include?

A

A parallelogram. Contains a brief description of data being input/output, as well as variable names.

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