If he was asking you personal questions just because he knew you spoke urdu, then yes, that is very unprofessional. It would make me feel uncomfortable as well.
If he was asking you personal questions just because he knew you spoke urdu, then yes, that is very unprofessional. It would make me feel uncomfortable as well.