If you are served pumpkin as your vegies - don't eat it! It is a fruit under proper classification. Just so you quite sure we're talking of the same item - here is a photo.
|Pumpkin is a Fruit!|
Then there are the nuts - another group of edible fruit that are often wrongly classified. The hazelnut and acorn are true nuts, while the almond is actully the seed of a stone fruit. Brazil nuts, cashews and pistachios are also not true nuts.
Confused? Well it gets even more complicated - watermelons and cucumbers are still fruit - but grouped as pepos.
Vegetables are mainly classified as Not Fruits - that is they have no seeds at all and can be any part of the plant. For example brocolli is just a bunch of tightly clustered immature flower heads, while carrots are just the swollen tap root of the plant and spinach is just the leaves and stalks.