Why are MCP23017 (port extender) input pins high by default?

MCP23017 (port extender) output pins are unpredictable while booting.once booted it settles to what I have set as initial values.

I am not sure if it can be handled in code or any resistor required between pin and positive +.(what should be the value of resistor)