EASYTUTORGUIDE

Practical tutorials, tools, courses, digital skills, and business promotion.

Free Learning
Google Translate — English / فارسی / العربية

Chapter 32: Conditional Statements in Code

Learn Grade 6 mathematics with very-beginner explanations, original worked examples, practice, reasoning, and review.

Grade 6Beginner Friendly10 Examples Per Topic30 Q&APractice + Review
Estimated reading time0% read
Advertisement area — AdSense / Auto Ads

Chapter Overview

This chapter teaches Conditional Statements in Code in original, simple language with step-by-step reasoning, worked examples, practice exercises, common mistakes, and review questions.

Key Technical Terms

  • Meaning of condition (A condition is a true-or-false test that controls what an algorithm does next.)
  • If statements (If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.)
  • If-else decisions (If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.)
  • Comparison operators conceptually (Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.)
  • Conditions with divisibility (Divisibility means one whole number can be divided by another with no remainder.)
  • Nested decisions (Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.)

How to Learn This Chapter

Read the explanation first, follow each worked example slowly, cover the answer and retry the problem yourself, then use the practice and review questions to check understanding.

32.1 Meaning of condition

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Find the mean of [4, 6, 8, 10].

  1. Add the values to get 28.
  2. Divide by 4.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 7

Worked Example 2

Problem: Find the mean of [5, 7, 7, 9, 12].

  1. Add the values to get 40.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 8

Worked Example 3

Problem: Find the mean of [3, 5, 8, 8, 11].

  1. Add the values to get 35.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 7

Worked Example 4

Problem: Find the mean of [10, 12, 14, 16].

  1. Add the values to get 52.
  2. Divide by 4.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 13

Worked Example 5

Problem: Find the mean of [2, 4, 6, 8, 10].

  1. Add the values to get 30.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 6

Worked Example 6

Problem: Find the mean of [1, 5, 5, 6, 13].

  1. Add the values to get 30.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 6

Worked Example 7

Problem: Find the mean of [20, 25, 25, 30].

  1. Add the values to get 100.
  2. Divide by 4.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 25

Worked Example 8

Problem: Find the mean of [7, 8, 9, 10, 11].

  1. Add the values to get 45.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 9

Worked Example 9

Problem: Find the mean of [3, 3, 4, 5, 9].

  1. Add the values to get 24.
  2. Divide by 5.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 4.8

Worked Example 10

Problem: Find the mean of [12, 15, 18, 21].

  1. Add the values to get 66.
  2. Divide by 4.

Very beginner explanation: The mean shares the total equally among all data values.

Answer: 16.5

Practice Exercise

Create one new Grade 6 problem about Meaning of condition. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.2 True and false conditions

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use True and false conditions to analyze the values 26 and 15. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use True and false conditions to analyze the values 5 and 20. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use True and false conditions to analyze the values 24 and 4. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use True and false conditions to analyze the values 16 and 18. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use True and false conditions to analyze the values 6 and 5. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use True and false conditions to analyze the values 23 and 20. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use True and false conditions to analyze the values 17 and 12. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use True and false conditions to analyze the values 10 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use True and false conditions to analyze the values 22 and 10. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use True and false conditions to analyze the values 22 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about True and false conditions. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.3 If statements

If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use If statements to analyze the values 19 and 15. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use If statements to analyze the values 27 and 18. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use If statements to analyze the values 15 and 8. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use If statements to analyze the values 30 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use If statements to analyze the values 30 and 15. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use If statements to analyze the values 29 and 4. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use If statements to analyze the values 10 and 18. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use If statements to analyze the values 23 and 3. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use If statements to analyze the values 12 and 19. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use If statements to analyze the values 27 and 3. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about If statements. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.4 If-else decisions

If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use If-else decisions to analyze the values 25 and 11. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use If-else decisions to analyze the values 14 and 8. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use If-else decisions to analyze the values 12 and 12. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use If-else decisions to analyze the values 19 and 4. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use If-else decisions to analyze the values 22 and 17. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use If-else decisions to analyze the values 30 and 10. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use If-else decisions to analyze the values 23 and 17. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use If-else decisions to analyze the values 8 and 15. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use If-else decisions to analyze the values 26 and 12. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use If-else decisions to analyze the values 9 and 16. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about If-else decisions. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.5 Comparison operators conceptually

Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use Comparison operators conceptually to analyze the values 6 and 17. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use Comparison operators conceptually to analyze the values 17 and 13. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use Comparison operators conceptually to analyze the values 23 and 12. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use Comparison operators conceptually to analyze the values 22 and 7. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use Comparison operators conceptually to analyze the values 10 and 10. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use Comparison operators conceptually to analyze the values 30 and 6. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use Comparison operators conceptually to analyze the values 19 and 3. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use Comparison operators conceptually to analyze the values 26 and 4. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use Comparison operators conceptually to analyze the values 15 and 2. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use Comparison operators conceptually to analyze the values 7 and 10. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about Comparison operators conceptually. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.6 Conditions with numbers

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use Conditions with numbers to analyze the values 13 and 19. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use Conditions with numbers to analyze the values 9 and 11. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use Conditions with numbers to analyze the values 27 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use Conditions with numbers to analyze the values 13 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use Conditions with numbers to analyze the values 3 and 15. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use Conditions with numbers to analyze the values 6 and 16. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use Conditions with numbers to analyze the values 20 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use Conditions with numbers to analyze the values 26 and 5. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use Conditions with numbers to analyze the values 23 and 8. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use Conditions with numbers to analyze the values 28 and 20. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: A condition is a true-or-false test that controls what an algorithm does next.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about Conditions with numbers. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.7 Conditions with divisibility

Divisibility means one whole number can be divided by another with no remainder. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use Conditions with divisibility to analyze the values 27 and 3. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use Conditions with divisibility to analyze the values 9 and 7. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use Conditions with divisibility to analyze the values 13 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use Conditions with divisibility to analyze the values 9 and 5. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use Conditions with divisibility to analyze the values 24 and 20. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use Conditions with divisibility to analyze the values 20 and 18. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use Conditions with divisibility to analyze the values 21 and 11. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use Conditions with divisibility to analyze the values 11 and 17. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use Conditions with divisibility to analyze the values 28 and 14. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use Conditions with divisibility to analyze the values 26 and 18. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Divisibility means one whole number can be divided by another with no remainder.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about Conditions with divisibility. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.8 Conditions with inequalities

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Solve x + 3 > 8.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x > 5

Worked Example 2

Problem: Solve 2x ≤ 12.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x ≤ 6

Worked Example 3

Problem: Solve x - 4 ≥ 7.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x ≥ 11

Worked Example 4

Problem: Solve 3x < 15.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x < 5

Worked Example 5

Problem: Solve x + 9 ≤ 20.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x ≤ 11

Worked Example 6

Problem: Solve 4x > 16.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x > 4

Worked Example 7

Problem: Solve x - 2 < 6.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x < 8

Worked Example 8

Problem: Solve 5x ≥ 25.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x ≥ 5

Worked Example 9

Problem: Solve x + 1 > 1.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x > 0

Worked Example 10

Problem: Solve 2x + 2 ≤ 10.

  1. Use inverse operations to isolate x.
  2. Keep track of the inequality sign.
  3. Test one value from the solution set.

Very beginner explanation: An inequality can describe many possible values rather than one exact value.

Answer: x ≤ 4

Practice Exercise

Create one new Grade 6 problem about Conditions with inequalities. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is changing only one side of a relationship or forgetting to check the solution.

32.9 Nested decisions introduction

Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: Use Nested decisions introduction to analyze the values 12 and 8. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 2

Problem: Use Nested decisions introduction to analyze the values 4 and 5. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 3

Problem: Use Nested decisions introduction to analyze the values 9 and 6. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 4

Problem: Use Nested decisions introduction to analyze the values 4 and 13. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 5

Problem: Use Nested decisions introduction to analyze the values 28 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 6

Problem: Use Nested decisions introduction to analyze the values 29 and 20. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 7

Problem: Use Nested decisions introduction to analyze the values 24 and 5. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 8

Problem: Use Nested decisions introduction to analyze the values 24 and 19. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 9

Problem: Use Nested decisions introduction to analyze the values 10 and 9. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Worked Example 10

Problem: Use Nested decisions introduction to analyze the values 27 and 13. What should be checked first?

  1. Identify what each value represents.
  2. Choose the rule, representation, or comparison that matches the topic.
  3. Show the reasoning before accepting the result.

Very beginner explanation: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Answer: Check the meaning of the values and the rule required by the problem.

Practice Exercise

Create one new Grade 6 problem about Nested decisions introduction. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.10 Tracing conditional code

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 97?

  1. Check 97 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 2

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 43?

  1. Check 43 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 3

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 63?

  1. Check 63 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 4

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 24?

  1. Check 24 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 5

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 67?

  1. Check 67 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 6

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 61?

  1. Check 61 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 7

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 84?

  1. Check 84 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 8

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 97?

  1. Check 97 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 9

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 59?

  1. Check 59 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 10

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 50?

  1. Check 50 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Practice Exercise

Create one new Grade 6 problem about Tracing conditional code. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.11 Debugging conditions

A condition is a true-or-false test that controls what an algorithm does next. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 14?

  1. Check 14 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 2

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 99?

  1. Check 99 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 3

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 96?

  1. Check 96 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 4

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 78?

  1. Check 78 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 5

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 30?

  1. Check 30 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 6

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 62?

  1. Check 62 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 7

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 79?

  1. Check 79 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 8

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 40?

  1. Check 40 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Worked Example 9

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 83?

  1. Check 83 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: ODD

Worked Example 10

Problem: An algorithm says: IF n is divisible by 2, output EVEN; OTHERWISE output ODD. What happens when n = 82?

  1. Check 82 ÷ 2.
  2. Decide whether the remainder is 0.
  3. Follow the matching branch.

Very beginner explanation: A conditional statement chooses an action based on whether a test is true or false.

Answer: EVEN

Practice Exercise

Create one new Grade 6 problem about Debugging conditions. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

32.12 Real-life decision algorithms

An algorithm is an ordered set of instructions for solving a problem or completing a task. In this Grade 6 lesson, focus on meaning first, then use a small example, show the steps, and check whether the result fits the question.

Beginner Note

Identify what is given, what must be found, and which rule or representation fits this topic. Work one step at a time and explain why each step is valid.

10 Worked Examples with Answers and Very-Beginner Explanations

Worked Example 1

Problem: An algorithm adds the list [8, 2, 1, 3]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 14

Worked Example 2

Problem: An algorithm adds the list [6, 2, 5, 4]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 17

Worked Example 3

Problem: An algorithm adds the list [8, 9, 9, 3]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 29

Worked Example 4

Problem: An algorithm adds the list [2, 5, 2, 7]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 16

Worked Example 5

Problem: An algorithm adds the list [9, 8, 7, 6]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 30

Worked Example 6

Problem: An algorithm adds the list [2, 8, 8, 5]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 23

Worked Example 7

Problem: An algorithm adds the list [7, 6, 5, 9]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 27

Worked Example 8

Problem: An algorithm adds the list [1, 5, 5, 3]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 14

Worked Example 9

Problem: An algorithm adds the list [1, 3, 2, 5]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 11

Worked Example 10

Problem: An algorithm adds the list [4, 5, 1, 8]. What output should it produce?

  1. Read each input.
  2. Add the values in sequence.
  3. Check by grouping the sum a second way.

Very beginner explanation: Tracing means following an algorithm step by step with known inputs.

Answer: 18

Practice Exercise

Create one new Grade 6 problem about Real-life decision algorithms. Solve it step by step, label any units, and explain how you checked your answer.

Common Mistake

A common mistake is starting a calculation before identifying what is given, what must be found, and which rule fits the problem.

Advertisement area — AdSense / Auto Ads

30 Review Questions and Answers

Q1. What is important to understand about Meaning of condition?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q2. What is important to understand about True and false conditions?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q3. What is important to understand about If statements?

Answer: If statements is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Q4. What is important to understand about If-else decisions?

Answer: If-else decisions is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Q5. What is important to understand about Comparison operators conceptually?

Answer: Comparison operators conceptually is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Q6. What is important to understand about Conditions with numbers?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q7. What is important to understand about Conditions with divisibility?

Answer: Divisibility means one whole number can be divided by another with no remainder.

Q8. What is important to understand about Conditions with inequalities?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q9. What is important to understand about Nested decisions introduction?

Answer: Nested decisions introduction is a Grade 6 mathematics idea in Conditional Statements in Code. The goal is to understand the meaning, choose a suitable strategy, show the steps clearly, and check that the result is reasonable.

Q10. What is important to understand about Tracing conditional code?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q11. What is important to understand about Debugging conditions?

Answer: A condition is a true-or-false test that controls what an algorithm does next.

Q12. What is important to understand about Real-life decision algorithms?

Answer: An algorithm is an ordered set of instructions for solving a problem or completing a task.

Q13. Why should you show your steps?

Answer: Showing steps makes reasoning easier to verify and helps locate mistakes.

Q14. Why is estimation useful?

Answer: Estimation helps you judge whether a final answer is reasonable before accepting it.

Q15. Why do units matter?

Answer: Units tell what a value measures and help prevent incompatible quantities from being mixed.

Q16. When should you round?

Answer: Usually round near the end unless the question specifically asks for earlier rounding.

Q17. How can you check an answer?

Answer: Use an inverse operation, substitution, estimation, a graph, a table, or a second method.

Q18. What should you identify first in a word problem?

Answer: Identify what is known, what is unknown, and the relationship connecting them.

Q19. What makes a final answer complete?

Answer: Give the value, correct units when needed, and a brief interpretation in context.

Q20. What should you do if an answer seems unreasonable?

Answer: Re-read the question and check copied values, operations, signs, units, rules, and calculations.

Q21. Why are diagrams useful?

Answer: A labelled diagram can reveal relationships that are harder to see in words alone.

Q22. Why are tables useful?

Answer: Tables organize values so patterns, rates, comparisons, and missing information are easier to see.

Q23. Why are graphs useful?

Answer: Graphs make relationships, changes, trends, and comparisons visible.

Q24. Why should you explain your reasoning?

Answer: An explanation shows why a method works instead of only giving a final number.

Q25. Why can more than one strategy be correct?

Answer: Different correct strategies can represent the same mathematics in different but equivalent ways.

Q26. What should you do before using a formula or rule?

Answer: Check what each quantity means and whether the rule matches the situation.

Q27. How does practice help in mathematics?

Answer: Practice builds accuracy and fluency while helping you recognize which strategies fit different problems.

Q28. What is a good way to learn from a mistake?

Answer: Find the exact step where the reasoning changed from correct to incorrect, then solve a similar problem again.

Q29. Why should you compare an exact answer with an estimate?

Answer: The estimate gives a quick reasonableness check for the exact calculation.

Q30. What does representing mathematics mean?

Answer: It means showing an idea with numbers, symbols, words, diagrams, tables, graphs, or models.