Express $\int_0^2 f(x)dx$ for any quadratic functions $f(x)$ in terms of $f(0),\ f(1)$ and $f(2).$
1. Let \( f(x) = ax^2 + bx + c \) be a quadratic function. We need to express the integral \( \int_0^2 f(x) \, dx \) in terms of \( f(0), f(1), \) and \( f(2) \).

2. First, we find the values of \( f(x) \) at specific points:
   \[
   \begin{cases}
   f(0) = c \\
   f(1) = a(1)^2 + b(1) + c = a + b + c \\
   f(2) = a(2)^2 + b(2) + c = 4a + 2b + c
   \end{cases}
   \]

3. Solving this system of equations for \( a, b, \) and \( c \):
   \[
   \begin{cases}
   c = f(0) \\
   a + b + c = f(1) \implies a + b + f(0) = f(1) \implies a + b = f(1) - f(0) \\
   4a + 2b + c = f(2) \implies 4a + 2b + f(0) = f(2)
   \end{cases}
   \]

4. Substitute \( a + b = f(1) - f(0) \) into the third equation:
   \[
   4a + 2(f(1) - f(0) - a) + f(0) = f(2) \implies 4a + 2f(1) - 2f(0) - 2a + f(0) = f(2) \implies 2a + 2f(1) - f(0) = f(2)
   \]
   \[
   2a = f(2) - 2f(1) + f(0) \implies a = \frac{f(2) - 2f(1) + f(0)}{2}
   \]

5. Using \( a + b = f(1) - f(0) \):
   \[
   \frac{f(2) - 2f(1) + f(0)}{2} + b = f(1) - f(0) \implies b = f(1) - f(0) - \frac{f(2) - 2f(1) + f(0)}{2}
   \]
   \[
   b = \frac{2f(1) - 2f(0) - f(2) + 2f(1) - f(0)}{2} \implies b = \frac{4f(1) - f(2) - 3f(0)}{2}
   \]

6. Now, we have:
   \[
   \begin{cases}
   c = f(0) \\
   a = \frac{f(2) - 2f(1) + f(0)}{2} \\
   b = \frac{4f(1) - f(2) - 3f(0)}{2}
   \end{cases}
   \]

7. Next, we compute the integral:
   \[
   I = \int_0^2 f(x) \, dx = \int_0^2 (ax^2 + bx + c) \, dx
   \]
   \[
   I = \left[ \frac{ax^3}{3} + \frac{bx^2}{2} + cx \right]_0^2
   \]
   \[
   I = \left( \frac{a(2)^3}{3} + \frac{b(2)^2}{2} + c(2) \right) - \left( \frac{a(0)^3}{3} + \frac{b(0)^2}{2} + c(0) \right)
   \]
   \[
   I = \left( \frac{8a}{3} + 2b + 2c \right)
   \]

8. Substitute the values of \( a, b, \) and \( c \):
   \[
   I = \frac{8}{3} \left( \frac{f(2) - 2f(1) + f(0)}{2} \right) + 2 \left( \frac{4f(1) - f(2) - 3f(0)}{2} \right) + 2f(0)
   \]
   \[
   I = \frac{4}{3} (f(2) - 2f(1) + f(0)) + 4f(1) - f(2) - 3f(0) + 2f(0)
   \]
   \[
   I = \frac{4f(2)}{3} - \frac{8f(1)}{3} + \frac{4f(0)}{3} + 4f(1) - f(2) - f(0)
   \]
   \[
   I = \frac{4f(2) - 3f(2)}{3} + \frac{12f(1) - 8f(1)}{3} + \frac{4f(0) - 3f(0)}{3}
   \]
   \[
   I = \frac{f(2) + 4f(1) + f(0)}{3}
   \]

The final answer is \(\boxed{\frac{f(0) + 4f(1) + f(2)}{3}}\)