PepsiCo’s stock heads toward a three-month high after earnings beat expectations in contrast to a profit miss in the previous quarter.