How can I know whether a company is resident or non-resident?

A company is considered as resident if it is incorporated under the Indian Companies Act. A foreign company is treated as resident if the control and management of its affairs is done entirely in India during the previous year.