Apple easily beat Wall Street forecasts, and its sales outlook for the current quarter came in ahead of expectations.