it is neither.
I know onions do and so do squashes. Also I think radishes.
It is a fruit.
its a fruit because it has seeds
i think fruit