On a distance–time graph, a horizontal segment means the traveller is:
Ontario MPT: Algebra, patterns and coding
Patterns, variables and expressions, solving equations and inequalities, linear relations and their graphs, and reading simple code that uses loops and conditions.
- No sign-up
- Every answer explained
- Independent · not a government site
- 16 questions
- Topic drill
Study reference: The Ontario Curriculum, Grades 1–8: Mathematics (2020) and Grade 9: Mathematics MTH1W (2021), Ch. 2 Algebra strand — Grades 3–8 strand C (incl. coding), Grade 9 strand C
All 16 questions in this test
Every question and its answer choices. The correct answers and explanations appear when you take the test above.
On a distance–time graph, a horizontal segment means the traveller is:
- stopped
- speeding up
- moving at a steady speed
- walking back home
In the Ontario Grades 1–8 math curriculum (2020), in which strand do coding expectations appear?
- Financial Literacy
- Data
- Algebra
- Spatial Sense
A pattern repeats red, blue, blue, green. What colour is the 23rd item?
- Blue
- Red
- Green
- Yellow
A growing pattern has 5, 9, 13, 17 tiles in figures 1 to 4. Which expression gives the tiles in figure n?
- n + 4
- 4n + 5
- 4n + 1
- 5n
Solve 2(x + 4) = 5x − 7.
- x = 5
- x = 3.7
- x = −5
- x = 1
A line passes through (0, 3) and (2, 7). What is its equation?
- y = 4x + 3
- y = 2x + 3
- y = 2x + 7
- y = 3x + 2
A plant is 4 cm tall and grows 1.5 cm each week. Which equation models its height h after w weeks?
- h = 1.5 + 4w
- h = 1.5w + 4
- h = 5.5w
- h = 4w + 1.5
Evaluate 5(a + 1) − a when a = 2.
- 15
- 13
- 8
- 11
Solve the equation 3x + 5 = 29.
- x = 24
- x = 6
- x = 11.3
- x = 8
Two numbers have a sum of 30 and a difference of 8. What are they?
- 20 and 10
- 22 and 8
- 19 and 11
- 15 and 15
Which statement shows the idea that the equal sign means "has the same value as"?
- 8 + 4 = □ + 5, so □ = 7
- 8 + 4 = □, so □ = 5
- 8 + 4 = 12 + 5 = 17
- 8 + 4 = □ + 5, so □ = 12
Code: x = 10. If x > 5, then x = x − 3; otherwise x = x + 3. Then print x. What is printed?
- 7
- 10
- 5
- 13
A program sets total = 0, then repeats "add 4 to total" 6 times. What is total at the end?
- 10
- 4
- 24
- 46
Simplify the expression 4(x − 3) + 2x.
- 4x − 12
- 6x − 3
- 6x − 12
- 6x − 7
Which values of x make 2x − 3 > 7 true?
- x > 5
- x < 5
- x > 2
- x > 10
In the formula A = lw, what does the letter w represent?
- A misprint for the word "with"
- The fixed number 23 for every rectangle
- The letter that comes after v in a code
- A quantity that can take different values
Algebra, patterns and coding: key rules to remember
Our summary of what the official handbook says on this topic, in our own words. Read it before or after the practice questions above, then check the original chapter. Read the official chapter ↗
Ontario Curriculum, Algebra strand (Grades 3–8 C incl. coding; Grade 9 C)
- Patterns: repeating cores (use remainders), growing patterns with rule an + b.
- Variables and expressions; substitution; simplifying with distribution and like terms.
- Equality as balance (equal sign means "same value as").
- Solving linear equations and inequalities; systems by elimination.
- Linear relations: slope (rate of change) and initial value; y = mx + b.
- Distance–time graphs: horizontal segment = no movement.
- Coding is part of the Algebra strand from Grade 1 (ontario.ca); loops repeat instructions; conditionals choose a branch.
Study the Algebra, patterns and coding rules as flashcards →
Other topics
- MPT requirement, format and scoringWho must pass the Mathematics Proficiency Test for Ontario certification, the two components, the 70% standard on each in the same attempt, cost, retakes, booking and test windows.
- Number: fractions, decimals, percents and ratiosPlace value, operations with fractions, decimals and integers, percents, rates and ratios, exponents and square roots, and proportional reasoning from the Grades 3–9 Number strand.
- Data and probabilityReading and choosing graphs, mean, median, mode and range, sampling and bias, and the probability of simple and compound events.
- Spatial sense: geometry and measurementAngles and polygons, the Pythagorean relationship, transformations, area, surface area and volume, metric unit conversions and circles.
- Financial literacyBudgets, unit prices and best buys, simple and compound interest, sales tax and discounts, and exchange rates as taught in the Financial Literacy strand.
- Pedagogy: the mathematics curriculumHow the Ontario math curriculum is organized: strands, overall and specific expectations, the seven mathematical processes, social-emotional learning skills, coding and culturally responsive teaching.
- Pedagogy: assessment and evaluationGrowing Success: assessment for, as and of learning, the achievement chart's four categories and four levels, learning goals and success criteria, descriptive feedback and how grades are determined.
- Pedagogy: learning for all studentsLearning for All: universal design for learning, differentiated instruction, the tiered approach to prevention and intervention, and planning from each student's strengths and needs.