Week 5 Chapter 7 Flashcards
Q: What is a flowchart?
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.
Q: When were flowcharts first used and by whom?
A: Flowcharts were first used in 1921 by two industrial engineers to create a flow process chart.
Q: What are the main shapes in a flowchart and what do they represent?
A:
Rectangle: Represents processing or actions.
Diamond: Represents decisions or conditional points.
Q: What are the four types of flowcharts?
A:
Program flowcharts
Data flowcharts
System flowcharts
Process flowcharts
Q: What is the first step in designing a flowchart?
A: The first step is to define the algorithm.
Q: What does a “Start/End” symbol in a flowchart represent?
A: It represents the start or end of an algorithm or process.
Q: What is the function of the Action/Process symbol in a flowchart?
A: The Action/Process symbol (a rectangle) represents a process or action within a larger process.
Q: What does the Decision symbol in a flowchart represent?
A: The Decision symbol (a diamond) represents a decision point, where the flow can branch into different paths based on conditions.
Q: What does the Connector symbol represent in a flowchart?
A: The Connector symbol (a circle) indicates that the flow continues at a different part of the flowchart.
Q: What is the role of the Flow Line in a flowchart?
A: The Flow Line (an arrow) indicates the sequence of instructions or the direction of control flow.
Q: What does the Delay symbol represent?
A: The Delay symbol (a D-shaped box) represents a delay or pause during the process.
Q: What is the purpose of the Merge symbol in a flowchart?
A: The Merge symbol (a diamond with a merge line) indicates that multiple paths converge into one step.
Q: How does branching work in flowcharts?
A: Branching is achieved using the decision box. It splits the process into different paths based on conditions.
Q: What are the three main decision statements in flowchart logic?
A: The three main decision statements are:
If statement
If-Else statement
Switch statement
Q: What does an If Statement do?
A: The If statement evaluates a condition. If the condition is true, execution continues. If it’s false, control exits or shifts.
Q: How does an If-Else Statement differ from an If Statement?
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.
Q: What is Nested If-Else used for?
A: Nested If-Else is used for complex decision-making, allowing multiple conditions to be evaluated in sequence.