Key IT stocks like Trent, Infosys, and TCS led the gains, benefiting from global positive sentiment.