yes/no questions

in this type of questions we are using ( misin, miyiz, misiniz, müyüm, mü, mısın, mısınız, müsün, müsünüz )
some questions end with ( mu ) and some end with ( mi ) and some with ( mı ) and some with ( mü )
how can i differentiate between them and how to know which one am i going to use in the question !!!