I'm surprised to see many crap answers, and that the few good answers I saw were given thumbs-down.

Anyway, in Mandarin it's common to say 你好吗？ (ni hao ma?), but if you're talking to someone with authority or seniority or just out of respect, it's more polite to use 您好吗？ (nin hao ma?)