Answer :

A pumpkin is a fruit because it contains seeds. Most foods that contain seeds are fruits.

For example: A tomato is a fruit, and so is a cucumber!
It's a fruit. (Most fruits contain seeds)