At close, the Sensex was up 303.72 points or 0.76% at 40182.67, and the Nifty was up 95.70 points or 0.82% at 11834.60. Tata Consultancy Services was top Sensex gainer, followed by HCL Tech, Infosys, Tech Mahindra, HDFC Bank, UltraTech Cement, Bharti Airtel, SBI, Sun Pharma, Tata Steel and HUL.On the flip side, ONGC was top Sensex loser, followed by Reliance Industries Ltd (RIL), Asian Paints, ITC, Bajaj Auto, Power Grid Corporation of India and Titan Company. About 1215 shares have advanced, 1419 shares declined, and 159 shares are unchanged. Nifty IT index, up 4 per cent followed by the pharma and bank, while selling seen in the energy and FMCG stocks. The S&P BSE MidCap and SmallCap index were both trading half a per cent higher.