HDMI STB vs DVI vs MHL vs ARC

man with Remote control on hand

So you bought a new TV and you noticed there are multiple ports on the back with no specific labels. How can you identify the ports? And which one will deliver the best picture and sound quality?