Sensex rises 240 points