Default digital/analog pin state - input or output? (do unused pins need to be grounded to prevent floating inputs)

Thank you. Saving power wasn't the concern, again I was worried about the dangers of floating inputs.