How long did your friend stay in US in 2011? If he stay at least 183 days, he can file 1040. Otherwise, he should file 1040NR.