TCS shares rise 4% on demand revival optimism, CEO sees confidence in future programs despite weak North American revenue.