Piecewise Functions Multiple-Choice Quiz
Choose the right formula at a boundary, read tables and intervals, and solve problems that span several branches. Later questions compare fictional prices, test continuity, and compose two piecewise functions.
Algebra II and precalculus studentsA function uses f(x) = x + 6 if x < 2 and f(x) = 3x if x ≥ 2. What is f(−2)?
Ready to play?
Open at Step 3 with every question loaded. Play solo, host live, or customize your game.
Play & Customize GameQuestions by ladder level
A function uses f(x) = x + 6 if x < 2 and f(x) = 3x if x ≥ 2. What is f(−2)?
- 4
- −6
- 8
- 6
Show answer and explanation
Correct answer: A. 4
The input −2 is less than 2, so use the first rule. Adding 6 to −2 gives 4.
The rule is g(x) = 8 − x for x ≤ 3 and g(x) = 2x + 1 for x > 3. What is g(3)?
- 8
- 7
- 5
- 11
Show answer and explanation
Correct answer: C. 5
The condition x ≤ 3 includes the boundary. Substituting 3 into 8 − x gives 5.
A graph uses p(x) = 6 − x for x < 4 and p(x) = x + 1 for x ≥ 4. Which point on the graph is filled at x = 4?
- (4, 2)
- (4, 5)
- (5, 4)
- (4, 4)
Show answer and explanation
Correct answer: B. (4, 5)
The second rule includes 4 and gives 4 + 1 = 5. The first rule approaches (4, 2) but excludes that point.
A function uses h(x) = x − 2 for x < 0, h(x) = 4 for x = 0, and h(x) = x + 2 for x > 0. What are h(−2), h(0), and h(2), in order?
- −4, −2, 4
- −4, 2, 4
- 0, 4, 0
- −4, 4, 4
Show answer and explanation
Correct answer: D. −4, 4, 4
The negative input uses −2 − 2. At zero the rule gives 4 directly, and the positive input uses 2 + 2.
A table pairs x-values 0, 1, 2, 3, 4, and 5 with outputs 2, 2, 2, 5, 5, and 8 in that order. The table lists every allowed input. Which condition selects exactly the inputs with output 5?
- 2 ≤ x ≤ 4
- 3 ≤ x ≤ 4
- 3 ≤ x ≤ 5
- 2 < x < 4
Show answer and explanation
Correct answer: B. 3 ≤ x ≤ 4
The table gives 5 at inputs 3 and 4. Both endpoints are included because both inputs give that output.
A fictional game library charges $5 for up to 2 hours, plus $3 per hour beyond 2 hours. Extra time is billed proportionally, including fractions of an hour. What does a 4.5-hour rental cost?
- $12.50
- $13.50
- $18.50
- $11.00
Show answer and explanation
Correct answer: A. $12.50
The first 2 hours cost $5. The extra 2.5 hours cost $7.50, bringing the total to $12.50.
A fictional print shop charges $0.90 each for the first 12 posters and $0.60 for each poster beyond 12. If n is the number of posters and n > 12, which expression gives the total cost in dollars?
- 0.90n + 0.60(n − 12)
- 0.60n
- 10.80 + 0.90(n − 12)
- 10.80 + 0.60(n − 12)
Show answer and explanation
Correct answer: D. 10.80 + 0.60(n − 12)
The first 12 posters cost 12 × $0.90 = $10.80. Only the remaining n − 12 posters use the lower rate.
A function uses r(t) = t + 2 for −3 ≤ t < 1 and r(t) = 2t for 2 < t ≤ 6. It has no other rules. What is its domain?
- (−3, 1] ∪ [2, 6)
- [−3, 6]
- [−3, 1) ∪ (2, 6]
- [−3, 1] ∪ [2, 6]
Show answer and explanation
Correct answer: C. [−3, 1) ∪ (2, 6]
The first interval includes −3 and excludes 1. The second excludes 2 and includes 6. The union leaves the gap in place.
A function uses s(x) = x + 4 for −2 ≤ x < 1 and s(x) = 7 for 1 ≤ x ≤ 4. It has no other rules. What is its range?
- [2, 5) ∪ {7}
- [2, 5] ∪ {7}
- [2, 7]
- (2, 5] ∪ {7}
Show answer and explanation
Correct answer: A. [2, 5) ∪ {7}
The first branch starts at 2 and approaches 5 without reaching it. The second branch contributes only the value 7.
A function uses f(x) = x + 1 for x < 2, f(x) = 3 for 2 ≤ x < 5, and f(x) = x + 2 for x ≥ 5. At which boundary do the two sides approach different values?
- Neither boundary
- x = 2 only
- Both x = 2 and x = 5
- x = 5 only
Show answer and explanation
Correct answer: D. x = 5 only
The two sides both approach 3 at x = 2. At x = 5 the left side approaches 3 and the right side approaches 7, so the graph jumps there.
A function uses f(x) = 4 − x for x < 0, f(x) = 1 for 0 ≤ x < 3, and f(x) = 2x − 4 for x ≥ 3. Which inputs give f(x) = 6?
- 5 only
- −2 only
- −2 and 5
- 2 and 5
Show answer and explanation
Correct answer: C. −2 and 5
Solving 4 − x = 6 gives −2, which is in the first branch. The middle branch always gives 1. Solving 2x − 4 = 6 gives 5, which is in the last branch.
The rule is f(x) = 3x + b for x < 2 and f(x) = x² + 4 for x ≥ 2. Which value of b makes the graph continuous at x = 2?
- 14
- 2
- 4
- −2
Show answer and explanation
Correct answer: B. 2
The left branch approaches 6 + b, while the right branch gives 2² + 4 = 8 at the boundary. Setting 6 + b equal to 8 gives b = 2.
A function uses p(x) = x + 5 for x < 2 and p(x) = 2x − 5 for x ≥ 2. For which inputs is p(x) > 3?
- (−2, ∞)
- [−2, 2) ∪ [4, ∞)
- (−2, 4)
- (−2, 2) ∪ (4, ∞)
Show answer and explanation
Correct answer: D. (−2, 2) ∪ (4, ∞)
In the first branch, x + 5 > 3 requires x > −2 and the branch still requires x < 2. In the second, 2x − 5 > 3 requires x > 4. Combining the two intervals gives the solution.
A fictional exhibit's Plan A charges $18 for up to 6 visitors plus $2 per additional visitor. Plan B charges $3 per visitor for groups of 1 to 10 and a flat $30 for 11 or more. For which positive whole-number group sizes is A cheaper?
- 7 through 11
- 6 through 12
- 7 through 12
- 7 and up
Show answer and explanation
Correct answer: A. 7 through 11
A is never cheaper for 1 through 6. For 7 through 10, A costs 18 + 2(n − 6), or 2n + 6, which is below 3n. At 11 it costs $28 versus $30. At 12 the plans tie, and from 13 on A costs more.
A game first computes y = f(x), where f(x) = x + 4 for x < 3 and f(x) = 2x − 1 for x ≥ 3. The final score is g(y) = y for y < 6 and g(y) = 12 − y for y ≥ 6. Which real inputs x earn a final score of 5?
- 3 and 4 only
- 1 and 4 only
- 1, 3, and 4
- 1 and 3 only
Show answer and explanation
Correct answer: C. 1, 3, and 4
A final score of 5 requires y = 5 or y = 7. The first branch of f reaches 5 at x = 1. In that branch, solving for y = 7 gives x = 3, which is outside its interval. The second branch reaches 5 at x = 3 and 7 at x = 4.