GRADE 7 · COMPUTING · UNIT 1 · LESSON 1.11

Block it out: Moving from blocks to text

Making choices IF THEN ELSE in flowcharts

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

9 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Making choices IF THEN ELSE in flowcharts

Selection chooses a path by testing a condition. A decision diamond has labelled true and false branches. Comparison operators matter: > excludes equality, while >= includes it. Follow the specified condition even when the values are equal; do not leave that case unplanned.

Today’s two goals
  • Trace both outcomes of a condition represented by a decision symbol.
  • Select an appropriate comparison operator for a stated decision.
Original PaxaKids illustration for Making choices IF THEN ELSE in flowcharts. Precise program text and data are supplied in the workbook models.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Explore the clues

Tap one card to find out more.

Understand the idea

Selection chooses a path by testing a condition. A decision diamond has labelled true and false branches. Comparison operators matter: > excludes equality, while >= includes it. Follow the specified condition even when the values are equal; do not leave that case unplanned.

Concept to practise: Making choices IF THEN ELSE in flowcharts.

Work through an example

For tokens >= 12, values 12 and 15 take the true branch, while 11 takes the false branch. Replacing >= with > would change the result for exactly 12, so a boundary test is essential.

Try before your workbook

A decision is score > 50. Which branch is taken for 50 and for 51? Explain why equality must be tested.

Check my readiness thinking

50 takes the false branch and 51 takes the true branch. The > operator means strictly greater than, so the boundary value belongs to the false path.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Choose a route using a condition

Our goal: trace both branches, choose comparison operators and design three selection flowcharts.

A condition has a True or False result. A decision diamond sends control along the matching labelled arrow. A two-branch selection follows one branch each time the decision is reached.

Match the comparison to the meaning

Match the comparison to the meaning — original model
OperatorMeaningExample
==equal to7 == 7 is True
!=not equal to7 != 4 is True
less than4 < 7 is True
>greater than7 > 4 is True
<=less than or equal to7 <= 7 is True
>=greater than or equal to7 >= 7 is True

Trace an original selection chart

  1. Start
  2. Input tokens

Decision: tokens >= 12?

True branch
  1. Output Two tables
False branch
  1. Output One table

Read the three design briefs

Create three separate flowcharts in the final tasks. Every required input, process and output is stated here. The word difference in the last brief means first minus second in this workbook.
Read the three design briefs — original model
BriefConditionRequired outputs
Square a numbersquare > 100True: Big; False: Small
Alphabet countcount == 26True: Correct; False: Incorrect
Two numbersfirst > secondTrue: first + second; False: first - second

Trace the two-number choice

Trace the two-number choice — original model
Casefirstsecond
A83
B38
C55

Make your chart checkable

A partner should be able to trace your chart using its arrows and labels alone. Use an input/output parallelogram for entered or displayed data, a process rectangle for a calculation, and a diamond for the condition. Both routes must reach an output and eventually Stop.
Paxa the Fox

Try one step with Paxa!

Trace code carefully and preserve exact spelling, case and order. Use invented practice data. Save personal responses before leaving.

Our Unit 1 learning path
  1. Lesson 1.1: Comparing Scratch and Python
  2. Lesson 1.2: Using Python
  3. Lesson 1.3: Using Python IDLE in Script mode
  4. Lesson 1.4: Variables
  5. Lesson 1.5: Adding more information to a program
  6. Lesson 1.6: Data types – string, integer and real
  7. Lesson 1.7: Casting
  8. Lesson 1.8: Flowcharts and algorithms
  9. Lesson 1.9: BIDMAS in Python
  10. Lesson 1.10: Error detection and correction
  11. Lesson 1.11: Making choices IF THEN ELSE in flowcharts
  12. Lesson 1.12: Sub-routines
  13. Lesson 1.13: Random questions and a star number
  14. Lesson 1.14: Final project
  15. Lesson 1.15: Evaluation
  16. Lesson 1.16: What can you do?
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Making choices IF THEN ELSE in flowcharts9 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 9 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.0 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 9 worksheets

Worksheet 1

  1. Question 1: Which shape represents a condition in a flowchart? a diamond
  2. Question 2: What determines the branch followed? whether the condition is True or False
  3. Question 3: How many branches run in one ordinary IF/ELSE choice? one

Worksheet 2

  1. Question 4: Which comparison means “at least 12”? count >= 12
  2. Question 5: Which comparison tests “not equal to 26”? count != 26
  3. Question 6: Which comparison is False? 5 < 5

Worksheet 3

  1. Question 7: What is output when tokens is exactly 12? Two tables

Worksheet 4

This page introduces the activity. There are no marked responses on this sheet.

Worksheet 5

  1. Question 8: For number 9, what is its square? 81
  2. Question 9: For number 9, which message is required? Small
  3. Question 10: For number 10, which message is required? Small
  4. Question 11: For number 11, which message is required? Big
  5. Question 12: For alphabet count 26, which message is required? Correct
  6. Question 13: For alphabet count 25, which message is required? Incorrect

Worksheet 6

  1. Question 14: What result should case A output? 11 / 11.0
  2. Question 15: What result should case B output? -5 / -5.0
  3. Question 16: What result should case C output? 0 / 0.0

Worksheet 7

  1. Question 17: Which test best reveals whether > was wrongly changed to >=? a value exactly at the threshold
  2. Question 18: A chart has a decision but labels neither outgoing arrow. What should be added? True and False branch labels
  3. Question 19: What should a peer check include? trace both routes and check expected outputs

Worksheet 8

  1. Question 20: Draw two flowcharts: square a number and output Big when the square is greater than 100, otherwise Small; ask for the English alphabet letter count and output Correct only for 26, otherwise Incorrect. Label both branches. Trace 9, 10, 11 and letter counts 26, 25; record a peer check and any correction. Square: Start; input number (or assigned test value); squared = number * number; decision squared > 100; True output Big; False output Small; merge Stop. 9 ->81 Small; 10 ->100 Small; 11 ->121 Big. Alphabet: Start; input count as whole number; decision count == 26; True Correct; False Incorrect; Stop. 26 Correct;25 Incorrect. Require correct process/input/output/decision symbols, labelled directions, no missing branch, both charts peer-traced and corrections stated. Functional labels can differ in wording. These are three required source contexts adapted with original expression and tests. Grown-up review; personal evidence is required.

Worksheet 9

  1. Question 21: Draw a flowchart that inputs first and second. If first is greater than second, output their sum; otherwise output first minus second. Label True and False. Trace (8, 3), (3, 8) and (5, 5), then ask a partner to check every route and record any correction. Start -> input first -> input second -> first > second? True: result = first + second; False: result = first - second. Output selected result, then Stop; equivalent duplicated output nodes accepted. Original brief says difference; this adaptation explicitly chooses first minus second so negative output for (3,8) is intended, not absolute difference. Expected 11, -5, 0. Equality takes False. Correct diamonds, process rectangles, input/output parallelograms, start/stop, all arrow directions and both branch labels required. Peer trace all three tests and note correction/no correction based on evidence; do not invent execution. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Making choices IF THEN ELSE in flowcharts with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.