I came across this quote looking for more info on the question:
"Knowledge is to know that a tomato is a fruit, but wisdom is to know not to put one in a fruit salad."
Scientifically, a tomato is a fruit, as are peppers and bean pods, simply because they contain seeds. But in the kitchen, these are considered vegetables as they are used like other vegetables.