J.C. Penney shares rose more than 10 percent on Thursday after the retailer posted better-than-expected quarterly profit and revenue, boosted by a 5 percent increase in net sales compared with a year ago.

The company posted a second-quarter loss, excluding items, of 75 cents per share, compared with a loss of $2.16 a share in the year-earlier period. Revenue jumped to $2.80 billion from roughly $2.66 billion.