Extending the rally seen over the course of the previous session, stocks moved sharply higher during trading on Friday. The gains on the day lifted the major averages to their best closing levels in at least two months.