The correct answer is (d).
Under the Civil Procedure Code, 1908, a “foreign court” means a court situated outside India or a court situated in India, applying foreign law.
A court situated outside India is a court that is not established under the authority of the Government of India. This includes courts in other countries, as well as courts in territories that are not part of India, such as the Andaman and Nicobar Islands.
A court situated in India, applying foreign law, is a court that is established under the authority of the Government of India, but which is applying foreign law in a particular case. This could be a case where the parties have agreed to the application of foreign law, or where the court has found that foreign law is applicable.
It is important to note that the definition of a “foreign court” under the Civil Procedure Code, 1908, is not the same as the definition of a “foreign court” under other laws. For example, under the Foreign Exchange Management Act, 1999, a “foreign court” means a court situated outside India, or a court situated in India, but which is applying the law of a country other than India.