Usually ports are defaulted as inputs. Some application specific versions do default some ports as output. When defaulted as output there also has to be a defaulted logic state of '0' or '1'.
Many times there is a small pull up resistor in processor port to make sure the input does not float which can add current drain. If no pull up then inputs should be grounded or pulled to supply.