Where Should The Rack Be In The Oven When Baking?

What oven setting is best for cakes?

.

Should both elements be on while baking?

What is considered the middle rack of the oven?