Middle School Math Quiz: Function Rules
8 questions · exam conditions
0:00
Function RulesQuestion 1 of 8

A delivery company charges based on package weight using this rule: "The cost is $8 plus $2.50 for each pound over 2 pounds. Packages weighing 2 pounds or less have a flat rate of $8."

Based on the delivery company's pricing rule described above, what is the cost to ship a package weighing 6.5 pounds?

$24.25
$19.25
$16.25
$20.25
← Back to quizzes

Middle School Math Quiz

Middle School Math Quiz: Function Rules

Practice Function Rules in Middle School Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Function Rules, giving you a quick way to practice the rules, question types, and explanations that matter most for Middle School Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

A delivery company charges based on package weight using this rule: "The cost is $8 plus $2.50 for each pound over 2 pounds. Packages weighing 2 pounds or less have a flat rate of $8."

Based on the delivery company's pricing rule described above, what is the cost to ship a package weighing 6.5 pounds?

  1. $24.25
  2. $19.25 (correct answer)
  3. $16.25
  4. $20.25
Explanation: Since the package weighs 6.5 pounds, which is more than 2 pounds, we use the rule: $8 plus $2.50 for each pound over 2 pounds. The package is 6.5 - 2 = 4.5 pounds over the 2-pound threshold. The cost is $8 + $2.50 × 4.5 = $8 + $11.25 = $19.25.

Question 2

A function is described as: "If the input is positive, output the input minus 2. If the input is negative or zero, output the opposite of the input." Which piecewise function represents this rule?

  1. (correct answer)
Explanation: When you encounter a piecewise function problem, you need to carefully translate each condition from words into mathematical notation, paying close attention to which inequality symbols to use. Let's break down the given rule: "If the input is positive, output the input minus 2. If the input is negative or zero, output the opposite of the input." The first condition says "if the input is positive," which means x>0x > 0. For these inputs, we output x2x - 2. The second condition says "if the input is negative or zero," which means x0x \leq 0. For these inputs, we output "the opposite of the input," which is x-x. So our function should be: $$f(x) = \begin{cases} x - 2 & \text{if } x > 0 \ -x & \text{if } x \leq 0 \end{cases} This matches option C exactly. Let's see why the other options fail: Option A uses $$x \geq 0$$ for the first condition, which would include zero. But the problem states zero should follow the second rule (output the opposite), not the first rule. Option B has the wrong operation in the first case: $$x + 2$$ instead of $$x - 2$$. This completely changes what the function does for positive inputs. Option D swaps the rules entirely—it applies the "opposite" rule to positive numbers and the "minus 2" rule to negative numbers and zero. **Study tip:** Always check where zero belongs when translating "positive" and "negative or zero" conditions. The word "positive" excludes zero, so use $$>$$, while "negative or zero" includes zero, so use $$\leq$$.

Question 3

Two students write function rules for the same relationship. Student A writes: "Triple the input and subtract 4." Student B writes: g(x)=3x4g(x) = 3x - 4. If both rules produce the same output when the input is kk, but different outputs when the input is k+1k + 1, what can be concluded?

  1. The students made equivalent function rules and there's an error in the problem statement
  2. Student A's rule was incorrectly interpreted and should be f(x)=3(x4)f(x) = 3(x - 4)
  3. Student A's rule was incorrectly interpreted and should be f(x)=(3x)4f(x) = (3x) - 4
  4. The premise is impossible since both descriptions represent the same mathematical function (correct answer)
Explanation: Student A's rule "Triple the input and subtract 4" translates exactly to f(x)=3x4f(x) = 3x - 4, which is identical to Student B's rule g(x)=3x4g(x) = 3x - 4. Since both functions are mathematically identical, they must produce the same output for any given input, including both kk and k+1k + 1. The premise that they produce different outputs for k+1k + 1 is mathematically impossible. Choices B and C suggest incorrect interpretations, but "triple the input and subtract 4" unambiguously means 3x43x - 4. Choice A suggests an error but doesn't recognize that the functions are actually identical.

Question 4

A function has the rule g(x)=3x5g(x) = 3x - 5. If g(a)=g(2a4)g(a) = g(2a - 4), what is the value of aa?

  1. a=2a = 2
  2. a=4a = 4 (correct answer)
  3. a=1a = 1
  4. a=3a = 3
Explanation: Since g(a)=g(2a4)g(a) = g(2a - 4), we have 3a5=3(2a4)53a - 5 = 3(2a - 4) - 5. Simplifying the right side: 3a5=6a125=6a173a - 5 = 6a - 12 - 5 = 6a - 17. Setting them equal: 3a5=6a173a - 5 = 6a - 17. Solving: 5+17=6a3a-5 + 17 = 6a - 3a, so 12=3a12 = 3a, therefore a=4a = 4. Choice A would give g(2)=1g(2) = 1 and g(0)=5g(0) = -5, which are not equal. Choice C would give g(1)=2g(1) = -2 and g(2)=11g(-2) = -11, which are not equal. Choice D would give g(3)=4g(3) = 4 and g(2)=1g(2) = 1, which are not equal.

Question 5

Consider the function rule h(x)=2x+13h(x) = |2x + 1| - 3. In words, this rule can be described as:

  1. Take twice the input plus one, find its absolute value, then subtract three from the result (correct answer)
  2. Take the input, find its absolute value, multiply by two, add one, then subtract three
  3. Take the input plus one, multiply by two, find the absolute value, then subtract three
  4. Take twice the input, add one, subtract three, then find the absolute value of the result
Explanation: The function h(x)=2x+13h(x) = |2x + 1| - 3 follows this order of operations: first calculate 2x+12x + 1 (twice the input plus one), then take the absolute value of that result, then subtract 3. Choice B describes 2x+132|x| + 1 - 3. Choice C describes 2(x+1)3=2x+23|2(x + 1)| - 3 = |2x + 2| - 3. Choice D describes 2x+13=2x2|2x + 1 - 3| = |2x - 2|.

Question 6

A function rule states: "Subtract 3 from the input, then multiply the result by itself." If the output of this function is 16, what are the possible input values?

  1. x=7x = 7 only
  2. x=1x = -1 only
  3. x=7x = 7 and x=1x = -1 (correct answer)
  4. x=4x = 4 and x=4x = -4
Explanation: The function rule translates to f(x)=(x3)2f(x) = (x - 3)^2. Setting this equal to 16: (x3)2=16(x - 3)^2 = 16. Taking the square root of both sides: x3=±4x - 3 = \pm 4. This gives x3=4x - 3 = 4 or x3=4x - 3 = -4, so x=7x = 7 or x=1x = -1. Choice A only considers the positive square root. Choice B only considers the negative square root. Choice D incorrectly solves x2=16x^2 = 16 instead of (x3)2=16(x-3)^2 = 16.

Question 7

A function f(x)f(x) has the property that f(x+2)=f(x)+6f(x + 2) = f(x) + 6 for all values of xx. If f(1)=4f(1) = 4, what is f(7)f(7)?

  1. 18
  2. 20
  3. 16
  4. 22 (correct answer)
Explanation: This question tests your understanding of function properties and how to use given relationships to find unknown values. When you see a functional equation like f(x+2)=f(x)+6f(x + 2) = f(x) + 6, you're being told that every time the input increases by 2, the output increases by 6. Starting with f(1)=4f(1) = 4, you can use the given property repeatedly to find f(7)f(7). Since f(x+2)=f(x)+6f(x + 2) = f(x) + 6, you have:
  • f(3)=f(1+2)=f(1)+6=4+6=10f(3) = f(1 + 2) = f(1) + 6 = 4 + 6 = 10
  • f(5)=f(3+2)=f(3)+6=10+6=16f(5) = f(3 + 2) = f(3) + 6 = 10 + 6 = 16
  • f(7)=f(5+2)=f(5)+6=16+6=22f(7) = f(5 + 2) = f(5) + 6 = 16 + 6 = 22
Therefore, f(7)=22f(7) = 22, which is choice D. Looking at the wrong answers: Choice A (18) results from adding 6 only twice instead of three times—you might get this by miscounting the steps from x=1x = 1 to x=7x = 7. Choice B (20) could come from incorrectly thinking you add 6 for each unit increase rather than each increase of 2. Choice C (16) stops one step short, giving you f(5)f(5) instead of f(7)f(7). When working with functional equations, always track your steps carefully and count how many times you need to apply the given property. The key insight is recognizing that going from x=1x = 1 to x=7x = 7 requires three applications of the rule since 7=1+3(2)7 = 1 + 3(2).

Question 8

Maria writes a function rule: "The output is 4 more than twice the square of the input." Which equation correctly represents this function?

  1. f(x)=2x2+4f(x) = 2x^2 + 4 (correct answer)
  2. f(x)=(2x)2+4f(x) = (2x)^2 + 4
  3. f(x)=2(x2+4)f(x) = 2(x^2 + 4)
  4. f(x)=4x2+2f(x) = 4x^2 + 2
Explanation: The phrase "twice the square of the input" means 2x2=2x22 \cdot x^2 = 2x^2, and "4 more than" means adding 4, giving f(x)=2x2+4f(x) = 2x^2 + 4. Choice B represents "4 more than the square of twice the input" which would be (2x)2+4=4x2+4(2x)^2 + 4 = 4x^2 + 4. Choice C represents "twice the quantity of the square of the input plus 4" which gives 2(x2+4)=2x2+82(x^2 + 4) = 2x^2 + 8. Choice D reverses the coefficients.