Re: What other languages have the “q” sound?
http://www.sjsu.edu/faculty/watkins/urdu.htm
The mother language for both these dilects is Sanskrit. Hindi in its part, mixed with Persian & Arabian languages - came to be known as Urdu or Hindustani.
It is due to this common heritage that Urdu & Hindi speakers can understand & communicate with each other fairly easily. If it was not for the different written scripts, people could be excused for calling it one language.