I found this on answers.yahoo.com what asked
What fruit has its seeds on the outside?
There is NO FRUIT IN THE WORLD THAT HAS ITS SEED/ S OUTSIDE!!!!
It is Botanically and Scientifically Wrong; still the misconception exists due to the preconceived ideas about fruits and seeds and the lack of botanical knowledge.
This is my humble attempt to clear it and put the things (In this case fruit and seed) in their right perspective.
Explanations below are immediately followed by the relevant illustration /s. Just click on that link.
1) In a flower there is an ovary which is the female reproductive part or a part of the female reproductive system. (Stigma and style are the other two parts, broadly speaking).
Inside the ovary there is one to many ovules (THEY ARE ALWAYS INSIDE AND NEVER OUTSIDE. THIS IS CRUCIAL PART TO UNDERSTAND).Now the illustrations ---
http://etc.usf.edu/clipart/13200/13275/c…
2) During pollination the pollen grains carrying the male gamete land on the stigma and give out a pollen tube for fertilization. Now for the illustrations ----
https://www.sciencelearn.org.nz/resources/77-pollination-and-fertilisation
3) During fertilization the pollen tube passes through the ovule and male and female gametes unite.See the same illustrations above .
4) Now , during the post-fertilization changes the ovule/s are turned in to SEED/S and the ovary turns in to a FRUIT. THUS THE SEED/S ARE ALWAYS INSIDE A FRUIT .
function of the fruit is to protect the developing seeds and aid in their dispersal.
Coconut fruit cut open to show seed inside -
https://www.researchgate.net/figure/3-Cut-open-ripe-fruit-of-the-coconut-palm-Cocos-nucifera-Left-Exterior-view-Right_fig2_311765561
In Strawberry the pips are the fruits(brown in color and enclosing a single seed INSIDE !!!) and the red juicy part is the base of the flower that has undergone enlargement to attract the agents of seed dispersal including man!!
https://www.wonderopolis.org/wonder/why-does-a-strawberry-have-seeds-on-the-outside
In cashew nut like wise it is the flower base that is juicy and yellow orange in color. Real kidney shaped fruit is attached to it and encloses the
seed which is the real cashew of commerce ( Salted roasted or plain !!!)
https://specialtyproduce.com/produce/Cashew_Fruit_16666.php
Raspberry - See a number of tiny red fruitlets together. Each with even a tinier seed inside .
https://www.britannica.com/plant/raspberry