Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games


Sign up

Log in

Opening subject page...

Loading your content

Practice

  • All Subjects
  • Algebra Flashcards
  • SAT Math Practice Tests
  • Math Question of the Day
  • Live Classes
  • On-Demand Courses

Varsity Tutors

  • Find a Tutor
  • Test Prep
  • Online Classes
  • K-12 Learning
  • College Search
  • VarsityTutors.com

© 2026 Varsity Tutors. All rights reserved.

← Back to quizzes

College Algebra Quiz

College Algebra Quiz: Piecewise Functions Evaluate And Graph

Practice Piecewise Functions Evaluate And Graph in College Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

Question 1 / 5

0 of 5 answered

A piecewise function is defined as g(x)={2x+1if x≤−1x2if −1<x<35−xif x≥3g(x) = \begin{cases} 2x + 1 & \text{if } x \leq -1 \\ x^2 & \text{if } -1 < x < 3 \\ 5 - x & \text{if } x \geq 3 \end{cases}g(x)=⎩⎨⎧​2x+1x25−x​if x≤−1if −1<x<3if x≥3​. For which value(s) of xxx does g(x)=4g(x) = 4g(x)=4?

Select an answer to continue

What this quiz covers

This quiz focuses on Piecewise Functions Evaluate And Graph, giving you a quick way to practice the rules, question types, and explanations that matter most for College Algebra.

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 piecewise function is defined as g(x)={2x+1if x≤−1x2if −1<x<35−xif x≥3g(x) = \begin{cases} 2x + 1 & \text{if } x \leq -1 \\ x^2 & \text{if } -1 < x < 3 \\ 5 - x & \text{if } x \geq 3 \end{cases}g(x)=⎩⎨⎧​2x+1x25−x​if x≤−1if −1<x<3if x≥3​. For which value(s) of xxx does g(x)=4g(x) = 4g(x)=4?

  1. x=−2x = -2x=−2 only
  2. x=2x = 2x=2 only (correct answer)
  3. x=1x = 1x=1 and x=−2x = -2x=−2
  4. x=2x = 2x=2 and x=1x = 1x=1

Explanation: We need to solve g(x)=4g(x) = 4g(x)=4 in each piece. For x≤−1x \leq -1x≤−1: 2x+1=42x + 1 = 42x+1=4, so x=1.5x = 1.5x=1.5. But 1.5>−11.5 > -11.5>−1, so this is not valid. For −1<x<3-1 < x < 3−1<x<3: x2=4x^2 = 4x2=4, so x=±2x = \pm 2x=±2. Since we need −1<x<3-1 < x < 3−1<x<3, only x=2x = 2x=2 works (x=−2x = -2x=−2 doesn't satisfy −2>−1-2 > -1−2>−1). For x≥3x \geq 3x≥3: 5−x=45 - x = 45−x=4, so x=1x = 1x=1. But 1<31 < 31<3, so this is not valid. Therefore, only x=2x = 2x=2 satisfies g(x)=4g(x) = 4g(x)=4.

Question 2

Consider the piecewise function k(x)={∣x+1∣if x≤23x−5if x>2k(x) = \begin{cases} |x + 1| & \text{if } x \leq 2 \\ 3x - 5 & \text{if } x > 2 \end{cases}k(x)={∣x+1∣3x−5​if x≤2if x>2​. What is the range of k(x)k(x)k(x) for x∈[−3,4]x \in [-3, 4]x∈[−3,4]?

  1. [0,7][0, 7][0,7] (correct answer)
  2. [0,3]∪[1,7][0, 3] \cup [1, 7][0,3]∪[1,7]
  3. [1,7][1, 7][1,7]
  4. [0,3]∪(1,7][0, 3] \cup (1, 7][0,3]∪(1,7]

Explanation: For x∈[−3,2]x \in [-3, 2]x∈[−3,2], we use k(x)=∣x+1∣k(x) = |x + 1|k(x)=∣x+1∣. The vertex of ∣x+1∣|x + 1|∣x+1∣ is at x=−1x = -1x=−1, where k(−1)=0k(-1) = 0k(−1)=0. At the endpoints: k(−3)=∣−3+1∣=2k(-3) = |-3 + 1| = 2k(−3)=∣−3+1∣=2 and k(2)=∣2+1∣=3k(2) = |2 + 1| = 3k(2)=∣2+1∣=3. Since the absolute value function decreases from x=−3x = -3x=−3 to x=−1x = -1x=−1 then increases from x=−1x = -1x=−1 to x=2x = 2x=2, the range on this interval is [0,3][0, 3][0,3]. For x∈(2,4]x \in (2, 4]x∈(2,4], we use k(x)=3x−5k(x) = 3x - 5k(x)=3x−5. This is increasing, so k(x)k(x)k(x) approaches 3(2)−5=13(2) - 5 = 13(2)−5=1 as x→2+x \to 2^+x→2+ and reaches k(4)=3(4)−5=7k(4) = 3(4) - 5 = 7k(4)=3(4)−5=7. The range on this interval is (1,7](1, 7](1,7]. Combining: the overall range is [0,3]∪(1,7]=[0,7][0, 3] \cup (1, 7] = [0, 7][0,3]∪(1,7]=[0,7] since these intervals overlap.

Question 3

Consider p(x)={x2−1if x≠35if x=3p(x) = \begin{cases} x^2 - 1 & \text{if } x \neq 3 \\ 5 & \text{if } x = 3 \end{cases}p(x)={x2−15​if x=3if x=3​. Which statement correctly describes the behavior of this function?

  1. The function has a jump discontinuity at x=3x = 3x=3 because the left and right limits are different
  2. The function is continuous everywhere because p(3)p(3)p(3) is defined
  3. The function has a removable discontinuity at x=3x = 3x=3 since lim⁡x→3p(x)≠p(3)\lim_{x \to 3} p(x) \neq p(3)limx→3​p(x)=p(3) (correct answer)
  4. The function is continuous at x=3x = 3x=3 because both p(3)p(3)p(3) and lim⁡x→3p(x)\lim_{x \to 3} p(x)limx→3​p(x) exist

Explanation: When you encounter a piecewise function like this, you need to analyze continuity by checking three conditions at any point of interest: the function value exists, the limit exists, and they're equal. Let's examine what happens at x=3x = 3x=3. First, find lim⁡x→3p(x)\lim_{x \to 3} p(x)limx→3​p(x). Since the limit only cares about values near 3 (not at 3), you use the first piece: lim⁡x→3(x2−1)=32−1=8\lim_{x \to 3} (x^2 - 1) = 3^2 - 1 = 8limx→3​(x2−1)=32−1=8. Next, find p(3)p(3)p(3). The function explicitly defines p(3)=5p(3) = 5p(3)=5. Since lim⁡x→3p(x)=8\lim_{x \to 3} p(x) = 8limx→3​p(x)=8 but p(3)=5p(3) = 5p(3)=5, the limit and function value don't match. This creates a removable discontinuity—you could "fix" it by redefining p(3)=8p(3) = 8p(3)=8. Choice A is wrong because both left and right limits equal 8 (they approach the same value from both sides). Choice B misses the point—having p(3)p(3)p(3) defined isn't enough for continuity; it must equal the limit. Choice D incorrectly assumes that having both the limit and function value exist guarantees continuity, but they must be equal, not just both exist. Choice C correctly identifies this as a removable discontinuity because the limit exists but doesn't equal the function value. Study tip: For piecewise functions, always check continuity at the boundary points by computing the limit using the appropriate piece, then comparing it to the actual function value at that point.

Question 4

The piecewise function s(x)={x2−9x−3if x≠3kif x=3s(x) = \begin{cases} \frac{x^2 - 9}{x - 3} & \text{if } x \neq 3 \\ k & \text{if } x = 3 \end{cases}s(x)={x−3x2−9​k​if x=3if x=3​ can be made continuous by choosing the appropriate value of kkk. However, if k=8k = 8k=8, what type of discontinuity occurs at x=3x = 3x=3?

  1. No discontinuity; the function is continuous at x=3x = 3x=3
  2. A removable discontinuity because the limit exists but differs from the function value (correct answer)
  3. An infinite discontinuity because the function approaches infinity
  4. A jump discontinuity because the left and right limits are different

Explanation: First, we find the limit as x→3x \to 3x→3. For x≠3x \neq 3x=3: x2−9x−3=(x−3)(x+3)x−3=x+3\frac{x^2 - 9}{x - 3} = \frac{(x-3)(x+3)}{x-3} = x + 3x−3x2−9​=x−3(x−3)(x+3)​=x+3. Therefore, lim⁡x→3s(x)=lim⁡x→3(x+3)=6\lim_{x \to 3} s(x) = \lim_{x \to 3} (x + 3) = 6limx→3​s(x)=limx→3​(x+3)=6. Since s(3)=k=8s(3) = k = 8s(3)=k=8 and lim⁡x→3s(x)=6≠8\lim_{x \to 3} s(x) = 6 \neq 8limx→3​s(x)=6=8, there is a discontinuity. It's removable because the limit exists (equals 6) but doesn't equal the function value (8). The discontinuity could be removed by setting k=6k = 6k=6.

Question 5

A parking garage charges according to the function C(t)={3if 0<t≤23+2(t−2)if 2<t≤611if t>6C(t) = \begin{cases} 3 & \text{if } 0 < t \leq 2 \\ 3 + 2(t - 2) & \text{if } 2 < t \leq 6 \\ 11 & \text{if } t > 6 \end{cases}C(t)=⎩⎨⎧​33+2(t−2)11​if 0<t≤2if 2<t≤6if t>6​, where C(t)C(t)C(t) is the cost in dollars and ttt is time in hours. If someone pays exactly $7, what is the maximum time they could have parked?

  1. 555 hours
  2. 4.54.54.5 hours
  3. 3.53.53.5 hours
  4. 444 hours (correct answer)

Explanation: When you encounter piecewise functions like this parking garage pricing model, you need to determine which piece of the function applies to your situation, then work within that constraint. Since someone paid exactly $7, you need to find where C(t)=7C(t) = 7C(t)=7 and determine the maximum possible time. Let's check each piece systematically. For 0<t≤20 < t \leq 20<t≤2: The cost is flat at 3,sothispiececan′tgiveus3, so this piece can't give us 3,sothispiececan′tgiveus7. For 2<t≤62 < t \leq 62<t≤6: Here C(t)=3+2(t−2)C(t) = 3 + 2(t - 2)C(t)=3+2(t−2). Setting this equal to 7: 7=3+2(t−2)7 = 3 + 2(t - 2)7=3+2(t−2) 4=2(t−2)4 = 2(t - 2)4=2(t−2) 2=t−22 = t - 22=t−2 t=4t = 4t=4 Since 444 is in the valid range 2<t≤62 < t \leq 62<t≤6, this works. For t>6t > 6t>6: The cost is flat at 11,whichexceeds11, which exceeds 11,whichexceeds7, so this piece is impossible. Therefore, the maximum time for $7 is exactly 4 hours. Looking at the wrong answers: Choice A (555 hours) would actually cost 3+2(5−2)=93 + 2(5-2) = 93+2(5−2)=9 dollars, which is too expensive. Choice B (4.54.54.5 hours) would cost 3+2(4.5−2)=83 + 2(4.5-2) = 83+2(4.5−2)=8 dollars, also too much. Choice C (3.53.53.5 hours) would cost 3+2(3.5−2)=63 + 2(3.5-2) = 63+2(3.5−2)=6 dollars, which is less than $7 but not the maximum time possible. Study tip: With piecewise functions, always identify which piece applies to your constraint first, then solve within that domain. Don't forget to verify your answer falls within the piece's specified range.