Answer :
If you draw a free body diagram that shows all the forces acting upon an object then u can see that the force of friction is opposite acceleration/force applied (unless stated that object is on a frictionless surface
Or to ignore the friction, in which case, there is no force opposite acceleration)
Or to ignore the friction, in which case, there is no force opposite acceleration)