Mega 2650 and pull-down resistor questions

Do you know why pull-up and pull-downs are needed?

A pullup will allow enough current to flow to dimly light a LED.