Writing Algorithms - Flow diagrams and Pseudocode Flashcards

1
Q

What is pseudocode not?

A

Not an actual programming language but should follow a similar structure and read roughly like one.

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

Why is pseudocode used?

A

Shows an algorithm’s steps without worrying about the finer details (syntax) of any particular programming language.

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

What are advantages of pseudocode?

A
  • quick to write

- easily converted into any programming language

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

What do the different ways of writing pseudocode do?

A

They are all equally correct as long as the person reading the code can follow it and understand what you mean.

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

What do you need to do to pseudocode?

A

It’s not a formal language but need to make sure it’s readable, easy to interpret and not too vague.

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

What do the rounded cornered boxes mean in a flowchart?

A

The beginning and end of the algorithm.

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

What do the parallelogram boxes mean in a flowchart?

A

Anything that’s out put into or taken out of the algorithm.

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

What do the rectangular boxes mean in a flowchart?

A

General instructions, processes and calculations.

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

What do the diamond boxes mean in a flowchart?

A

Decisions, often a “yes” or “no” question.

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

What are sub routines mean in a flowchart?

A

They’re like sub programs and reference other flow diagrams.

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

What do the arrows mean in a flowchart?

A

Arrows connect boxes and show the direction you should follow. Some boxes might have multiple arrows coming in or going out of them.

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

What can flow diagrams show or a combination of them?

A
  • sequences
  • selections
  • iterations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly