Hey all, having trouble with these two problems


For #1 not really sure how to start, was thinking using the Intermediate Value theorem. The definition of compactness we are using is the Heine-Borel property (any open cover can be reduced to a finite subcover), Bolzano-Weierstrass property, or the set is closed and bounded (I feel like this is the one that will be used).
And for #4 the example of f(x) discussed is
f(x) = (x^2)sin(1/x^2) when x=/=0, 0 when x=0