GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.26
Computational thinking and programming
Choose data types and recognise Boolean literals
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Choose data types and recognise Boolean literals
Choose a data type according to meaning and operations. Integers represent whole numbers, floating-point numbers represent many decimal values approximately, strings represent text, and Boolean values are True or False.
- Classify values by meaning and distinguish quoted Boolean-looking text.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
A fictional item count of 6 can be an integer; a label "06" is text when its leading zero matters. True is a Boolean literal, while "True" is a nonempty string.
Try before your workbook
Are False and "False" the same Python value or type?
Explore the clues
Tap one card to find out more.
Understand the idea
Choose a data type according to meaning and operations. Integers represent whole numbers, floating-point numbers represent many decimal values approximately, strings represent text, and Boolean values are True or False.
Concept to practise: Choose data types and recognise Boolean literals.
Work through an example
A fictional item count of 6 can be an integer; a label "06" is text when its leading zero matters. True is a Boolean literal, while "True" is a nonempty string.
Try before your workbook
Are False and "False" the same Python value or type?
Check my readiness thinking
No. False is a Boolean value; "False" is a string containing five characters. The distinction affects comparisons and conversion.
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 type from the meaning of the data
Python’s Boolean literals are exactly True and False, with capital first letters and no quotation marks. Quoted "True" and "False" are text, so their type is string.
Connect general types to Python names
| General type | Python name | Original example |
|---|---|---|
| Integer | int | -3; 0; 18 |
| Real / decimal number | float | 1.75; 23.5 |
| String | str | "0042"; "ready"; "" |
| Boolean | bool | True; False |
Identify the data in a total-and-mean algorithm
Original Paxa pseudocode retrieval task
first_count = 18
second_count = 29
total_label = "Combined:"
mean_label = "Mean per team:"
combined = first_count + second_count
mean = combined / 2
OUTPUT total_label, combined
OUTPUT mean_label, meanComplete the algorithm’s six-field data dictionary
| Variable | Stored value | Python type |
|---|---|---|
| first_count | 18 | {'clue': 'int / float / str / bool', 'prompt': 'Type of first_count', 'answers': ['int', 'integer']} |
| second_count | 29 | {'clue': 'int / float / str / bool', 'prompt': 'Type of second_count', 'answers': ['int', 'integer']} |
| total_label | "Combined:" | {'clue': 'int / float / str / bool', 'prompt': 'Type of total_label', 'answers': ['str', 'string']} |
| mean_label | "Mean per team:" | {'clue': 'int / float / str / bool', 'prompt': 'Type of mean_label', 'answers': ['str', 'string']} |
| combined | 47 | {'clue': 'int / float / str / bool', 'prompt': 'Type of combined', 'answers': ['int', 'integer']} |
| mean | 23.5 | {'clue': 'int / float / str / bool', 'prompt': 'Type of mean', 'answers': ['float', 'real']} |
Distinguish Boolean values, numbers and quoted text
| Python literal | Exact type |
|---|---|
| True | {'clue': 'int / float / str / bool', 'prompt': 'Literal type True', 'answers': ['bool', 'Boolean']} |
| "True" | {'clue': 'int / float / str / bool', 'prompt': 'Literal type "True"', 'answers': ['str', 'string']} |
| False | {'clue': 'int / float / str / bool', 'prompt': 'Literal type False', 'answers': ['bool', 'Boolean']} |
| "False" | {'clue': 'int / float / str / bool', 'prompt': 'Literal type "False"', 'answers': ['str', 'string']} |
| 0 | {'clue': 'int / float / str / bool', 'prompt': 'Literal type 0', 'answers': ['int', 'integer']} |
| "0" | {'clue': 'int / float / str / bool', 'prompt': 'Literal type "0"', 'answers': ['str', 'string']} |
Classify six complete original data sets
| Set | Five original values | Type |
|---|---|---|
| 1 | 18, 3, 7, 42, 6 | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 1', 'answers': ['int', 'integer']} |
| 2 | 'hello', '0007', 'later', 'no!', 'ok' | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 2', 'answers': ['str', 'string']} |
| 3 | 'TRUE', 'False', 'perhaps', 'true', 'wait' | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 3', 'answers': ['str', 'string']} |
| 4 | 'H', '2', '?', ' ', 'Q' | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 4', 'answers': ['str', 'string']} |
| 5 | False, True, False, True, True | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 5', 'answers': ['bool', 'Boolean']} |
| 6 | '0042', 'K8', '2.5m', '17A', '6cr' | {'clue': 'int / float / str / bool', 'prompt': 'One type for dataset 6', 'answers': ['str', 'string']} |
Keep identification separate from arithmetic
Original Paxa code and count examples
equipment_code = "0012"
quantity = 12
measurement = 12.0
available = TruePlan types for a fictional mission record
| Meaning | Example value | Python type |
|---|---|---|
| Exact team code | "Lark-04" | {'clue': 'int / float / str / bool', 'prompt': 'Mission team code type', 'answers': ['str', 'string']} |
| Count of tokens | 12 | {'clue': 'int / float / str / bool', 'prompt': 'Mission token count type', 'answers': ['int', 'integer']} |
| Mass in kilograms | 1.75 | {'clue': 'int / float / str / bool', 'prompt': 'Mission mass type', 'answers': ['float', 'real']} |
| Permission state | True | {'clue': 'int / float / str / bool', 'prompt': 'Mission permission type', 'answers': ['bool', 'Boolean']} |
Files for this activity
Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Try one step with Paxa!
Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.
Our Unit 1 learning path
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- Lesson 1.55: Check your progress 1
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 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.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 10 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.4 MiB · No answer key included
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 10 worksheets
Worksheet 1
- Question 1: Why might a numeric-looking label need a string? its exact characters and leading zeroes matter
- Question 2: Which is a Python Boolean literal? True
Worksheet 2
- Question 3: How does Python represent a single character such as "Q"? as a string of length one
- Question 4: What does a float type promise? a floating-point numeric representation
Worksheet 3
- Question 5: What value is stored in combined? 47
- Question 6: What value is stored in mean? 23.5
- Question 7: Which variable contains a message string? mean_label
Worksheet 4
- Question 8: Type of first_count int / integer
- Question 9: Type of second_count int / integer
- Question 10: Type of total_label str / string
- Question 11: Type of mean_label str / string
- Question 12: Type of combined int / integer
- Question 13: Type of mean float / real
Worksheet 5
- Question 14: Literal type True bool / Boolean
- Question 15: Literal type "True" str / string
- Question 16: Literal type False bool / Boolean
- Question 17: Literal type "False" str / string
- Question 18: Literal type 0 int / integer
- Question 19: Literal type "0" str / string
Worksheet 6
- Question 20: One type for dataset 1 int / integer
- Question 21: One type for dataset 2 str / string
- Question 22: One type for dataset 3 str / string
- Question 23: One type for dataset 4 str / string
- Question 24: One type for dataset 5 bool / Boolean
- Question 25: One type for dataset 6 str / string
Worksheet 7
- Question 26: Which variable should preserve the exact four-character identifier? equipment_code
- Question 27: Which value is a float literal? 12.0
- Question 28: Which value is a string even though it resembles a number? "12.0"
Worksheet 8
- Question 29: Mission team code type str / string
- Question 30: Mission token count type int / integer
- Question 31: Mission mass type float / real
- Question 32: Mission permission type bool / Boolean
- Question 33: Which reason supports using bool for permission? only the two states True and False are needed
Worksheet 9
- Question 34: Explain the six data-type choices in the page 3 algorithm, including both message variables and the mean. Then explain your classifications for all six rows on page 6. Address the mixed word row, the one-character row, genuine Boolean states and codes with leading zeroes or units. Compare with a partner if available, discussing any alternative representation and what purpose would justify it. Otherwise label an individual review. Record a correction or explain why you kept your answers, supported by the values and intended operations. Algorithm: first_count/second_count/combined int; total_label/mean_label str; mean float/real because division can yield a fractional result and Python / returns float for these integer operands. Dataset types in order int,str,str,str,bool,str; mixed perhaps cannot be genuine Boolean state set; single characters including space use Python length-one str; leading-zero/unit codes remain str as written. Alternative representation only when purpose/conversion policy changes and information preserved. Require reasons and honest partner versus individual discussion, actual correction if any or evidence for unchanged choice. No numerical marks or fabricated activity. Grown-up review; personal evidence is required.
Worksheet 10
- Question 35: Design a fictional equipment or mission record with at least six named fields. Include a leading-zero code, an integer count, a fractional measurement, a text message, one genuine Boolean state and one text field that contains the word True or False. For each field give a realistic example, meaning, Python type and intended operation or use. Explain why the Boolean state and Boolean-looking text have different types. Explain how the code would be damaged by an unnecessary number conversion. Use invented data only and cite an attached full data dictionary if needed. At least six meaningful named fields meeting all requested roles: leading-zero string, int count, float measurement, str message, bool state unquoted True/False and str text "True"/"False". Explicit purpose/operations and coherent examples, correct Python names or accepted general equivalents. Distinguish literal state from quoted text rather than relying only on visible words. Unnecessary int conversion removes leading-zero formatting; exact identifiers preserved. Python single-character fields remain str if used. Complete legible dictionary or cited actual file, fictional inputs and evidence-based explanation, no unperformed program execution claim. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 106–109
- PaxaKids Grade 8 Computing Lesson 1.26: Choose data types and recognise Boolean literals — pages 1–10
Computing for your homeschool day
Explore Choose data types and recognise Boolean literals with this free Grade 8 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
Closed answers are checked in your browser. Drawings and written explanations 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.
Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. 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.
