A cylinder rolls up an inclined plane, reaches some height and then rolls down (without slipping through these motion). The direction of the frictional force acting on cylinder are
a)Up the incline while ascending and down the incline while descending
b)Up the incline while ascending as well as descending
c)Down the incline while ascending and up the incline while descending
d)Down the incline while ascending as well as descending