Apple shattered pessimistic expectations that its growth would dip during the second quarter Wednesday, reporting that revenue had climbed 5 percent, while profits grew 7 percent to top $10 billion. Despite defying expectations of a miserable quarter, the tech giant’s results also showed that its growth is still slowing as competition in the key smartphone market mount and the sale of iPads and other products dips.