Some characterizations of semi-stratifiable and $k$-semi-stratifiable spaces in terms of semi-continuous functions, analogous to Urysohn Lemma, were established in this paper. Some applications of them in the insertion of functions are given as well.