Flowcharting and Pseudocode Writing Flashcards

1
Q

Define algorithm.

A

It is a list of instructions for carrying out a process step-by-step.

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

What are the 2 kinds of algorithm?

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

Define pseudocode.

A

It is a written, step-by-step description of an algorithm using plain language.

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

Define flowchart.

A

It is a visual representation of an algorithm using symbols and arrows to show the flow.

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

What does the following shape represent?
OVAL

A

Terminal - beginning or end.

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

What does the following shape represent?
RECTANGLE

A

Process - represents an instruction or action to be performed.

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

What does the following shape represent?
DIAMOND

A

Decision - represents a decision point that can lead to different paths based on Yes/No or True/False answers.

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

What does the following shape represent?
HEXAGON

A

Preparation - represents a preparation step or initialization of a process.

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

What does the following shape represent?
ARROW

A

Flowline - represents the direction of the process flow.

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

What does the following shape represent?
CIRCLE

A

On-Page Connector - used to connect different parts of the flowchart on the same page.

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

What does the following shape represent?
BANNER

A

Off-Page Connector - represents the continuation of a flowchart onto another page.

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

What are the types of control structures?

A
  1. Sequential
  2. Conditional
  3. Iterative/Repetition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a loop?

A

It is repetition of a series of steps.

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

What is an infinite loop?

A

It is repeating flow of logic with no end.

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