Please help with this function problem

Answer:
-2
-1
-2
Step-by-step explanation:
really ? this is a problem ? why ?
f(0) means the functional value for x = 0.
is x = 2 ? no.
so, automatically the other case applies, and f(0) = -2
f(2) means x=2
is x = 2 ? yes.
so that case applies, and f(2) = -1
f(5) means x=5
is x = 2 ? no.
so again, the case for x <> 2 applies, f(5) = -2