PepsiCo has posted a strong set of figures for its second quarter.