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

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

A

Algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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
4
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
5
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
6
Q

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

A

Pseudocode

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

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

A

Flowchart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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
9
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
10
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
11
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
12
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
13
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
14
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
15
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
16
Q

What is a loop?

A

It is repetition of a series of steps.

17
Q

What is an infinite loop?

A

It is repeating flow of logic with no end.

18
Q

Define sequential control structures.

A

It executes instructions one after the other in the order they appear in the code.

19
Q

Define iterative/repetitive control structures.

A

It repeats a set of instructions multiple times, usually until a certain condition is met.

20
Q

Define conditional control structures.

A

It executes instructions based on whether a certain condition is true or false.

21
Q

What type of control structure is being demonstrated below?

If you have three instructions—first, print “Hello”; second, calculate the sum of two numbers; third, display the result—they will be executed in that exact sequence without any branching or repetition.

A

Sequential Control Structure

22
Q

What type of control structure is being demonstrated below?

The program checks if the temperature is greater than 30. If true, it prints “It’s hot!”; otherwise, it prints “It’s cool.”

if temperature > 30:
print(“It’s hot!”)
else:
print(“It’s cool.”)

A

Conditional Control Structure

23
Q

Repeats actions until a condition is met.

A

Iterative/Repetitive Control Structure

24
Q

Makes decisions based on conditions.

A

Conditional Control Structure

25
Q

Straightforward, step-by-step execution.

A

Sequential Control Structure