IT, pharma stocks drive Sensex above 40k; Wipro top Nifty gainer | Sharefundss