Stock Markets End Higher As Sensex Gains Over 340 Points