"A basket of egg" is incorrect (except in an unusual situation where the eggs are not individual and intact but are considered a mass or "substance"). "fruit" may be countable or uncountable, so "A basket of fruits" and "A basket of fruit" are both possible. However, the latter is more common in normal everyday English.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.