what is resistance and factors that affect it, class 10