Thanks Dr. Nadiah for your answer. It is correct to use Chi square in case of both Dependent and Independent are categorical variables. However, in my case I want to test the outcomes before and after treatment so that the case here is quite different. Therefore, McNemar test is the best to be used.