The tomato is a vegetable from a botanical point of view.
Why it is true
The tomato is botanically a fruit, because it develops from the ovary of the flower and contains seeds. Culinarily, it is treated as a vegetable because it is used in salads and savoury dishes. The same confusion applies to cucumbers and pumpkins.
Source: USDA
Would you rather be asked first?
This is the reading side of the site, so the answer is in the sentence above — that is the whole point of it. Test yourself works the other way round: the question comes on its own, and the fact and the explanation only appear once you have answered.