Apple announced quarterly earnings on Tuesday, putting to rest speculation that competition might eat into its market share and sending shares surging in after-hours trading. The tech giant posted revenue of $39.2 billion, second only to the $46.33 billion reported for the quarter ending December 2011. Net profit was $11.6 billion, or $12.30 per diluted share.

Both figures topped estimates from Thomas Reuters of $38.9 billion and $10.10 per share. Needless to say, Apple's CFO Peter Oppenheimer was quoted as saying they are very pleased with the results.

Apple sold 35.1 million iPhones in the quarter, an increase of 88 percent over the same period last year, accounting for roughly half of the overall revenue. Cupertino points to a surge in the Asia-Pacific and Japan markets where sales more than doubled year over year. The iPhone is now available in over 100 countries on 230 wireless carriers. International sales were responsible for 64 percent of the quarter's revenue.

Apple's new iPad helped the company sell 11.8 million tablets in the quarter, an increase of 151 percent over last year's figure. Oppenheimer credits the education sector for the increased iPad sales, noting that the tablet outsold the Mac by a two-to-one factor with US K-12 customers.

Cupertino moved 4 million Macs in the quarter, good for a 7 percent rise from last year. The only negative mark in the lineup came from the iPod where they only sold 7.7 million devices, a decrease of 15 percent year over year.