"He eats a tomato."
Translation:Han spiser en tomat.
It is simply a matter of memorization. A rule of thumb is that animate objects use "en" and inanimate use "et", but that isn't always the case. I have read that Danes will be able to tell a native speaker from their proper use of en and et