A function f:X→Y between topological spaces is called scatteredly continuous (barely continuous) if for each non-empty (closed) subspace A⊂X the restriction f|A has a point of continuity. We show that if f:X→Y is a scatteredly continuous (barely continuous) surjective function between topological spaces, then for each natural number n we have hlYn≤hlXn (l(Y)≤hl(X), respectively).