Hi,
I understand that you want to subdivide your survey form into 5 categories, and InfoPath offers an easy way of hiding and showing sections without complex coding. Please see the attached sample form and check the hide-show formatting rules I've added to each group/section, which depends on the category selected at the drop-down list control (save the form > right click > open in design mode). Please let me know if this approach works for you.