Week 5 Chapter 7 Flashcards

1
Q

Q: What is a flowchart?

A

A: A flowchart is a step-by-step visual representation of a process, also called a process flow diagram. It is used to show the sequence of actions in a process.

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

Q: When were flowcharts first used and by whom?

A

A: Flowcharts were first used in 1921 by two industrial engineers to create a flow process chart.

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

Q: What are the main shapes in a flowchart and what do they represent?

A

A:

Rectangle: Represents processing or actions.
Diamond: Represents decisions or conditional points.

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

Q: What are the four types of flowcharts?

A

A:

Program flowcharts
Data flowcharts
System flowcharts
Process flowcharts

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

Q: What is the first step in designing a flowchart?

A

A: The first step is to define the algorithm.

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

Q: What does a “Start/End” symbol in a flowchart represent?

A

A: It represents the start or end of an algorithm or process.

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

Q: What is the function of the Action/Process symbol in a flowchart?

A

A: The Action/Process symbol (a rectangle) represents a process or action within a larger process.

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

Q: What does the Decision symbol in a flowchart represent?

A

A: The Decision symbol (a diamond) represents a decision point, where the flow can branch into different paths based on conditions.

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

Q: What does the Connector symbol represent in a flowchart?

A

A: The Connector symbol (a circle) indicates that the flow continues at a different part of the flowchart.

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

Q: What is the role of the Flow Line in a flowchart?

A

A: The Flow Line (an arrow) indicates the sequence of instructions or the direction of control flow.

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

Q: What does the Delay symbol represent?

A

A: The Delay symbol (a D-shaped box) represents a delay or pause during the process.

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

Q: What is the purpose of the Merge symbol in a flowchart?

A

A: The Merge symbol (a diamond with a merge line) indicates that multiple paths converge into one step.

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

Q: How does branching work in flowcharts?

A

A: Branching is achieved using the decision box. It splits the process into different paths based on conditions.

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

Q: What are the three main decision statements in flowchart logic?

A

A: The three main decision statements are:

If statement
If-Else statement
Switch statement

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

Q: What does an If Statement do?

A

A: The If statement evaluates a condition. If the condition is true, execution continues. If it’s false, control exits or shifts.

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

Q: How does an If-Else Statement differ from an If Statement?

A

A: An If-Else Statement has two branches: if the condition is true, it executes a predefined set of instructions; if false, it executes another set of instructions.

17
Q

Q: What is Nested If-Else used for?

A

A: Nested If-Else is used for complex decision-making, allowing multiple conditions to be evaluated in sequence.