Writing Algorithms Flashcards

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

What is pseudocode

A

Not an actual programming language, but it should follow a similar structure and read like one. It shows an algorithms steps without worrying about the finer details of any particular programming language.

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

Do you need to be careful about when writing pseudocode

A

Making sure it isn’t too vague. Even though the pseudocode isn’t a formal programming language you still 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
3
Q

How can algorithms be shown?

A

Using flow diagrams

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

Play diagrams use different ——— for different commands?

A

Boxes

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

What box is the beginning and the end of the algorithm put in?

A

A box with rounded corners

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

What box does anything that is put into or taken out of the algorithm put into?

A

A parallelogram box

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

General instructions, processes and calculations go into what box?

A

A rectangular box

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

Decisions, often a yes or no question, go into what box?

A

A diamond box

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

What is a subroutine?

A

Sub routines Are like sub programs, they reference other flow diagrams

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

What does an arrow represent in a flow diagram?

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