I've been here my whole life and have never been asked any questions while leaving or entering Qatar; as long as your friend has all his travel papers/documents, they probably won't even talk to him about anything else; it's a usually a very relaxed experience travelling from our landing at the Doha airport. Don't worry.