These are the only points in the straight line with the charge q and at the brim of the hemisphere. So, field lines emerging from these charges do not affect the flux through the hemisphere due to charge q. On the other hand, the two remaining charges are beside the surface of the hemisphere and not in line with the charge q and not at the brim. So, they will affect the flux. Hence, the correct answers are (a) and (c).