you use it when u compare 2 things, eg apples and oranges:
ringo to orenji to dochira no hou ga suki desu ka.
which do u prefer, apples or oranges?
put the things u are comparing first and then 'no hou ga' then the question. when u answer the question, put the noun then 'no hou ga'
eg...