Bird
Raised Fist0
Intro to Computingfundamentals~6 mins

Flowcharts for visualizing logic in Intro to Computing - Full Explanation

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Introduction
When solving problems or planning tasks, it can be hard to keep track of all the steps and decisions. Flowcharts help by showing the steps and choices in a clear picture, making it easier to understand and follow the logic.
Explanation
Start and End
Every flowchart begins with a start point and ends with an end point. These show where the process begins and where it finishes. They are usually drawn as ovals or rounded rectangles to stand out.
Start and end symbols mark the boundaries of the process.
Process Steps
Each action or step in the process is shown as a box called a process symbol. This box contains a short description of what happens at that step, like 'Add two numbers' or 'Check if input is valid'.
Process boxes represent actions or tasks to perform.
Decisions
When the process needs to make a choice, a diamond shape is used. This decision symbol asks a yes/no or true/false question. The flow then splits into different paths based on the answer.
Decision diamonds show points where the process branches based on conditions.
Flow Lines
Arrows connect the symbols and show the order in which steps happen. They guide the viewer through the process from start to finish, including which path to take after decisions.
Arrows direct the flow and order of steps in the chart.
Real World Analogy

Imagine planning a trip where you decide what to pack based on the weather. You start packing, then check if it will rain. If yes, you pack an umbrella; if no, you skip it. Finally, you finish packing and leave.

Start and End → Starting to pack and finishing packing before leaving
Process Steps → Packing each item one by one
Decisions → Checking the weather to decide if an umbrella is needed
Flow Lines → Following the order of packing and decision steps
Diagram
Diagram
┌───────────┐
│   Start   │
└─────┬─────┘
      │
┌─────▼─────┐
│  Step 1   │
│ (Process) │
└─────┬─────┘
      │
┌─────▼─────┐
│ Decision? │
│ (Diamond) │
└─────┬─────┬─────┐
      │     │     │
     Yes    No     │
      │     │     │
┌─────▼─┐ ┌─▼────┐ │
│Step 2 │ │Step 3│ │
│(Proc) │ │(Proc)│ │
└───────┘ └──────┘ │
      │           │
      └─────┬─────┘
            │
       ┌────▼────┐
       │   End   │
       └─────────┘
A simple flowchart showing start, process steps, a decision with yes/no branches, and the end.
Key Facts
FlowchartA diagram that shows the steps and decisions in a process using symbols and arrows.
Process SymbolA rectangle that represents an action or step in the flowchart.
Decision SymbolA diamond shape that represents a choice point with different paths.
Flow LinesArrows that connect symbols and show the order of steps.
Start/End SymbolAn oval or rounded rectangle that marks the beginning or end of the flowchart.
Common Confusions
Thinking that flowcharts only show processes without decisions.
Thinking that flowcharts only show processes without decisions. Flowcharts include decision points using diamond shapes to show choices and branching paths.
Believing arrows can point backward to previous steps freely.
Believing arrows can point backward to previous steps freely. While arrows can loop back, they should clearly show the flow direction to avoid confusion.
Summary
Flowcharts use simple shapes and arrows to map out steps and decisions in a process.
Start and end symbols mark where the process begins and finishes.
Decision diamonds split the flow based on yes/no questions, guiding different paths.

Practice

(1/5)
1. What shape is commonly used in a flowchart to represent a decision point?
easy
A. Rectangle
B. Circle
C. Oval
D. Diamond

Solution

  1. Step 1: Identify flowchart shapes and their meanings

    Ovals represent start/end, rectangles represent processes, and diamonds represent decisions.
  2. Step 2: Match decision point to shape

    The decision point is shown as a diamond to indicate a yes/no or true/false choice.
  3. Final Answer:

    Diamond -> Option D
  4. Quick Check:

    Decision = Diamond [OK]
Hint: Decisions use diamond shapes in flowcharts [OK]
Common Mistakes:
  • Confusing rectangle (process) with decision
  • Thinking oval is for decisions
  • Using circle instead of diamond
2. Which of the following is the correct symbol to start a flowchart?
easy
A. Oval
B. Diamond
C. Rectangle
D. Parallelogram

Solution

  1. Step 1: Recall flowchart start/end symbols

    Ovals are used to mark the start and end points in flowcharts.
  2. Step 2: Identify the correct start symbol

    Among the options, only the oval represents the start/end point.
  3. Final Answer:

    Oval -> Option A
  4. Quick Check:

    Start symbol = Oval [OK]
Hint: Start and end use oval shapes in flowcharts [OK]
Common Mistakes:
  • Choosing rectangle which is for processes
  • Confusing diamond with start symbol
  • Using parallelogram which is for input/output
3. Consider this flowchart logic: Start -> Input number -> Is number > 10? -> Yes: Print 'High' -> No: Print 'Low' -> End. What will be printed if the input is 7?
medium
A. High
B. Low
C. 7
D. Error

Solution

  1. Step 1: Understand the decision condition

    The flowchart checks if the input number is greater than 10.
  2. Step 2: Apply input value to condition

    Since 7 is not greater than 10, the flow follows the 'No' branch and prints 'Low'.
  3. Final Answer:

    Low -> Option B
  4. Quick Check:

    7 > 10? No, so print Low [OK]
Hint: Follow decision branches carefully for output [OK]
Common Mistakes:
  • Printing input number instead of 'Low'
  • Choosing 'High' by mistake
  • Assuming error on input
4. A flowchart has a decision diamond with two arrows labeled 'True' and 'False'. The 'False' arrow mistakenly loops back to the start instead of continuing. What is the likely problem?
medium
A. Wrong shape used for decision
B. Correct flowchart with no issues
C. Infinite loop causing the process never to end
D. Missing start symbol

Solution

  1. Step 1: Analyze the incorrect arrow direction

    The 'False' arrow looping back to start causes the process to repeat endlessly.
  2. Step 2: Understand impact on flowchart execution

    This creates an infinite loop, preventing the flowchart from reaching an end.
  3. Final Answer:

    Infinite loop causing the process never to end -> Option C
  4. Quick Check:

    Loop back to start = infinite loop [OK]
Hint: Check arrow directions to avoid infinite loops [OK]
Common Mistakes:
  • Thinking it's a correct flowchart
  • Confusing missing start with loop issue
  • Ignoring arrow labels
5. You want to design a flowchart that reads a number and prints 'Even' if the number is divisible by 2, otherwise prints 'Odd'. Which sequence of shapes correctly represents this logic?
hard
A. Oval (Start) -> Rectangle (Input) -> Diamond (number % 2 == 0?) -> Rectangle (Print 'Even') if Yes -> Rectangle (Print 'Odd') if No -> Oval (End)
B. Rectangle (Start) -> Diamond (Input) -> Oval (Check) -> Rectangle (Print) -> Oval (End)
C. Oval (Start) -> Diamond (Input) -> Rectangle (Check) -> Diamond (Print) -> Oval (End)
D. Oval (Start) -> Rectangle (Input) -> Rectangle (Check) -> Diamond (Print) -> Oval (End)

Solution

  1. Step 1: Identify correct flowchart symbols for each step

    Start/end use ovals, input uses rectangle, decision uses diamond, and output uses rectangle.
  2. Step 2: Match sequence to logic

    Input number (rectangle), decision if divisible by 2 (diamond), print 'Even' or 'Odd' (rectangles), then end (oval).
  3. Final Answer:

    Oval (Start) -> Rectangle (Input) -> Diamond (number % 2 == 0?) -> Rectangle (Print 'Even') if Yes -> Rectangle (Print 'Odd') if No -> Oval (End) -> Option A
  4. Quick Check:

    Correct shapes in logical order [OK]
Hint: Use oval-start/end, diamond-decision, rectangle-process [OK]
Common Mistakes:
  • Using diamond for input or output
  • Starting with rectangle instead of oval
  • Mixing up decision and process shapes