Hi Ipsita,
Termination clause differs from company to company, there is no hard and fast rule that company has to pay 2 months salary while terminating employee, one may refer the 'termination of services' clause in his/her appointment letter. Generally most of the company follows the trend of notice period wherein after probation an employee has to serve notice for example if employee leaves the company he has to pay notice of one month, if he is not able to serve the notice period he has to pay one month salary in lieu, likewise if company terminates the services of employee company pays one month salary in lieu. Please note this is just an example as already stated above it depends on the clause of appointment letter.
Regards
Ashutosh