A cylinder rolls up an inclined plane, reaches some height, and then rolls down (without slipping throughout these motions). The directions of the frictional force acting on the cylinder are [2002]
(2)

Cylinder to be moving on a frictionless surface. In both the cases roll up roll down the acceleration of the centre of mass of the cylinder is . Also no torque about the centre of cylinder is acting on the cylinder since we assumed the surface to be frictionless and the forces acting on the cylinder is mg and N which pass through the centre of cylinder. Therefore the net movement of the point of contact in both the cases is in the downward direction and hence the frictional force always acts in the upward direction.