Answer
a) $(0,1)\cup(2,\infty)$
b) $(-\infty,0]\cup[1,2]$
Work Step by Step
As we can see on the graph
a) $f(x)>0$ in the intervals $(0,1)\cup(2,\infty)$ because the graph of the function is above the x-axis on these intervals. $1$ and $2$ are not inlucded because the inequality involves greater than.
b) $f(x)\leq0$ in the intervals $(-\infty,0]\cup[1,2]$ because the graph of function is below the x-axis on these intervals. $0, 1, $ and $2$ are included because the inequality involves less than or equal to.